
.topnav{ /* navigation bar */
    display: flex; /* flexbox for main container */
    flex-direction: column;

    background-color: rgba(128,44,140,1); /* some shade of purple */

    /* position: fixed; */
    top: 0; /*ensures TopNav is always on top*/
    width: 100%; /* Makes the navbar stretch across the full width of the screen */
    z-index: 9999; /* ensures that the bar stays on top */
    height: 195px; /* height of navbar */

    font-weight: bold;
    font-style: normal;
    font-family: Verdana, Tahoma, Arimo, sans-serif;

}

.topnav .active{
    /*background-color: rgba(186, 255, 33, 255);*/
    background-color: rgba(130,230,222,255);
    z-index: 9999;
}


.mainLogo{
    display: flex; /* Flexbox to align the logo */
    justify-content: center;
    align-items: center; /* Vertically center the logo */
    padding: 10px 0; /*horizontal padding*/
    margin-top: 15px;
}

.mainLogo a img{
    height: 90px; /* Set height of logo*/
}

.languageandlogin{
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 25px;
    right: 25px;

    gap: 10px;
}

.login{
    display: flex;
    justify-content: flex-end;
}

.login img{
    rotate: 180deg;
    height: 18px;
}

.language-dropdown {
    position: relative;
}

.lang-current {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    font-style: italic;
    font-family: Verdana, Tahoma, Arimo, sans-serif;
    cursor: pointer;
    padding: 0;
}

.lang-current:hover {
    color: rgba(130,230,222,255);
}

.lang-options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: rgba(128,44,140,0.95);
    border-radius: 4px;
    padding: 4px 0;
    min-width: 44px;
    z-index: 10000;
}

.lang-options.open {
    display: block;
}

.lang-options a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    font-style: italic;
    text-align: center;
}

.lang-options a:hover {
    color: rgba(130,230,222,255);
}

.links{
    gap: 5px;
}

.links, .numbernandicon{
    display: flex; /*flexbox for the links*/
    justify-content: center;
    align-items: center; /* center the items vertically */

}

.links a{
    font-size: 0.95rem; /* relative to its parent */
    display: flex; /* Flexbox for vertical centering */
    color: white;

    text-decoration: none;
    align-items: center; /*vertically center the text*/
    justify-content: center; /* Horizontally center the text */

    padding: 10px 15px; /*padding around the text*/
    border-radius: 9px;
    transform: skewX(-15deg);
    border: transparent solid 1px;

}


.links a:hover{ /*links hover*/
    /*background-color: rgba(186, 255, 33, 255);*/
    background-color: rgba(130,230,222,255);
    color: white;

    transition: 0.3s;
}

.numbernandicon{ /*hide number and burger icon*/
    display: none;
}

/* responsive styles */

@media screen and (max-width: 800px) {
    .links{
        gap: 0;
    }

    .links a{
        display: none; /*hide everything except icon*/
        padding: 0 0; /*reset padding of dropdown*/

        border-radius: 0;
    }

    .numbernandicon{
        display: flex;
        justify-content: center; /*center the number and icon*/
        font-style: normal;

    }
    .numbernandicon a{
        font-size: 1rem;
        display: flex; /* Flexbox for vertical centering */
        color: white;

        text-decoration: none;

        margin: 5px 5px 0 5px; /*top right bottom left*/
    }

    .number{
        font-style: italic; /*set font of number*/
    }

    .number:hover, .icon:hover{
        /*color: rgba(186, 255, 33, 255);*/
        color: rgba(130,230,222,255);
    }



    .links.active{
        flex-direction: column; /*column dropdown*/
        width: 100%; /* across the whole screen */
        position: absolute; /*ensures that the .links dropdown is independent of the rest of the page's layout*/
        top: 195px; /* distance from top */
        background-color: rgba(128,44,140, 0.8);

        transition: 0.1s; /*how fast the dropdown appears */


    }

    .links.active a{
        display: flex;
        width:100%;
        height: 50px; /*height of single dropdownbox*/
        font-size: 0.75rem;

        font-style: italic;
        transform: skewX(0deg);



    }
}

@media screen and (max-width: 600px) {
    .languageandlogin{
        right: 15px;
        gap: 5px;
    }

    .login img{
        height: 15px;
    }

    .lang-current{
        font-size: 0.625rem;
    }
    .lang-options a{
        font-size: 0.625rem;
    }
    .numbernandicon a{
        font-size: 0.825rem;
    }

    .links.active a{
        height: 40px;
        font-size: 0.625rem;
    }

    .links.active {
        top: 150px;
    }
    .topnav{
        height: 150px;
    }
    .mainLogo a img{
        height: 60px; /* Set height of logo*/
    }
}
