* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        Georgia,
        Garamond,
        Playfair Display;
}

:root {
    /* Backgrounds */
    --color-bg-primary: #2F3136;
    --color-bg-secondary: #3B3E45;
    --color-bg-card: #44474F;

    /* Texts */
    --color-text-primary: #F5F5F0;
    --color-text-secondary: #C7C7C2;

    /* Secondary effects */
    --color-effect-primary: #D51A13;
    --color-effect-dark: #C11414;
    --color-effect-soft: #EA2113;

    /* Hover / interactions */
    --color-hover-primary: rgb(85, 54, 114);
    --color-hover-dark: rgb(67, 27, 105);
    --color-hover-text: rgb(102, 35, 165);
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    overflow-x: hidden;
    background-color: var(--color-bg-primary)
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.15rem;
    box-shadow: 0 0 3px #96ef;
}

a {
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 0.25rem;
}

p {
    text-align: justify;
    color: var(--color-text-secondary);
}

h2 {
    align-self: center;
    color: var(--color-text-primary);
}

/* =========================
    INTERACTIONS
========================= */

.refButton {
    transition: transform 0.3s ease;
}

.refButton:hover {
    transform: translate(5px, -5px);
}

.refButton a {
    color: var(--color-text-primary);
}

.refButton a:hover {
    color: var(--color-hover-text);
}

/* =========================
    HEADER / NAVIGATION
========================= */

#mainBar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

    width: calc(100% - 1rem);
    max-width: 1400px;

    margin: auto;
    padding: 1rem;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background-color: var(--color-bg-secondary);
    border: solid 3px red;
}

#mainBar h1 {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
}

#barLogo {
    max-width: 75px;
    max-height: 75px;
}

nav {
    display: block;
    transition: all 0.45s ease;
}

.navBar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    list-style: none;
    
}

#menuAccess {
    display: none;
}

/* =========================
    PAGE LAYOUT
========================= */

#pageBody {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 8rem;
    padding-bottom: 3rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.mainZone {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    width: 100%;
    padding: 1.5rem;
    border: 3px solid var(--color-effect-dark);
    border-radius: 5px;
    background-color: var(--color-bg-secondary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
}

.mainZone>* {
    min-width: 0;
}

.mainZone h2 {
    margin: 0;
    font-size: 2.2rem;
}

#heroDisplay {
    background: url(https://www.billboard.com/wp-content/uploads/2024/05/Falling-in-Reverse-cr-Jeremy-Pavia-press-2024-billboard-pro-1260.jpg?w=1024);
    min-height: 500px;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================    
    ABOUT SECTION
========================= */

#aboutSection {
    display: grid;
    grid-template-columns: 220px repeat(auto-fit, minmax(220px, 1fr));
}

#aboutSection .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;

}

.aboutArticle{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* =========================
    GALLERY SECTION
========================= */

#mediaSection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

#mediaSection .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}


.galleryCard {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    cursor: pointer;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.galleryCard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.galleryCard:hover img {
    transform: scale(1.08);
}

.cardOverlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: end;

    padding: 1rem;

    color: var(--color-text-primary);
    opacity: 0;

    background: linear-gradient(to top,
            rgba(0, 0, 0, .75),
            rgba(0, 0, 0, .1));

    transition: 0.35s ease;
}

.galleryCard:hover .cardOverlay {
    opacity: 1;
}

.cardOverlay h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--color-text-primary);
}

/* =========================
    TABLE SECTION
========================= */

#schedulesTable {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    border: solid 0.15rem var(--color-text-primary);
    padding: 1rem;
}

#schedulesTable th,
#schedulesTable td {
    padding: 1rem;
    color: var(--color-text-secondary);

}

#schedulesTable th {
    background-color: var(--color-effect-primary);
}

#infoZone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: inherit;
    color: var(--color-text-secondary);
    list-style: none;
}

#infoZone ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-items: center;
    align-items: center;
}


/* =========================
    RESPONSIVE
========================= */

/* Mobile + Tablet */
@media (max-width: 1023px) {
    body {
        padding: 0.5rem;
    }

    #mainBar {
        width: calc(100% - 1rem);
        padding: 0.8rem;
    }

    #mainBar h1 {
        font-size: 2rem;
    }

    #barLogo {
        max-width: 55px;
        max-height: 55px;
    }

    .mainZone,
    #aboutSection,
    #mediaSection {
        grid-template-columns: 1fr;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;

        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;

        transition:
            max-height 0.45s ease,
            opacity 0.45s ease,
            transform 0.45s ease;
    }

    nav.active {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navBar {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        padding-top: 1rem;
    }

    #menuAccess {
        display: block;
        padding: 0.6rem 1rem;
        border: none;
        border-radius: 0.4rem;
        cursor: pointer;

        color: white;
        background: var(--color-effect-soft);

        transition: transform 0.45s ease;
    }

    #menuAccess:active {
        transform: scale(0.94);
    }


}

/* Tablet only */
@media (min-width: 769px) and (max-width: 1023px) {
    .mainZone {
        grid-template-columns: 180px 1fr;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .mainZone {
        grid-template-columns: 220px 1fr;
    }
}
