@font-face {
    font-family: Zalando Sans;
    src: url(../static/ZalandoSansExpanded-ExtraLight.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-ExtraLightItalic.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-Light.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-LightItalic.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-Regular.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-Italic.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-Medium.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-MediumItalic.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-SemiBold.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-SemiBoldItalic.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-Bold.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-BoldItalic.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-ExtraBold.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-ExtraBoldItalic.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-Black.ttf) format("truetype"),
         url(../static/ZalandoSansExpanded-BlackItalic.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #FCF8F8;
    --color-header: #F9DFDF;
    --color-link: #F5AFAF;
    --color-link-hover: #FC5C5C;
}

body.moon-theme {
    --color-bg: #3C467B;
    --color-header: #50589C;
    --color-link: #636CCB;
    --color-link-hover: #6E8CFB;
}

body {
    margin: 0;
    font-family: 'Zalando Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--color-bg);
    transition: background-color 0.5s ease;
}

* {
    box-sizing: border-box;
}

header {
    background-color: var(--color-header);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 0 10px rgba(245, 175, 175, 0.3);
    position: relative;
    gap: 50px;
}

.header-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #F5AFAF;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px #F5AFAF, 0 0 20px #F5AFAF;
    transition: all 0.5s ease;
    position: relative;
}

.header-button.moon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    position: relative;
    box-shadow: none;
    transition: all 0.5s ease;
    overflow: hidden;
}

.header-button.moon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FFF8DC;
    box-shadow: 0 0 20px #FFF8DC, 0 0 40px rgba(255, 248, 220, 0.5);
}

.header-button.moon::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3C467B;
    box-shadow: 0 0 10px #3C467B;
}

body.moon-theme header {
    box-shadow: 0 0 30px #636CCB, 0 0 60px #6E8CFB;
}

body.moon-theme nav ul li a {
    text-shadow: 0 0 15px #636CCB, 0 0 30px #6E8CFB;
    transition: all 0.5s ease;
}

body.moon-theme nav ul li a:hover {
    text-shadow: 0 0 20px #6E8CFB, 0 0 40px #6E8CFB;
    color: #6E8CFB;
}

nav {
    flex: 1; 
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex; 
    gap: 50px; 
}

nav ul li {
    display: inline-block;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.5s forwards;
    font-size: 1.2rem;
}

nav ul li:nth-child(1) { animation-delay: 0.2s; }
nav ul li:nth-child(2) { animation-delay: 0.4s; }
nav ul li:nth-child(3) { animation-delay: 0.6s; }
nav ul li:nth-child(4) { animation-delay: 0.8s; }
nav ul li:nth-child(5) { animation-delay: 1s; }

nav ul li a {
    color: var(--color-link);
    transition: color 0.5s ease, text-shadow 0.5s ease, transform 0.3s ease;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #F5AFAF;
}

nav ul li a:hover {
    color: var(--color-link-hover);
    text-shadow: 0 0 10px var(--color-link-hover), 0 0 20px var(--color-link-hover);
    transform: scale(1.05);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    padding: 20px;
}

/* ========= Menu ========= */