* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* most important... somehow fixes horizontal scrollbars */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
}
body.dark-mode{
    background-color: rgb(31, 29, 29);
    color: lightgreen;
}

body.dark-mode ul{
    background-color: rgb(10, 10, 10);
}


body.dark-mode p,
body.dark-mode a,
body.dark-mode li {
    color: inherit; /* Inherits the lightgreen color from the parent */
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: green;
}

.sky {
    top: 0;
    position: relative;
    width: 100%;
}

.sky img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}
#sky {
    display: block;
}

#dark-sky {
    display: none;
}

body.dark-mode #dark-sky {
    display: block;
}

body.dark-mode #sky {
    display: none;
}

.plane {
    position: absolute;
    top: 50%;
    left: 52.5%;
    transform: translate(-50%, -50%);
}

.plane img {
    width: 120%;
    height: auto;
    animation: fly 10s ease-in-out infinite;
}
.flares{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.flares img{
    width: 5vw;
    height: auto;

    animation: pop 2s ease-in-out infinite;
}


.overlay {
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 6rem;
    
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.navbar ul {
    margin-top: -4px;
    list-style-type: none;
    overflow: hidden;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.navbar a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 15px;
    display: block;
    text-align: center;
    font-size: 1rem;
}

.navbar a:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
    font-weight: 600;
}

.navbar li {
    float: left;
}

section {
    margin: 10vh 15vh 0 15vh;
}

@keyframes fly {
    0% {
        transform: translateY(0) rotate(0deg);
        animation-timing-function: ease-out;
    }
    25% {
        transform: translateY(-5%) translateX(-2%) rotate(3deg);
        animation-timing-function: ease-in;
    }
    50% {
        transform: translateY(0) rotate(0deg);
        animation-timing-function: ease-out;
    }
    75% {
        transform: translateY(5%) translateX(2%) rotate(-3deg);
        animation-timing-function: ease-in;
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pop {
    0% {
        opacity: 100%;
        transform: translateX(-40px) translateY(-40px);
        animation-timing-function: ease-out;
    }
    25% {
        transform: translateY(-150px) rotate(30deg);
        animation-timing-function: ease-in;
    }
    50% {
        opacity: 0%;
        animation-timing-function: ease-out;
    }
    100% {
        opacity: 0%;
        
    }
    
}
@keyframes po {
    
}

p{
    line-height: 1.5rem;
    margin-top: 1rem;
}

li{
    line-height: 1.6rem;
    margin-top: 1rem;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}

::-webkit-scrollbar-thumb {
    background-color: #666D67; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Roundness of the scrollbar thumb */
    border: 3px solid #f1f1f1; /* Padding around the scrollbar thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #2A3E3E; /* Color of the scrollbar thumb on hover */
}

/* Color Palette: */
/* #2A3E3E, #666D67, #6F5F52, #40435D, #0B1637 */

/* 2xl */
@media (max-width: 1536px) {
    .overlay {
        font-size: 6rem;
    }
    .navbar a {
        font-size: 1.4rem;
    }
    section {
        margin: 10vh 12vh 0 12vh;
    }
    h2{
        font-size: 2rem;
    }
}

/* xl */
@media (max-width: 1280px) {
    .overlay {
        font-size: 5.5rem;
    }
    .navbar a {
        font-size: 1.3rem;
    }
    section {
        margin: 9vh 10vh 0 10vh;
    }
    h2{
        font-size: 1.8rem;
    }
}

/* lg */
@media (max-width: 1024px) {
    .overlay {
        font-size: 5rem;
    }
    .navbar a {
        font-size: 1.1rem;
    }
    section {
        margin: 7vh 5vh 0 5vh;
    }
    h2{
        font-size: 1.6rem;
    }
}

/* md */
@media (max-width: 768px) {
    .overlay {
        font-size: 4rem;
    }
    .navbar a {
        font-size: 1rem;
    }
    section {
        margin: 5vh 2vh 0 2vh;
    }
    h2{
        font-size: 1.3rem;
    }
}

/* sm */
@media (max-width: 640px) {
    .overlay {
        font-size: 3rem;
    }
    .navbar a {
        font-size: 0.8rem;
    }
    section {
        margin: 4vh 1vh 0 1vh;
    }
    h2{
        font-size: 1.1rem;
    }
}

/* xs */
@media (max-width: 475px) {
    .overlay {
        font-size: 2.5rem;
    }
    .navbar a {
        font-size: 0.7rem;
    }
    section {
        margin: 3vh 0.5vh 0 0.5vh;
        display: inline-block;
    }
    h2{
        font-size: 0.9rem;
    }
    p{
        font-size: 0.8rem;
    }
    li{
        font-size: 0.8rem;
    }
    .sky {
        height: ;
        
    }
}
