@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');

* {
    box-sizing:border-box;
}

h1 {
    text-align: center;
    color: #8e7fa8;
    margin-top: 20px;
}

h2 {
    text-align: center;
    color: #a2798f;
}

h3 {
    color: #8fa58c;
    margin-top: 20px;
    text-align:center;
}

p {
    line-height: 1.6;
    margin: 10px 0;
    color: #59665a;
}

body {
    margin:0;
    padding:20px;
    font-family: "Cormorant Garamond", serif;
    background-color: #eee7da;
    color: #59665a;
}

footer {
    padding: 10px;
    margin-top: 5px;
    border-top: 1px solid #a2798f;
    text-align: center;
}

footer a {
    color: #a2798f;
    text-decoration: none;
}

/* Styling for Shakespeare Quote Hidden */
footer a:hover {
    color: #8caba8;
    text-decoration: underline;
}

.content-box {
    border: 1px solid #a2798f;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    width: 97%;
}

/* Nav Bar */

nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #6f5a67;
    border: 1px solid #a2798f;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: #ebdada;
    font-weight: 600;
}

nav a:hover {
    background-color: #d7c6cf;
    color: #4f444a;
}

nav a.active {
    background-color: #8caba8;
    color: white;
    border-color: #8caba8;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    margin-top: 1px;
    gap: 2px;
    flex-direction: column;

    min-width: 150px;
}

.dropdown-content a {
    display: block;
    width: 100%;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Non-clickable dropdown labels */

.nav-label {
    text-decoration: none;
    color: #6f5a67;
    border: 1px solid #a2798f;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: #ebdada;
    font-weight: 600;
    cursor: default;
}

.nav-label:hover {
    background-color: #d7c6cf;
    color: #4f444a;
}

/* Post Cards */

.post-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;

    max-width: 1000px;
    margin: 40px auto;
    padding: 25px 20px;

    border: 1px solid #d8cce0;
    border-radius: 18px;
}
.post-card.reverse {
    flex-direction: row-reverse;
}

.post-slideshow {
    position: relative;
    width: 45%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #f5eee2;
}
/* Slide images */

.post-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Single images */

.post-image {
    width: 45%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    width: 55%;
}

.post-content h3 {
    text-align: left;
    margin: 0 0 6px 0;
}

.post-date {
    margin: 0 0 20px 0;
    font-style: italic;
}

.post-content p {
    margin: 0 0 16px 0;
}

/* Slideshow container */

.post-slideshow {
    position: relative;
    width: 45%;
}

/* Hide every slide by default */

.post-slide {
    display: none;
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 14px;
}

/* Only show the active slide */

.post-slide.active {
    display: block;
}

/* Solo image post */

.post-image {
    width: 45%;
}

.post-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 14px;
}

/* Slideshow arrows */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;

    color: rgba(255, 255, 255, 0.9);
    font-size: 32px;

    cursor: pointer;
    padding: 6px;

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.prev {
    left: 8px;
}

.next {
    right: 8px;
}

.prev:hover,
.next:hover {
    color: white;
}

.tempest-quote {
    font-family: "Tangerine", cursive;
    font-weight: 700;
    font-style: normal;
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0.5rem 0 0.2rem;

    opacity: 0.12;
    transition: opacity 0.6s ease;
    cursor: default;
}

.tempest-attribution {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.9rem;
    font-style: italic;

    opacity: 0.12;
    transition: opacity 0.6s ease;
    margin: 0;
}

.tempest-quote:hover,
.tempest-quote:hover + .tempest-attribution {
    opacity: 0.75;
}




/* Tablets */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .content-box {
        width: 95%;
        padding: 16px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .post-card,
    .post-card.reverse {
        flex-direction: column;
    }

    .post-slideshow,
    .post-image,
    .post-content {
        width: 100%;
    }

    .post-slideshow,
    .post-image {
        aspect-ratio: 1 / 1;
        margin-bottom: 20px;
    }

    .post-slideshow img,
    .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}

/* Phones */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .content-box {
        width: 100%;
        padding: 14px;
        margin: 15px auto;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .post-card,
    .post-card.reverse {
        flex-direction: column;
    }

    .post-slideshow,
    .post-image,
    .post-content {
        width: 100%;
    }

    .post-slideshow,
    .post-image {
        aspect-ratio: 1 / 1;
        margin-bottom: 18px;
    }

    .post-slideshow img,
    .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    footer {
        padding: 15px 10px;
    }

}
