/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/*****/

@font-face {
    font-family: 'NewRepublik'; /* Define your font name */
    src: url('fonts/New_Republik_2022.eot'); /* EOT file for Internet Explorer */
    src: url('fonts/New_Republik_2022.eot?#iefix') format('embedded-opentype'), /* IE9+ */ url('fonts/New_Republik_2022.woff2') format('woff2'), /* Modern browsers */ url('fonts/New_Republik_2022.ttf') format('truetype'), /* Older browsers supporting TTF */ url('fonts/New_Republik_2022.otf') format('opentype'); /* Optionally for OTF fonts */
    font-weight: normal; /* Normal font weight */
    font-style: normal;  /* Normal font style */
}

:root {
    --primary-color: #cc0000;
    --primary-color-darker: #8c0805;
    --black: #121212;
    --secondary-color: #2ecc71;
    --font-size: 16px;
    --padding: 10px;
    --redius: 0.1rem;
    --menu-width: 30px;
}


html, body {
    height: 100%;
    font-family: Impact, "Coda", "Ariel Black", Arial, Helvetica, sans-serif;
    background-color: var(--black);
}

header {
    display: flex;
    flex-wrap: nowrap;

    .logo-small {
        display: none;
    }

    .logo-large {
        display: unset;
    }

    nav {
        width: 100%;
        background-color: var(--black);
        padding: 0;
        margin: 0;

        a {
            margin: 1rem;
        }
    }

    ul {
        display: flex;
        list-style: none;
        flex-direction: row;
        align-items: center;

        a {
            font-family: 'NewRepublik', Impact, "Coda", "Ariel Black", sans-serif;
            text-decoration: none;
            color: #ffffff;
        }

        a.active, a:hover {
            color: var(--primary-color);
        }
    }
}

nav {
    display: flex;
    align-items: center;

    #nav, .nav-label {
        display: none;
    }


    label {
        position: absolute;
        top: 2.8rem;
        right: 1rem;
        display: block;
        width: var(--menu-width);
        height: var(--menu-width);
        margin: calc(-1 * var(--menu-width)) auto 0 auto;
        cursor: pointer;
    }

    label div {
        position: relative;
        top: 0;
        height: 6px;
        background-color: #fff;
        margin-bottom: 6px;
        transition: 0.3s ease transform, 0.3s ease top, 0.3s ease width,
        0.3s ease right;
        border-radius: 2px;
    }

    label div:first-child {
        transform-origin: 0;
        /*background-color: red;*/
    }

    label div:last-child {
        transform-origin: var(--menu-width);
    }

    label div:nth-child(2) {
        width: var(--menu-width);
    }

    #nav:checked + label:before {
        background-color: black;
    }

    #nav:checked + label div:first-child {
        display: none;
        width: var(--menu-width);
        transform: rotate(45deg);
    }

    #nav:checked + label div:last-child {
        top: 6px;
        left: -9px;
        transform: rotateZ(45deg);
        width: 43px;
    }

    #nav:checked + label div:nth-child(2) {
        width: 43px;
        top: 12px;
        right: 6px;
        transform: rotateZ(-45deg);
    }

}

@media (max-width: 767px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .5rem;

        .logo-small {
            display: unset;
        }

        .logo-large {
            display: none;
        }
    }

    nav {
        display: flex;
        height: 3rem;

        .nav-label {
            display: unset;
        }

        .nav-content {
            max-height: 0;
            overflow: hidden;
            display: none;
            background-color: var(--black);
            width: 100%;
        }

        /* Toggle Effect */

        input:checked ~ label {
            .nav-icon:before {
                transform: translateY(12px) rotate(135deg);
            }

            .nav-icon:after {
                transform: translateY(-12px) rotate(-135deg);
            }

            .nav-icon div {
                transform: scale(0);
            }

        }

        input:checked ~ .nav-content {
            max-height: 100%;
            display: unset;

            position: absolute;
            right: 0;
            top: 4rem;

            ul {
                flex-direction: column;
                align-items: flex-start;
                margin: 1rem;
                padding: 0;

                li {
                    font-size: 1.5rem;
                    margin: 0.5rem;
                }
            }
        }
    }
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

main {

    height: 100vh;
}

/* Main content takes up the remaining space */
h1 {
    font-size: 3rem;
}

h2 {
    font-family: 'NewRepublik', Impact, "Coda", "Ariel Black", sans-serif;
    text-decoration: 5px var(--primary-color) underline;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;

    width: 100%;
    background-color: var(--primary-color);
    background-image: url('../img/inside-2040.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    .hero-text {
        font-family: 'NewRepublik', Impact, "Coda", "Ariel Black", sans-serif;
        background-color: #000000a0;
        color: var(--primary-color);
        margin: 1rem 2rem;
        width: 70%;
        max-width: 500px;
        height: 250px;
        padding: 0.5rem 3rem;
        text-align: center;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;

        span {
            color: white;
        }
    }
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    width: 100%;
    background-color: white;
    font-family: 'NewRepublik', Impact, "Coda", "Ariel Black", sans-serif;


    p {
        width: 60%;
        padding: 1rem 3rem;
        background-color: #55555510;
        font-family: sans-serif;
        border-radius: var(--redius);

        a {
            color: var(--primary-color);
        }
    }
}

@media (max-width: 767px) {
    .about {
        p {
            width: unset;
            margin: 1rem 2rem;
            padding: 1rem 2rem;
        }
    }
}

.info {
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    background-color: var(--primary-color);

    .info-card {
        text-align: center;
        margin: 1rem;
        border-radius: var(--redius);

        padding: 1rem;
        background-color: #00000050;
        color: white;
        height: 200px;
        min-height: fit-content;
        width: max(35%, 215px);

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

        .link_out {
            height: 1rem;
        }

        h3 {
            font-family: 'NewRepublik', Impact, "Coda", "Ariel Black", sans-serif;
            margin: 0 0 1rem;
        }

        a {
            color: white;
            text-decoration: none;
        }

        address {
            font-style: normal;
            font-weight: lighter;
        }

    }
}

@media (max-width: 767px) {
    .info {
        padding: 1rem 2rem;

        .info-card {
            width: 100%;
            margin: 1rem 0;
        }
    }
}

.menus {
    background-color: white;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-content: center;

    padding: 1rem 0;

    h2 {
        width: 100%;
        text-align: center;
    }

    .menu-card {
        background-color: var(--primary-color);
        border: 1px solid var(--primary-color);
        width: 25%;
        height: 225px;
        align-content: center;
        text-align: center;
        text-decoration: none;
        border-radius: var(--redius);
        color: white;

        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;

        .menu-card-text {
            height: 100%;
            width: 100%;
            background-color: #cc000040;
            display: flex;
            align-items: center;
            flex-direction: column;
            justify-content: center;
        }

        .menu-card-text:hover {
            background-color: #cc000090;
        }

        h3 {
            margin: 0;
            font-weight: normal;
        }
    }

    .menu-card.food {
        background-image: url('../img/food/chicken_sandwich-1020x768.webp');
    }

    .drinks {
        background-image: url('../img/food/drinks-1020x768.webp');
    }

    .beers {
        background-image: url('../img/food/beers-1020x768.webp');
    }
}

@media (max-width: 767px) {
    .menus {
        flex-direction: column;
        align-items: center;
        padding: 1rem 2rem;

        .menu-card {
            width: 100%;
            margin: 1rem;
            font-size: 1.5rem;
        }
    }
}

.spacer {
    height: 50px;
}

.upcoming {
    padding: 1rem 2rem;

    h2 {
        color: white;
        text-align: center;
    }

    #events-list {
        list-style: none;
        padding: 0;
    }

    .event-item {
        background-color: #232323;
        color: white;
        list-style-type: none;
        padding: 1rem;
        margin-bottom: 1rem;

        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .patriots {
        background-color: #002145;

        h3,
        .event-date {
            color: #B0B7BC;
        }
    }

    .celtics {
        background-color: #007A33;
        h3,
        .event-date{
            color: #ffffff;
        }
    }

    .bruins {
        background-color: #FFB81C;

        h3,
        .event-date{
            color: #000000;
        }
    }

    .notredame {
        background-color: #AE9142;
        h3,
        .event-date {
            color: #0C2340;
        }
    }

    .redsox {
        background-color: #BD3039;
        h3,
        .event-date {
            color: #0C2340;
        }
    }


    .event-image {
        max-height: 60px;
        /*max-width: 60px;*/
    }

    h3 {
        margin: 0;
        width: calc(100% - 225px);
        font-weight: normal;
    }

    .event-date {
        color: var(--primary-color);
        font-size: 1.25rem;
        min-width: 10rem;
    }

    .event-details {
        min-width: 5rem;
        width: fit-content;
    }

    .event-link {
        display: inline-block;
        white-space: nowrap;
        margin-top: 10px;
        padding: 5px 10px;
        background-color: var(--primary-color);
        color: white;
        text-decoration: none;
        border-radius: 3px;
    }

    .event-link:hover {
        background-color: var(--primary-color-darker);
    }

    .error {
        color: red;
    }
}


@media (max-width: 767px) {
    .upcoming {

        h3 {
            width: 100%;
            font-weight: normal;
        }

        .event-item {
            flex-direction: column;
            align-items: flex-start;
        }
    }
}

footer {
    bottom: 0;
    background-color: var(--black); /* Background color for the footer */
    color: #fff; /* Text color for the footer */
    text-align: center;
    line-height: 25px; /* Centering text vertically in the footer */
    display: flex;
    align-items: center;
    justify-content: center;

    .socials {
        background-color: var(--primary-color);
        border-radius: 50%;
        width: 34px;
        height: 34px;
        margin: 1rem;

        img {
            width: 20px;
            height: 20px;
            margin: 6px auto auto;
        }
    }
}
