@font-face {
    font-family: 'Findel';
    src: url('Findel-Display-Regular.otf');
}

@font-face {
    font-family: 'MadeleinaSans';
    src: url(MadeleinaSans-2VY3.ttf);
}

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

body {
    font-size: 1.2rem;
    color: #e9e9e9;
    font-family: MadeleinaSans;
    cursor: url('UiElements/Cursor.png'), auto;
    background-color: #222;
}

a:hover, button:hover {
    cursor: url('UiElements/Cursor\ Hover.png'), auto;
}

/* Header styles */
header {
    margin-bottom: 1vh;
    text-align: center;
    display: flex;
    align-items: center;
    background-color: #222;
    height: 100px;
    width: 100vw;
    top: 0;
    left: 0;
}

header li a {
    font-family: Findel;
    font-size: 1.8vw;
    padding: 3rem;
    color: #e9e9e9;
    text-decoration: none;
}

header ul {
    display: flex;
    padding: 0;
    margin: 0;
}

header li {
    list-style: none;
    position: relative;
}

header li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #e9e9e9;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

header li:hover::after {
    width: 80%;
}

header img {
    height: 10rem;
    width: 15rem;
    max-height: 100vw;
    max-width: 100vw;
    object-fit: contain;
}

/* General styles for sections */

.main h1 {
    text-align: center;
    font-family: MadeleinaSans;
    font-size: 8rem;
    margin-bottom: 1rem;
}
.section {
    margin-top: 1vh;
    padding: 1rem;
    background-color: #333;
    color: #e9e9e9;
    border-radius: 8px;
}

.section h2 {
    padding: 0.5vw;
    font-family: MadeleinaSans;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section p {
    padding: 0.5vw;
    font-family: MadeleinaSans;
    font-size: 1.6rem;
    line-height: 1.5;
}

/* Mobile media queries */
@media (max-width: 768px) {
    header img {
        height: 8rem;
        width: 12rem;
    }

    header li a {
        font-size: 3vw;
        padding: 2rem;
    }

    .section {
        margin: 1.5rem 0;
        padding: 0.75rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .main h1 {
        font-size: 5rem;
    }

    header img {
        height: 6rem;
        width: 10rem;
    }

    header li a {
        font-size: 3.8vw;
        padding: 0.75rem;
    }

    .section {
        margin: 1rem 0;
        padding: 0.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .section p {
        font-size: 0.9rem;
    }
}