body {
    font-family: Verdana, Tahoma, sans-serif;
}

h1 {
    margin: 0 0 5px 0;
    font-size: 50px;
}

h2,
h3 {
    margin: 0;
}

p {
    margin: 0;
}

a {
    text-decoration-line: none;
}

a:hover {
    text-decoration-line: underline;
}

/* Hide BR tag for wider screens */
br.responsive {
    display: none;
}

ul {
    margin: 0;
    padding-left: 25px;
}

.container {
    margin: 0 auto;
    padding: 10px;
    max-width: 1350px;
    border: solid 3px;
}

#header {
    padding: 10px 0 5px 15px;
    border: solid 3px;
}

.content {
    display: flex;
    margin-top: 10px;
    padding: 10px;
    border: solid 3px;
}

.headingtext {
    margin: 0 0 10px 0;
    padding: 5px 10px 5px 10px;
}

#references {
    display: flex;
    flex-direction: row;
}

/* Hide the images by default */
.slides {
    display: none;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
    cursor: pointer;
}

/* Container for image text */
.caption-container {
    text-align: center;
    background-color: #222;
    padding: 5px;
    color: white;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Add a transparency effect for thumnbail images */
.demo {
    opacity: 0.5;
}

.active,
.demo:hover {
    opacity: 1;
}

.refimg {
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

.refthumbnailcolumn {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0 0 10px;
    width: 25%;
}

.refthumbnail {
    margin: 10px 0 10px 0;
    border: solid 3px;
    overflow: hidden;
}

#bioflex {
    display: flex;
    width: 100%;
}

#bioimg {
    margin-top: 60px;
    width: 25%;
}

#bio {
    padding-top: 5px;
    width: 50%;
    text-align: center;
}

#biotext {
    margin: 0 auto;
    padding: 15px;
    width: 75%;
    border-radius: 15px;
}

.bioimg {
    max-width: 100%;
}

#pagedoll {
    width: 25%;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.right {
    text-align: right;
}

.infobox {
    padding: 0 5px 5px 5px;
    width: 100%;
}

.infotext {
    padding: 10px;
    border-radius: 5px;
}

#moodboard {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.moodboardimg {
    margin: 10px auto;
    width: 200px;
    height: 200px;
    border: solid 3px;
    overflow: hidden;
}

summary {
    margin-bottom: 5px;
}

summary::after {
    content: " to open";
}

details[open] summary::after {
    content: " to close";
}

summary::marker {
    color: #000000;
}

details {
    padding: 10px;
}

.relationships {
    display: flex;
    border-radius: 5px;
}

.relationshipscol1 {
    width: 25%;
}

.relationshipscol2 {
    width: 100%;
}

.relationshipsicon {
    margin: 10px auto 5px auto;
    width: 200px;
    height: 400px;
    border: solid 3px;
}

.relationshipsheadingtext {
    margin: 0 0 10px 0;
    padding: 5px 10px 5px 10px;
    font-size: 24px;
}

.hearts {
    font-size: 24px;
    float: right;
}

.relationshipstext {
    padding: 10px 20px 0 10px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 15px;
}

.gallery-item {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.5s ease;
    border: solid 3px;
}

.gallery-item:hover {
    opacity: 0.6;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
    position: relative;
    width: 90%;
    height: auto;
    max-width: 60%;
    max-height: auto;
    border: solid 10px #fff;
    border-radius: 5px;
    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;
    top: 10px;
    right: 15px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
    position: absolute;
    bottom: 100px;
    width: 100%;
    text-align: center;
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .gallery-item {
        width: calc(100% - 20px);
    }
}

#footerimg {
    margin-top: 15px;
    width: auto;
    height: 215px;
}

.footerimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#footer {
    margin: 0 auto;
    max-width: 1350px;
    font-size: 12px;
    float: right;
}

/* For mobile layouts. Make a one column-layout instead of two-column layout */
@media (max-width: 920px) {
    h2 {
        font-size: 18px;
    }
    .moodboardimg {
        margin: 10px;
        width: 150px;
        height: 150px;
    }

    .gallery-item {
        margin: 0;
        width: 100px;
        height: 100px;
    }

    .relationshipscol1 {
        width: 50%;
    }

    .relationshipscol2 {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .container {
        margin: -11px;
        padding: 5px;
        justify-content: center;
    }

    .content {
        flex-direction: column;
        padding: 5px;
    }

    .infobox {
        padding: 5px 0 10px 15px;
        width: 100%;
    }

    #references,
    #bioflex,
    .relationships {
        flex-direction: column;
    }
    .refthumbnailcolumn,
    #bio {
        width: 100%;
        overflow: hidden;
    }
    .refthumbnail {
        display: inline-block;
        margin-left: 15px;
        width: 120px;
        height: 120px;
    }

    #bioimg,
    #pagedoll,
    .relationshipscol1 {
        margin-top: 0;
        width: 100%;
    }

    #biotext {
        width: 90%;
    }
    .infobox {
        width: 95%;
    }

    .relationshipsheadingtext {
        display: flex;
        flex-direction: column;
        font-size: 20px;
        text-align: center;
    }

    .hearts {
        font-size: 18px;
        text-align: center;
        float: none;
    }

    .gallery-item,
    .moodboardimg {
        margin: 10px;
        width: 150px;
        height: 150px;
    }

    .modal-content {
        width: 95%;
        height: auto;
        max-width: 80%;
        max-height: auto;
        border: solid 5px;
    }

    .caption {
        bottom: 255px;
    }
}

@media (max-width: 460px) {
    .container {
        margin: -11px;
    }

    h1 {
        margin: 0 0 5px 0;
        font-size: 30px;
    }

    h2 {
        font-size: 20px;
    }

    /* Show BR tag for narrow screens */
    br.responsive {
        display: inline;
    }

    #header {
        padding: 5px 0 0 5px;
        font-size: 14px;
    }

    .infobox {
        padding: 5px 0 5px 0;
        width: 100%;
    }

    .row {
        max-width: 97%;
        height: 145px;
    }

    .refthumbnail {
        margin: 0;
        width: 30%;
        border: solid 3px;
        overflow: hidden;
    }

    .center {
        max-width: 50%;
    }

    .relationshipsicon {
        margin: 10px auto 5px auto;
        width: 35%;
        height: auto;

        border: solid 3px;
    }

    .relationshipsheadingtext {
        margin: 0 0 10px 0;
        padding: 5px 10px 5px 10px;
        font-size: 18px;
        text-align: center;
    }

    .gallery-item,
    .moodboardimg {
        margin: 10px;
        width: 140px;
        height: 140px;
    }

    .modal-content {
        width: 95%;
        height: auto;
        max-width: 80%;
        max-height: auto;
    }

    .caption {
        bottom: 300px;
    }

    #footer {
        margin: 15px 0 0 0;
        float: none;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .container {
        margin: -6px;
    }

    .gallery {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .gallery-item,
    .moodboardimg {
        margin: 10px;
        width: 110px;
        height: 110px;
    }

    .caption {
        bottom: 290px;
    }
}
