@font-face {
    font-family: "Quicksand";
    src: url(../fonts/Quicksand.ttf) format("truetype");
    font-display: swap;
}

body {
    font-family: "Quicksand", Verdana, Helvetica, sans-serif;
    background-color: #fff;
}

/* skip nav start */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    text-decoration: none;
    font-size: 1rem;
    background: #fff;
}

.skip-link:focus {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: #fff;
    font-weight: 900;
    color: #333a2a;
    ;
    padding: 0.5em;
    z-index: 1000;
}

a:link {
    color: #A30052;
    text-decoration: underline;
}

/* end skip nav */
#wrapper {
    max-width: 1366px;
    min-height: 100vh;
    margin: 0 auto;
    top: 10px;
    padding: 2em;
    position: relative;
    z-index: 1;
}

nav {
    display: grid;
    grid-template-areas: "logo" "nav-list";
    grid-template-columns: 1fr 5fr;
}

#logo {
    grid-area: logo;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #6c7c59;
    border-bottom: 4px solid #7ca36e;
    max-height: 2.8rem;

}

#nav-list {
    grid-area: nav-list;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-decoration: none;
    gap: 1em;
}

.nav-list a {
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-family: Quicksand, Verdana, "Trebuchet MS", sans-serif;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    padding: 5px 30px;
    cursor: pointer;
}

.nav-list a:hover {
    transition:
        background 0.3s ease-in-out,
        box-shadow 0.3s;
    color: #4a4860;
    background: #ffc4eb;
    box-shadow: 0 4px 0 0 #e09bb2;
}

button#heart-trigger.heart.heart-trigger {
    border: none;
    background: none;
}

.heart-icon {
    width: 30px;
    height: 30px;
    fill: #ff9fc4;
    display: inline-block;
    position: relative;
}

.heart.heart-trigger {
    width: 45px;
    justify-content: center;
    align-items: center;
}

button.heart:hover .heart-icon {
    fill: #a5c77d;
    transform: scale(1.2);
}

.heart-trigger {
    display: block;
    order: -1;
    padding: 12px 30px;
}

#homepage {
    background-color: #d5d5d5;
    max-width: 100%;
    grid-area: content;
    display: grid;
    min-height: 768px;
    max-width: 1366px;
    margin: 0 auto;
    grid-template-areas: "landing" "welcome";
    grid-template-rows: 1fr;
}

#hero {
    background-color: #c1e9ff;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(#ffffff, #ffffff80);
    align-self: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    justify-content: center;
    position: relative;
    border-radius: 10px;
    margin: 1%;
}

#hero h1 {
    font-family: Quicksand, Verdana, "Trebuchet MS", sans-serif;
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: #61333d;
}

#welcome {
    background-color: #ffffec;
    padding: 1.5em;
    border-radius: 10px;
    border: 2px solid #ffc2dc;
    margin: 1%;
    box-shadow: 0 0 15px #c6d8ff;
}

#welcome h2,
#welcome h3 {
    font-family: Quicksand, Verdana, "Trebuchet MS", sans-serif;
    letter-spacing: 2px;
}

.body2 {
    font-size: 0.8rem;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2em;
    padding: 1em;
    margin: 0 auto;
}

#gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.5s ease;
    aspect-ratio: 283 / 409;
    /* Reserve space to prevent layout shift */
}

#gallery img:hover {
    transform: scale(1.05);
}

#gallery-content {
    margin: 1em;
}

#gallery-content h1 {
    color: #61333d;
    margin: 0 auto;
    padding: 0.5em;
}

#gallery-content h2 {
    display: none;
}

/*MODAL*/
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: auto;
    height: 100%;
    background-color: #000000cc;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
    position: relative;
    max-width: 100%;
    max-height: 95%;
    overflow: hidden;
    animation: zoomIn 0.5s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.6);
    }

    to {
        transform: scale(1);
    }
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Close button */
.close {
    position: absolute;
    z-index: 110;
    right: 30px;
    top: 30px;
    color: #ffffff;
    font-size: 4rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.close:hover {
    transform: scale(1.5);
}

/*END MODAL*/

#about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: #fff;
    padding: 3em;
}

#about-text {
    background-color: #ffffec;
    border: 2px solid #ffc2c2;
    max-width: 430px;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 0 15px #bebebe;
    font-family: Quicksand, Verdana, "Trebuchet MS", sans-serif;
    letter-spacing: 1px;
    line-height: 150%;
}

#about-text h1 {
    font-family: Quicksand, Verdana, "Trebuchet MS", sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
}

#sample {
    padding: 1em;
    margin-left: auto;
}

#sample img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.reference-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
    /* spacing between sections */
}

section #video-container {
  display: flex;
  justify-content: center;   /* centers horizontally */
  margin: 1rem 0;            /* spacing above/below */
}

section #video-container iframe {
  width: 100%;
  max-width: 560px;          /* prevents it from stretching too wide */
  aspect-ratio: 16 / 9;      /* keeps correct proportions */
  border: none;
}

#contact-container h1 {
    color: #b94d71;
}

#contact-container h2 {
    letter-spacing: 5px;
    text-align: center;
    color: #b94d71;
}

#contact-container {
    background-color: #fff;
    padding: 1em;
}

#contact-form {
    background-color: #ffffec;
    max-width: 500px;
    margin: 0 auto;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 0 15px #bebebe;
}

#contact-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

#contact-form legend {
    color: #3d3d3d;
    letter-spacing: 1px;
}

#contact-form label {
    position: relative;
    display: block;
    margin-top: 1em;
    font-weight: 500;
}

#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 0.8em;
    margin-top: 0.3em;
    border: 1px solid #c2c2c2;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

fieldset {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: auto;
}

#contact-form textarea {
    min-height: 120px;
}

#contact-form .one {
    margin-top: 1em;
    margin-left: 50px;
}

#contact-form .one label {
    display: flex;
    width: 300px;
    font-size: 0.8rem;
    flex-direction: row-reverse;
    padding: 0.5em;
    gap: 1em;
}

.one {
    font-size: 0.7rem;
}

#contact-form button.submit {
    margin-top: 1.5em;
    width: 100%;
    padding: 1em;
    background-color: #aaa;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#contact-form button.submit:hover {
    background-color: #a3c760;
    transition: background-color 0.3s ease;
}

.tooltip {
    position: absolute;
    visibility: hidden;
    font-weight: 400;
    color: #fff;
    background-color: #424242;
    border: solid 2px #fff;
    padding: 0.5em;
    font-size: small;
    width: 270px;
    margin-left: 3rem;
    margin-top: -1rem;
}

span.error {
    padding: 10px;
    color: #520000;
    font-style: italic;
    font-size: 0.7rem;
}

.success {
    color: #45bd00;
}

span.success {
    padding-left: 10px;
}

table,
th,
td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 0.5rem;
}

td img {
    width: 100px;
    height: 120px;
}

th {
    background-color: #e3f0c2;
}

table style {
    width: 100%;
}

.costs,
.books {
    margin-left: auto;
    margin-right: auto;
}

 textarea {
      display: block;
      width: 70%;
}

footer {
    font-family: Quicksand, Verdana, "Trebuchet MS", sans-serif;
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 1.5em;
    gap: 3em;
    font-size: 1rem;
    color: #3f580f;
    text-transform: uppercase;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: row;
}

footer ul,
a,
li {
    text-decoration: none;
}

footer a:link {
    color: #3f580f;
}

footer a:visited {
    color: #3f580f;
}

footer a:hover {
    color: #cf6748;
}

footer a:active {
    color: #3f580f;
}

footer ul li {
    margin: 1em;
    letter-spacing: 1px;
}

footer h4 {
    letter-spacing: 1px;
    padding: 10px;
}

@media screen and (max-width: 600px) {
    nav {
        grid-template-columns: 1fr;
        min-height: 1rem;
    }

    header {
        max-height: none;
    }

    #wrapper {
        padding: 1em;
        margin-top: 3em;
    }

    .nav-list {
        display: none;
        margin: 0.5rem;
        padding: 0.1rem;
    }

    .nav-list.hidden {
        display: block;
        flex-direction: column;
        padding: 1em;
    }

    .nav-list a {
        margin: auto;
        font-size: 1rem;
    }

    #logo {
        margin: 0;
    }

    .heart {
        font-size: 1.2em;
        align-items: center;
    }

    #gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    #about {
        grid-template-columns: 1fr;
    }

    #contact-form {
        padding: 1em;
    }

    #contact-form .one label {
        width: 160px;
        font-size: 0.8rem;
        flex-direction: row-reverse;
    }

    #ref-container {
        grid-template-columns: 1fr;
    }

    footer {
        display: flex;
        flex-direction: column;
        font-size: 1rem;
        gap: 1em;
        padding: 1em;
    }

    footer ul {
        flex-direction: column;
    }

    footer ul li {
        margin: 0.5em;
    }
}

@media screen and (min-width: 600px) and (max-width: 1250px) {
    #gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1920px) {
    #wrapper {
        max-width: 1890px;
    }
}