@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
*{
    margin: 0;
    box-sizing: border-box;
}
body{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}
.center{
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: 0 auto;
  margin-top: 50px;
}
.center h1{
    font-size: 5rem;
    font-family: "Playfair Display", serif;
    margin: 0;
}
.center p{
    font-family: "Nunito", sans-serif;
    line-height: 1.3333333333;
    word-spacing: .3mm;
}
@media (max-width: 488px) {
    .center h1{
        font-size: 4rem;
    }
    .center h3{
        font-size: .8rem;
    }
    .center p{
        font-size: .8rem;
    }
}
/*Navbar*/
nav {
    background: #000000;
    height: 40px;
    width: 100%;
    display: flex;
    justify-content: center; /* Centers the ul horizontally */
    align-items: center; /* Centers the ul vertically */
    position: fixed; /* Needed for the checkbtn positioning */
}

nav ul {
    display: flex; /* Changes ul to flexbox container */
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white;
    font-size: 17px;
    padding: 7px 13px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    font-family: "Source Sans 3", sans-serif;
}
.subnav{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0 30px 0;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    border-bottom: 3px solid black;
    text-align: center;
}
.subnav h3{
    font-size: .9rem;
    word-spacing: .6mm;
}
a.active,
a:hover {
    text-decoration: underline !important;
    transition: .5s;
}

.checkbtn {
    font-size: 22px;
    color: white;
    line-height: 80px;
    cursor: pointer;
    display: none;
    position: absolute; /* Positioning it on the right side */
    right: 30px; /* Adjust to match the original margin-right */
}

#check {
    display: none;
}

@media (max-width: 890px) {
    .checkbtn {
        display: block;
    }

    ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: black;
        top: 40px;
        left: -100%;
        text-align: center;
        transition: all .5s;
        flex-direction: column; /* Stack items vertically */
        align-items: baseline;
        gap: 20px;
    }

    ul h2 {
        color: white;
        font-family: "Playfair Display", serif;
        padding: 30px 0;
        border-bottom: 1px solid white;
        width: 100%;
        display: block !important;
    }

    nav ul li {
        display: block;
        line-height: 30px;
    }

    nav ul li a {
        font-size: 20px;
        font-family: "Source Sans 3", sans-serif;
        font-weight: 500;
        padding: 7px 20px;
    }

    a:hover,
    a.active {
        background: none;
    }

    #check:checked~ul {
        left: 0;
    }
    .center{
        margin: 50px 40px 0 40px;
        width: fit-content;
    }
    .subnav h1{
        line-height: 1cm;
    }
    .subnav{
        gap: 10px;
        padding: 70px 0 30px 0;
    }
}

@media (max-width: 740px) {
    .subnav h1{
        font-size: 2.4rem;
    }
    .subnav h3{
        font-size: .7rem;
    }
}

section {
    background: url("bg.jpg") no-repeat;
    background-size: cover;
    height: calc(100vh - 80px);
}