:root {}

html {
    overflow: hidden;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    color: #5f5b6b;
    text-transform: uppercase ;
}

h1, h2 {
    font-size: large;
    padding-top: 5px;
    margin-top: 5px;
}

/* 
End of the header

Styling the gallery section and animate it 
*/

#gallery {
    height: 70vh;
    display: flex;
    flex-flow: row wrap;
    gap: 1vmin;
}

@media only screen and (max-height: 750px) {
    #gallery {
        height: 60vh;
    }
}

#img {
    display: flex;
    height: auto;
    border-radius: 1rem;
    background-position: center;
    background-size: cover;

    flex: 1;
    transition: all 0.5s ease-in-out;
}

#img:hover {
    flex: 6;
}

/* 
End of the gallery section

Language section
*/

.language-selection {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;

    padding-top: 5px;
    margin-bottom: 3rem;
    overflow:scroll;
}

/* 
Starting styling buttons 
*/

.button {
    width: 240px;
    height: 50px;
    display: flex;
    align-items: center;

    padding-left: 65px;
    padding-right: 70px;

    position: relative;
}

a {
    text-decoration: none;
    color: #5f5b6b;
}

a:visited{
    color: #5f5b6b;
}

/* initial background shape */
.background {
    position: absolute;
    left: 0;

    width: 50px;
    height: 50px;
    background: #5f5b6b;
    border-radius: 50px;

    transition: width 500ms ease;
}

/* Initial text styling */
span {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0px;
    font-size: 1.5rem;
    transition: color 500ms;
    z-index: 1;
}

/* The arrow wrap at the initial position */
.arrow-wp {
    position: absolute;
    height: 50px;
    width: 50px;
    left: 7px;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: width 500ms ease;
}

/* Styling the arrow head */
.arrow-head {
    height: 12px;
    width: 12px;
    border-top: 3px solid #E5ece9;
    border-right: 3px solid #E5ece9;
    transform: rotate(45deg);
    z-index: 1;
}

/* Styling the arrow body */
.arrow-body {
    width: 15px;
    height: 3px;
    opacity: 0;
    position: relative;
    left: -15px;
    z-index: 0;
    transition: all 300ms ease;
}

/* Background expends on the button hover */
.button:hover>.background {
    width: 100%;
}

/* Text color changes to white on button hover*/
.button:hover>span {
    color: white;
}

/* Transition to move the whole arrow wrap to the right as the width expends */
.button:hover>.arrow-wp {
    width: 33%;
}

/* Arrow body appears and follow its parent expansion */
.button:hover>.arrow-wp>.arrow-body {
    background: white;
    opacity: 1;
}

/* 
End styling buttons 
*/

footer {
    position: fixed;
    bottom: 0;
    left: -5px;
    width: 101vw;
    
    padding-right: 4%;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;

    background-color: #5f5b6b;

    color: #E5ece9;
    font-weight: 600;
}

#logo {
    height: 30px;
    width: 30px;
    margin: 0 5px;
}