/* Projekt im Zuge des MultiMediaProjektes 1 im Studiengang MultiMediaTechnology an der FH Salzburg */
/* Autor: Andreas Kamm */
/* ----------------------- */

html{
    padding: 0;
    margin: 0;
    height: 100%;
}

body{
    padding: 0;
    margin: 0;
    font-family: 'Rationale', sans-serif;
    height: 100%;
}

header{
    padding: 1rem;
}

header .nav-items{
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

header .nav-items li{
    list-style-type: none;
}

header nav{
    grid-template-columns: repeat(3,1fr);
    display: grid;
    background-color: white;
    border-radius: 10px;
    padding: 1rem 2rem;
    grid-column-gap: 2rem;
}

h1{
    text-align: center;
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 50px;
    margin: 0;
    grid-column: 2;
}

.logo {
    width: 75px;
    height: 75px;
}

.heading-yellow{
    color: #E9C844;
}

.heading-red{
    color: #990000;
}

nav #logo-link{
    grid-column: 1;
    display: flex;
}

nav #logo-link a{
    display: flex;
    align-items: center;
}

.heading-blue{
    color: #6CCEFF;
}

.burger-menu-container{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    grid-column: 3;
}

.burger-menu.active span{
    border: 2px #990000 solid;
}

.burger-menu.active{
    border: 2px solid black;
}

.burger-menu{
    width: 30px;
    height: 20px;
    border: 2px solid #EAEAEA;
    background-color: #eaeaea80;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 0.5rem;
    padding: 1rem;
}

.burger-menu:hover{
    border: 2px solid black;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}

.burger-menu:hover span{
    border: 2px #990000 solid;
}

.burger-menu span{
    border: 2px black solid;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.logout-container{
    display: flex;
    justify-content: center;
}

.logout-container img{
    width: 30px;
    height: auto;
}

#menu-container{
    display: none;
    position: absolute;
    right: 0;
    margin-right: 1rem;
    width: 25vw;
    border: #990000 solid 3px;
    border-radius: 10px;
    background-color: #EAEAEA;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    min-width: 200px;
    max-width: 350px;
    z-index: 1;
}

#menu-container #user-image{
    border: #990000 solid 3px;
    border-radius: 10px;
    width: 100px;
    height: auto;
}

.menu-buttons{
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    row-gap: 0.5rem;
    width: 100%;
}

.menu-button{
    font-family: 'Rationale', sans-serif;
    font-size: 20px;
    border: 2px solid transparent;
    background-color: #ff00002d;
    border-radius: 8px;
    padding: 0.5rem 0;
    text-wrap: nowrap;
    text-align: center;
    color: black;
    text-decoration: none;
}

.menu-button:hover{
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #ff0000;
    transition: 0.2s ease-in-out;
}

.menu-button.active, .menu-button.active:hover{
    border: 2px solid #990000;
    font-weight: bold;
}

.logout-container .button-wrapper{
    padding: 3px;
    background: linear-gradient(to right, #000000, #666666, #000000);
    border-radius: 10px;
    height: 2rem;
    width: 7rem;
}

.logout-container .button-wrapper button{
    width: 100%;
    height: 100%;
    padding: 4px 5px;
    border-radius: 7px;
    font-family: 'Rationale', sans-serif;
    font-size: 20px;
    background-color: #6CCEFF;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    column-gap: 0.5rem;
    border: none;
}

.logout-container .button-wrapper button:hover{
    background-color: #54A0C7;
    transition: 0.2s ease-in-out;
}

@media screen and (max-width: 670px)
{
    h1{
        font-size: 40px;
        display: flex;
        align-items: center;    
    }

    .logo{
        width: 65px;
        height: 65px;
    }

    .burger-menu {
        width: 20px;
        height: 15px;
        row-gap: 0.4rem;
    }

    .menu-buttons{
        flex-wrap: wrap;
        row-gap: 0.5rem;
        column-gap: 0.5rem;
        flex-direction: row;
    } 

    .menu-buttons :nth-child(1){
        order: 1;
    }

    .menu-buttons :nth-child(2){
        order: 3;
    }

    .menu-buttons :nth-child(3){
        order: 5;
    }

    .menu-buttons :nth-child(4){
        order: 4;
    }

    .menu-buttons :nth-child(5){
        order: 2;
    }

    .menu-buttons :nth-child(6){
        order: 6;
    }

    .menu-buttons :nth-child(7){
        order: 7;
    }

    .menu-button {
        width: 5rem;
        font-size: 15px;
    }

    .logout-container span{
        display: none;
    }

    .logout-container .button-wrapper{
        width: unset;
    }

    #menu-container{
        padding: 0.5rem;
    }

    #menu-container #user-image {
        width: 75px;
    }

    header nav {
        padding: 1rem;
    }
}

@media screen and (max-width: 430px)
{
    h1{
        font-size: 30px;
        display: flex;
        align-items: center;    
    }

    .logo{
        width: 60px;
        height: 60px;
    }

    .burger-menu {
        width: 15px;
        height: 10px;
        row-gap: 0.3rem;
    }

    .logout-container span{
        display: none;
    }

    .logout-container .button-wrapper{
        width: unset;
    }

    #menu-container #user-image {
        width: 75px;
    }
}

@media screen and (max-width: 380px)
{
    h1{
        display: none;
    }
}