*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'sans-serif';
}

.hero{
    width: 100%;
    min-height: 100vh;
    background-image: url("../images/background.jpg");
    background-position: center;
    background-size: cover;
    padding: 10px 10%;
    overflow: hidden;

}

nav {
    padding: 10px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    width: 300px;
    justify-self: start;
}

nav ul {
    justify-self: center;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 15px;
}

nav ul li a {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 400;
    font-size: 3vh;

}

.nav-links{
    position: relative;
    width: max-content;
}

.nav-links::after{
    content: '';
    background: linear-gradient(to right, #EBCD21, #7C108A);
    margin-top: 3px;
    height: 5px;
    width: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 160ms;
}

.nav-links:hover::after{
    width: 100%;
}

#content-container{
    border-radius: 15px;
    padding: 20px;
    background: linear-gradient(#94a3b8, #834f31, #cbd4dd);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 70%;
    justify-self: center;
}

#content-container img{
    width: 35vw;
    height: auto;
    margin-top: 2vh;
}

#content-container p{
    font-size: 2vh;
    line-height: 37px;
}

@media (max-width: 768px) {
    .hero {
        padding: 10px 4%; /* Reduces side padding on mobile */
    }

    nav {
        display: flex;
        flex-direction: column; /* Stacks logo and links vertically */
        gap: 15px;
    }

    .logo {
        width: 180px; /* Reduces logo size */
        justify-self: center;
    }

    nav ul li {
        margin: 5px 10px; /* Reduces space between nav links */
    }

    nav ul li a {
        font-size: 1rem;
    }

    #content-container {
        width: 100%; /* Expands content box to fill mobile screen */
        padding: 15px;
    }

    #content-container img {
        width: 100%; /* Ensures chess picture stays within container bounds */
    }
}