/* --- BODY & BACKGROUND --- */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1.15rem;
    text-align: justify;
    font-family: "Times New Roman", Times, serif;
}

/* --- MENU / HEADER --- */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    background-color: rgba(255, 240, 170);
    width: 100%;
    height: fit-content;
    flex-shrink: 0;
}

.menuBtn {
    width: fit-content;
    height: fit-content;
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menuBtn img {
    width: 3rem !important;
    height: auto !important;
}

.dropdownContainer {
    display: none;
    width: fit-content;
    height: fit-content;
    background-color: rgba(255, 240, 170);
    position: fixed;
    border-radius: 10px;
    top: 4.5rem;
    right: 0;
}

.lgSelectorActive {
    display: flex !important;
    z-index: 1003;
}

#dropdown {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0 1rem;
    padding: 0;
    height: fit-content;
}

#dropdown button {
    background-color: transparent;
    border: none;
    width: 100%;
    height: 100%;
    font-size: 1rem;
}

#dropdown button {
    margin: 0.5rem 0;
    cursor: pointer;
}

#dropdown button:hover {
    color: #a20707;
}

.lgChanger {
    background-color: rgba(255, 240, 170);
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
}

.lgChanger:hover {
    color: #a20707;
}

.lgImg {
    width: 1rem;
    height: auto;
}

.phoneMenu {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    margin-top: 3rem;
    height: fit-content;
    z-index: 1002;
}

.phoneMenu ul {
    list-style: none;
    width: fit-content;
    height: fit-content;
    margin: 0;
    padding: 0 1rem;
    background-color: rgba(255, 240, 170);
}

.phoneMenu ul li {
    margin: 0.5rem 0;
}

.phoneMenu ul li:hover a{
    color: #a20707;
}

.phoneMenu ul li a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.menu nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.menu nav .logo img {
    max-height: 50px;
    height: 100%;
    width: auto;
    display: block;
}

.menu nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.menu nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu nav ul li a:hover {
    color: #a20707;
}

/* --- MAIN CONTENT --- */
main {
    margin-top: 80px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 70%;
    max-width: 1200px;
    padding: 0;
    overflow-y: auto;
}

.siteContent {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    padding: 20px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background-color: #fbf1e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.siteContent img {
    min-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.siteContent h2 {
    width: 100%;
    margin-bottom: 15px;
}

.siteContent h3 {
    text-align: start;
}

/* --- TITLE --- */
.siteTitle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 1rem;
    border-radius: 10px;
    background-color: #fbf1e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 5px 10px;
    text-align: center;
}

.siteTitle h2 {
    margin: 0;
}

/* --- FOOTER --- */
footer {
    background-color: rgba(255, 240, 170, 0.95);
    width: 100%;
    padding: 1rem 0;
}

footer .contactLayout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: fit-content;
    margin: auto;
    gap: 1rem;
}

footer .contactLayout ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

footer .contactLayout ul li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

footer .contactLayout ul li img {
    height: 30px;
    width: auto;
    display: block;
}

footer .contactLayout ul li a {
    text-decoration: underline;
    color: black;
}

footer .contactLayout ul li a:hover {
    color: #a20707;
}

/* --- GLADIATOR TYPES SITE --- */
.gladiatorTypeEven, .gladiatorTypeOdd {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #fbf1e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gladiatorTypeEven {
    flex-direction: row;
}

.gladiatorTypeOdd {
    flex-direction: row-reverse;
}

.gladiatorTypeEven .text, .gladiatorTypeOdd .text {
    flex: 1;
    padding: 0 20px;
    margin-top: 0;
    margin-bottom: auto;
}

.gladiatorTypeEven img, .gladiatorTypeOdd img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* --- PERFORMANCE SITE --- */

.usualPerformance .text {
    width: 60%;
    margin-right: 1rem;
}

.usualPerformance ul {
    margin-right: 1rem;
}

.historyClassTopic {
    width: 40%;
    margin-right: 1rem;
}

.historyClassInfo {
    margin-right: 1rem;
}

.teacher{
    text-align: start;
}

.wineKing, .trupMurm, .ritual .aliveHistory {
    margin-left: auto;
    margin-right: 1rem;
}

.wineKing {
    width: 30%;
}

.retSec {
    width: 40%;
    margin-left: 0;
    margin-right: 2rem;
}

.trupMurm {
    width: 40%;
}

.ritual {
    width: 28%;
}

.aliveHistory {
    width: 50%;
}

/* --- ABOUT US SITE --- */
.mark {
    height: 3rem !important;
    width: auto !important;
    min-width: 0 !important;
    object-fit: fill !important;
}

.openMark {
    margin-bottom: 0 !important;
    margin-right: auto;
    margin-left: 0;
}

.closeMark {
    margin-left: auto !important;
    margin-right: 0;
    margin-top: 0 !important;
    -webkit-transform: rotate(180deg);
}

.signature {
    font-style: italic;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.memorialContent {
    justify-content: space-evenly;
}

.memorial {
    width: fit-content;
    max-width: 40%;
    border: 2px #a20707 solid;
    height: fit-content;
    text-align: center;
}

.memorial img{
    max-height: 45vh;
    width: auto;
}

/* --- RESEARCH WORK SITE --- */
.researchContent {
    justify-content: space-evenly;
    padding: 0;
    width: fit-content;
}

.left {
    margin-left: 2.2rem;
    margin-right: auto;
}

.right {
    margin-left: auto;
    margin-right: 3rem;
}

.middle {
    margin-right: auto;
    margin-left: auto;
}

.researchWorkName {
    text-align: center;
}

.referenceImg {
    margin-left: 2rem;
    width: fit-content;
    height: 100%;
}

.reconstructionImg {
    width: fit-content;
    height: 100%;
}

.reconstructionImg img, .referenceImg img{
    width: auto;
    max-width: 25rem;
    min-width: 0;
    height: auto;
    max-height: 25em;
}

/* --- GALLERY SITE --- */
.map {
    width: 100%;
    height: 400px;
    margin-bottom: 1rem;
}

.galleryDateContainer {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(7rem, 2fr));
    grid-auto-rows: 10rem;
    gap: 0.75rem;
    height: fit-content;
}

.galleryDateButton {
    position: relative;
    text-align: center;
    width: 100% !important;
    height: 100% !important;
    background-color: transparent;
}

.galleryDate {
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fbf1e1;
    font-size: xxx-large;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
    width: auto !important;
    margin: 0;
    padding: 0.1rem;
}

.galleryDateButton img {
    width: 100%;
    height: 100%;
    margin: 0;
}

.galleryDateButton a:hover img {
    scale: 1.08;
}

.galleryContent {
    display: inline;
}

.picsGallery {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(15rem, 1fr));
    grid-auto-rows: 15rem;
    grid-auto-flow: dense;
    gap: 0.5rem;
}

.picsGallery figure {
    margin: 0;
    overflow: hidden;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    border-radius: 10px;
}

.picsGallery img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    grid-area: 1 / 1 / -1 / -1;
}

.picsGallery figcaption {
    margin-top: 1rem;
    width: 100%;
    height: fit-content;
    grid-area: 1 / 1 / -1 / -1;
    z-index: -1;
}

.picsGallery figure p {
    margin: 0;
}

.picsGallery figure:hover figcaption {
    z-index: 1;
    color: white;
    background-image: linear-gradient(to right, #a20707 , transparent);
}

.standingGalleryImage {
    grid-area: span 2 / span 1;
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* --- MENU --- */
    .menu nav ul {
        display: none;
    }

    .menuBtn {
        display: block;
    }

    .phoneMenu {
        display: none;
    }

    .phoneMenu.active {
        display: flex;
        justify-content: right;
    }

    /* --- MAIN CONTENT --- */
    .content {
        width: 90%;
    }

    .siteContent {
        flex-direction: column;
    }

    /* --- ABOUT US CONTENT --- */
    .memorialContent {
        gap: 1rem;
    }

    .memorial {
        max-width: none;
    }

    /* --- GALLERY CONTENT --- */
    .galleryDateContainer {
        display: flex;
    }

    .galleryDateButton {
        height: 10rem !important;
    }

    .gladiatorTypeEven, .gladiatorTypeOdd {
        flex-direction: column;
        text-align: center;
    }

    .gladiatorTypeEven img, .gladiatorTypeOdd img {
        width: 80%;
        margin-bottom: 15px;
    }

    .gladiatorTypeEven .text, .gladiatorTypeOdd .text {
        padding: 0;
    }

    /* --- PERFORMANCE CONTENT --- */
    .usualPerformance .text {
        width: 100%;
    }

    .historyClassTopic {
        width: 100%;
    }

    /* --- RESEARCH CONTENT --- */
    .researchContent {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: center;
    }

    .reconstructionImg img, .referenceImg img{
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    footer .contactLayout ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
