@import url('https://fonts.googleapis.com/css2?family=DM+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&display=swap');

@font-face {
    font-family: 'Gordita Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Regular'), url('../fonts/Gordita/Gordita\ Regular.woff') format('woff');
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Scrollbar */

*::-webkit-scrollbar {
    width: .5rem;
    height: .5rem;
}
  
*::-webkit-scrollbar-track {
    background: #1e1e24;
}
  
*::-webkit-scrollbar-thumb {
    background: #ffffff;
}

.alert {
    background: #ffd20a;
    padding: 1rem;
    width: 100%;
    max-height: fit-content;
    display: flex;
    justify-content: center;
    overflow: hidden;
    animation: alertDisappear 1s ease 5s forwards;
}

/* Animations */

@keyframes fadeup {
    from {
        opacity: 0%;
        transform: translateY(20px);
    }

    to {
        opacity: 100%;
        transform: translateY(0);
    }
}

@keyframes fadeaway {
    from {
        opacity: 100%;
        display: block;
    }

    to {
        opacity: 0%;
        display: none;
    }
}

@keyframes alertDisappear {
    0% {
        max-height: 50px;
    }

    100% {
        max-height: 0px;
        padding: 0;
        display: none;
    }
}

/* Navigation */

header {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 3;
    font-family: 'Gordita Regular', sans-serif;
}

nav {
    min-height: 4rem;
    margin: auto;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav h1 {
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul li {
    padding: .2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 100ms ease-in-out;
}

nav ul li:hover {
    opacity: 75%;
}

.nav-list {
    padding: 0 20px;
}

nav a {
    color: black;
    text-decoration: none;
}

.right {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-avatar {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.menu-avatar-dropdown {
    display: none;
    position: absolute;
    right: 2.5%;
    top: 3.8rem;
    background-color: #FFFFFF;
    padding: 1rem;
    overflow: auto;
    z-index: 5;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.menu-avatar-dropdown a {
    font-weight: bold;
    transition: all 100ms ease-in-out;
}

.menu-avatar-dropdown a:hover {
    opacity: 75%;
}

.show-content {
    display: flex;
    flex-direction: column;
    animation: fadeup 150ms ease forwards;
}

.menu-avatar img {
    border-radius: 50%;
    height: 2.5rem;
}

@media screen and (max-width: 620px) {
    
    nav ul, .nav-list, nav ul a, nav ul a li {
        display: none;
    } 

    header {
        display: static;
    }
    
    nav {
        justify-content: space-between;
    }

}

/* Cookie banner */

button {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

.cookie-banner {
    position: fixed;
    width: 30rem;
    bottom: 3rem;
    right: 5vw;
    background: #ffffff;
    z-index: 10000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border-radius: .75rem;
    padding: 1.5rem;
    animation: cookie-banner-in 1s ease;
    font-size: 1rem;
}

.cookie-button {
    background: #dadcdf;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    padding: 4px 6px;
    transition: all 100ms ease;
    margin-right: .5rem;
}

.cookie-button:hover {
    background: #c7c8ca;
}

.cookie-banner p {
    margin-bottom: 1rem;
}

@keyframes cookie-banner-in {
    0% {
        transform: translateY(100px);
    }

    100% {
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    .cookie-banner {
        right: auto;
        left: 5%;
        width: 90%;
    }
}