html, body {
    margin: 0;
    padding: 0;
    height: fit-content;
    width: 100%;
    background-color: rgb(255, 240, 170);
    font-family: "Times New Roman", Times, serif;
}

footer {
}

.welcomeHeader {
    position: absolute;
    top: 0;
    left: 0;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    border-bottom: none;
}

.welcomeHeader img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
}

.welcomeHeader h1 {
    color: #a20707;
    text-align: center;
    font-weight: 700;
    font-size: 2.2rem;
    margin: 1rem;
}

.lgChangerContainer {
    position: fixed;
    top: 3rem;
    left: 0;
    z-index: 1003;
    transition: opacity 0.1s linear;
}

.lgChangerContainer img {
    width: 1rem;
    height: auto;
}

.lgChanger {
    padding: 1rem;
    background-color: rgba(255, 240, 170, 0.71);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    cursor: pointer;
    border: 0.1rem rgba(162, 7, 7, 0.71) solid;
}

.dropdownContainer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdownContainer ul li {
    width: 100%;
}

.dropdownContainer button {
    background-color: rgba(255, 240, 170, 0.71);
    margin: 0.5rem 0;
    padding: 0.5rem;
    border: 0.1rem rgba(162, 7, 7, 0.71) solid;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transform: translateX(0);
    pointer-events: none;
    transition: opacity 0s ease, transform 0.2s ease;
}

.animateButton {
    transition: transform 0.2s ease;
    transform: translateX(1rem);
}

.showButton {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.welcomeText {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 240, 170, 0.71);
    border: 0.3rem #a20707 solid;
}

.contact ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.contactLogo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.contactLogo img {
    height: 30px;
    width: auto;
    display: block;
}

.contact ul li a {
    color: white;
    text-decoration: underline;
}

.contact ul li a:hover {
    color: #ddd;
}

.menuGallery {
    width: 96%;
    margin: 81vh auto 0 auto;
    list-style: none;
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(12.5rem, 1fr));
    grid-auto-rows: 12.5rem;
    grid-auto-flow: dense;
    gap: 0.75rem;
}

.contentInformation {
    border-radius: 10px;
    background-color: #a20707;
    color: white;
    min-height: fit-content;
}

.contentInformation h2 {
    width: 100%;
    height: fit-content;
    text-align: center;
    margin-bottom: 0.5rem;
}

.contentInformation p {
    margin: 0.25rem 0.5rem;
    text-align: center;
}

.contentInformation a {
    color: white;
    text-decoration: underline;
}

.contentInformation a:hover {
    color: #ddd;
}

.fc-scroller {
    overflow-y: hidden !important;
}

.contentButton {
    position: relative;
    text-align: center;
    padding: 0.5rem;
    background-color: transparent;
}

.contentButton h2 {
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    font-size: 250%;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0.1rem;
}

.contentButton a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    border-radius: 10px;
}

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

.informationalPanel h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin: 0.75rem 0;
}

.calendar {
    border: none;
    margin-right: 2.5%;
    margin-left: auto;
    width: 95%;
    box-sizing: border-box;
    height: 80% !important;
}

.bottomDecor{
    width: fit-content;
    margin: 0.5rem auto 0 auto;
    padding-bottom: 1rem;
}

.bottomP {
    width: 40vw;
    height: auto;
    display: inline;
}

.dot {
    width: var(--size, 2vw);
    height: auto;
    display: inline-block;
    color: #a20707;
    margin-top:auto;
    margin-bottom: auto;
}

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

.element3 {
    grid-area: span 3 / span 2;
}

.galleryBtnImg, .researchBtnImg, .gladiatorTypeBtnImg, .performanceBtnImg, .usBtnImg {
    grid-area: span 1 / span 1;
}

/* FullCalendar styling overrides */
.calendar .fc {
    font-family: inherit;
}

.calendar .fc-button-primary {
    background-color: #a20707;
    border-color: #a20707;
}

.calendar .fc-button-primary:hover {
    background-color: #8b0505;
}

.calendar .fc-button-primary.fc-button-active {
    background-color: #8b0505;
}

.calendar .fc-daygrid-day.fc-day-today {
    background-color: #f152525d;
}

.calendar .fc-button-primary:disabled{
    background-color: transparent !important;
    border-color: transparent !important;
}

.calendar .fc-event {
    background-color: #1e88e5 !important;
    border-color: #1565c0 !important;
}

.calendar .fc-event:hover {
    background-color: #1565c0 !important;
}

.event-tooltip {
    position: absolute;
    background: #fff;
    color: #333;
    border: 1px solid #aaa;
    border-radius: 6px;
    padding: 8px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

@media (width > 768px) {
    .element1 {
        grid-area: span 3 / span 1;
    }

    .element3 {
        grid-area: span 3 / span 3;
    }

    .performanceBtnImg {
        grid-area: span 2 / span 2;
    }

    .gladiatorTypeBtnImg {
        grid-area: span 2 / span 3;
    }

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

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

@media (width < 490px) {
    .element3 {
        grid-area: span 3 / span 1 !important;
    }

    .element1 {
        grid-area: span 2 / span 1 !important;
    }

    .menuGallery > div {
        grid-area: span 1 / span 1;
    }
}
