* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Playfair Display", serif;
}

header {
    background-color: #282c34;
    color: white;
    display: flex;
    align-items: center;
    justify-content: left;
}

header image {
    display: block;
}

.header-text {
    font-size: 1.5rem;
    font-style: italic;
}

button#hamburger {
    position: absolute;
    top: 5px;
    right: 0;
    background: none;
    border: none;
    display: block;
    padding-bottom: .6rem;
    font-size: 2rem;
    color: white;
    text-align: center;
    width: 50px;
    cursor: pointer;
}

nav {
    /* background-color: #ff6f61; */
    background-color: #2c3e50;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: .75rem;
    display: block;
    text-align: center;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}

nav ul li.active a {
    background-color: rgba(184, 169, 240, 0.15); 
    
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.15);
}

nav.show {
    grid-template-rows: 1fr;
}



   /* form design */

h1 {
    color: #2c3e50;
    margin: .75rem;
}

h2 {
    color: #282c34;
    margin-bottom: .75rem;
}

.sp {
    margin: 1rem ;
}

form.styling {
    margin: 1rem 2%;
}

.styling label {
    display: block;
    font-size: .8rem;
    color: #2c3e50;
    padding-top: .2rem;
}

.styling input:required {
    border-left-width: 5px;
    border-left-color: red;
}

.styling input[type=text], .styling input[type=tel], .styling input[type=date], .styling input[type=email], .styling textarea, .styling select {
    display: block;
    margin: .1rem 0 1rem 0;
    padding: .3rem;
    border-radius: 4px;
    font-size: 1rem;
    color: #3D405B;
    width: 300px;
}

.styling input[type=submit] {
    border: 1px solid black;
    text-align: center;
    border-radius: 10px;
    background-color: #37495c;
    color: white;
    padding: .5rem .75rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.styling input[type=submit]:hover {
    background-color: #16a085;
}

button {
    margin-top: 15px;
    padding: 4px 6px;
    border-radius: 8px;
}

    /* membership level styling */

.level aside {
    border: solid 1px #444;
    border-radius: 5px 20px;
    padding: 30px;
    background-color: #282c34;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-100%);
    animation: slideInLeft 1s ease-out forwards;
    
}

.level aside:nth-child(1) {
    animation-delay: 0.2s;
}

.level aside:nth-child(2) {
    animation-delay: 0.4s;
}

.level aside:nth-child(3) {
    animation-delay: 0.6s;
}

.level aside:nth-child(4) {
    animation-delay: 0.8s;
}
.level aside:nth-child(5) {
    animation-delay: 1s;
}

@keyframes slideInLeft {
to {
    opacity: 1;
    transform: translateX(0);
   }
}


    /* Modal Styling */

dialog {
    border: 1px solid rgb(0 0 0 / 0.1);
    border-radius: 10px;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 0 3rem #777;
    width: 95%;
    max-width: 800px;
    margin: auto;
    }

    dialog h4 {
    background-color: #2c3e50;
    color: white;
    text-align: left;
    padding: 15px;
    margin-bottom: 10px;
    }

    dialog h3 {
    margin-bottom: 10px;
    }

    dialog p {
    margin-bottom: 10px;
    }

    dialog li {
        margin-bottom: 10px;
        margin-left: 30px;
    }

    ::backdrop {
    background-color: rgb(0 0 0 / 0.5);
    }

    dialog button {
    position: absolute;
    top: 8px;
    right: 20px;
    padding: .5rem 1rem;
    border: 1px solid rgb(0 0 0 / 0.1);
    }





footer {
    background-color: #282c34;
    /* background-color: #2c3e50; */
    color: white;
}

footer p {
    margin: 0.25rem;
}

.address, .project {
    padding: 1rem 10px;
}

.footer-social ul {
    list-style: none;
    padding-left: 1rem;
    margin: 1rem 0; /* Add space above the social icons */
    display: flex;
    gap: 1rem;
}

.footer-social li {
    display: inline-block;
}

.footer-social a {
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #e8f5e9; /* Light green hover color */
}








/* Media query for larger screen size */

@media screen and (min-width: 818px) {

    button#hamburger {
        display: none;
    }

    nav {
        grid-template-rows: 1fr;
    }

    nav ul {
        display: flex;
    }

    nav ul li {
        flex: 1 1 100%;
    }

    nav ul li a {
        border: none;
        border-right: 1px solid rgba(0,0,0,0.2);
    }

    nav ul li:last-child a {
        border:none;}
    

        /* Body styling */
    
    .sp {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .level aside {
        opacity: 0;
        transform: translateX(100%);
        animation: slideInRight 1s ease-out forwards;
    }    

    @keyframes slideInRight {
        to {
          opacity: 1;
          transform: translateX(0);
        }
    }


    footer {
        display: grid;
        grid-template-columns:repeat(3,1fr);
    }

    .footer-social {
        align-content: center;
        justify-self: center;
        padding-right: 5rem;
    }


}