@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Permanent+Marker&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root{
    --dark-blue: #060047;
    --dark-red: #B3005E;
    --red: #E90064;
    --light-red: #FF5F9E;
    --width: 1000px;
}

*, *::before, *::after{
    box-sizing: border-box;
}

body{
    font-family: 'Roboto', sans-serif;
    margin: 0 0 50px;
}

#navbar{
    height: 60px;
    background: var(--dark-blue);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#navbar__links{
    display: flex;
    column-gap: 20px;
}

#navbar .link{
    font-family: 'Permanent Marker', cursive;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

#navbar .link:hover{
    text-decoration: underline;
    text-decoration-color: white;
}

.center{
    padding: 0 calc(50vw - var(--width) / 2);
}

#footer{
    position: fixed;
    background: whitesmoke;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 20px;
    bottom: 0;
}

.bold{
    font-family: 'Permanent Marker', cursive;
}

.logo img{
    height: 40px;
}

.logo{
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 5px;
    font-weight: bolder;
    color: var(--red);
    font-size: 24px;
}

.fadein{
    animation: fadein 1s linear forwards;
}

.fadeout{
    animation: fadeout 1s linear forwards;
}

button:not(.nohover){
    cursor: pointer;
    transition: 0.2s;
}

button:not(.nohover):hover{
    opacity: 0.8;
}

button:not(.nohover):active{
    opacity: 0.5;
}

.boldchinese{
    font-family: 'Ma Shan Zheng', cursive;
}

a{
    color: var(--red);
}

#dropdown{
    background: var(--dark-blue);
    width: fit-content;
    flex-direction: column;
    position: fixed;
    right: calc(50vw - var(--width) / 2);
    z-index: 5;
    padding: 15px 10px 10px;
    top: 40px;
    display: none;
    row-gap: 5px;
}

#navbar__username_wrapper:hover > #dropdown{
    display: flex;
}

#dropdown a{
    font-size: 14px;
}

#logout{
    color: var(--red) !important;
    text-decoration-color: var(--red) !important;
}

@keyframes fadein{
    from{
        opacity: 0;
    }to{opacity: 1;}
}

@keyframes fadeout{
    from{
        opacity: 1;
    }to{opacity: 0;}
}

@media (max-width: 1050px){
    :root{
        --width: 95vw;
    }
}