@font-face {
    font-family: cafeteria;
    src: url(./../fonts/CafeteriaRegular.otf);
}

@font-face {
    font-family: zoocards;
    src: url(./../fonts/ZooCards.otf);
}

@font-face {
    font-family: zubajda;
    src: url(./../fonts/ZubajdaRg.ttf);
}

:root {
    --top-band-h: 161px;
    --bottom-band-h: 107px;
}

body {
    background-color: black;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0 2px 0 3px;
    width: calc(100% - 4px);
    overflow-x: hidden;
}


.background-box {
    background-color: #7a160a;
    min-height: 100vh;
}

.flex-container {
    display: flex;
    margin: 0;
    padding: 0;
}

.primary-flex-container {
    flex-direction: column;
}

.secondary-flex-container {
    width: 100%;
    background-color: #7a160a;
    background-image: url("./../images/bg-top.png"), url("./../images/bg-bottom.png"), url("./../images/bg-middle.jpg");
    background-repeat: repeat-x, repeat-x, repeat;
    background-position:
        left top,
        left bottom,
        left top;
    background-size:
        auto 144px,
        auto 144px,
        100%;
    position: relative;
    min-height: calc(var(--top-band-h) + var(--bottom-band-h) + 220px);
}

.left-border,
.right-border {
    width: 40px;
    height: 120%;
    background-size: 50px auto;
    margin-top: -50px;
    padding: 0;
    background-repeat: repeat-y;
    position: fixed;
    top: 0;
}

.left-border {
    background-image: url("./../images/jagged-border-left.png");
    background-position: 100% 0;
    left: 0;
}

.right-border {
    background-image: url("./../images/jagged-border-right.png");
    background-position: 0 0;
    right: 0;
}

.top-border,
.bottom-border {
    height: 34px;
    background-size: auto 50px;
    flex-shrink: 0;
    margin: 0;
    background-repeat: repeat-x;
}

.top-border {
    background-image: url("./../images/jagged-border-top.png");
    background-position: 0 100%;
}

.bottom-border {
    background-image: url("./../images/jagged-border-bottom.png");
    background-position: 0 0;
}

#copyright-text {
    background-color: black;
    padding: 10px 0 20px;
    text-align: center;
}

#copyright-text p {
    margin: 0 auto 20px;
    color: rgb(75, 75, 75);
    padding: 0 20px;
    max-width: 600px;
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 50;
    position: relative;
    min-height: 90vh;
}

/* Buttons */

.btn,
.placeholder {
    font-family: zubajda;
    font-size: 30px;
    background-image: url("./../images/button5.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 0;
    min-width: 135px;
    cursor: pointer;
    display: inline-block;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    color: #e7b85c;
    filter: drop-shadow(0 0 5px #2b0106);
    margin-top: -20px;
}

.placeholder {
    padding: 5px 5px;
}

.btn {
    padding: 5px 9px;
}

.placeholder:hover,
.btn:hover {
    color: #ffe292;
}

.expanding-nav .placeholder {
    filter: drop-shadow(0 0 5px #2b0106);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 135px;
    position: relative;
    z-index: 2000;
}

.expanding-nav.active .placeholder {
    color: #ffe292;
}

/* Top Nav */

.top-nav-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* gap: 20px; removing gap to increase size of menu icon png */
    width: 100%;
    height: var(--top-band-h);
    flex-shrink: 0;
    max-height: none;
    margin: 0;
    position: relative;
}

.top-nav-cluster {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav-links {
    list-style: none;
    padding: 0;
    margin: 26px 0 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav-links .expanding-nav {
    margin-right: 0;
}

.logo {
    display: block;
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    width: 100%;
    display: block;
    height: auto;
    max-width: inherit;
}

#signinContainer {
    flex: 0 1 auto;
    width: 150px;
    display: flex;
}

#invisibleContainer {
    flex: 0 1 527px;
    width: 100px;
    visibility: hidden;
}

#signinButton,
#contactButton {
    align-items: center;
    position: relative;
}

/* Dropdown Nav */

.nav-container {
    position: relative;
}

.expanding-nav {
    position: relative;
    margin-right: 20px;
}

.expanded-parchment {
    margin: -15px 0 0;
    overflow: visible;
    clip-path: inset(0 0 0 0);
    background-image: url("./../images/parchment6.png");
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: top;
    max-height: 0;
    width: 140px;
    transition: max-height 600ms, clip-path 600ms;
    position: absolute;
    text-align: center;
    cursor: pointer;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.expanded-parchment::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url("./../images/parchmentbottom.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.expanded-parchment ul {
    list-style: none;
    padding: 20px 5px;
    margin: 0;
}

.expanded-parchment ul li {
    padding: 10px 0;
    line-height: .8;
}

.expanding-nav:hover .expanded-parchment,
.expanded-parchment:hover {
    display: block;
    max-height: 500px;
    clip-path: inset(0 0 -30px 0);
}

.expanded-parchment a {
    font-family: cafeteria;
    font-size: 18px;
    color: #a88328;
    text-decoration: none;
}

.expanded-parchment a:hover {
    color: #350000;
    text-decoration: none;
}

a.active-page {
    text-decoration: none;
}

.placeholder.active-page {
    color: #e7b85c;
}

.placeholder.active-page:hover,
.expanding-nav:hover .placeholder.active-page {
    color: #ffe292;
}

.placeholder.main-lodge.active-page {
    color: #ffe292;
}

/* Modal Window Style */
.zc-modal {
  display: none;
}

.zc-modal.is-open {
  display: block;
}

.zc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9000;
}

.zc-modal-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9001;
}

.zc-modal-active {
  overflow: hidden;
}

/* Page tab and welcome text */

.page-tab-row {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    padding: 0 40px 0 90px; /* This padding adjust the alignment of the main tab with the Z of the logo */
    gap: 32px;
    margin-top: 15px;
    position: relative;
    z-index: 60;
}

.page-tab-with-menu {
    position: relative;
    display: inline-block;
}

.page-tab-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -1px;
    width: 100%;
    min-width: 140px;
    overflow: visible;
    clip-path: inset(0 0 0 0);
    max-height: 0;
    transition: max-height 400ms ease-in-out, clip-path 400ms;
    background-image: url("./../images/parchment6.png");
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: top;
    text-align: center;
    cursor: pointer;
    z-index: 100;
}

.page-tab-menu::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url("./../images/parchmentbottom.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.page-tab-with-menu:hover .page-tab-menu,
.page-tab-menu:hover {
    max-height: 500px;
    padding-bottom: 24px;
    clip-path: inset(0 0 -30px 0);
}

.page-tab-menu ul {
    list-style: none;
    padding: 20px 12px;
    margin: 0;
}

.page-tab-menu ul li {
    padding: 12px 0;
    line-height: .8;
}

.page-tab-menu a {
    font-family: cafeteria;
    font-size: 20px;
    color: #a88328;
    text-decoration: none;
}

.page-tab-menu a:hover {
    color: #350000;
}

.page-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 44px;
    padding: 0 14px;
    background: linear-gradient(to bottom, #3a0705 45%, #240302 100%);
    color: #b33b24;
    font-family: zubajda;
    font-size: 34px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    z-index: 110;
}

.page-tab:hover,
.page-tab.active-tab {
    color: #9d0000;
}

.welcome-label {
    font-family: zubajda;
    font-size: 28px;
    color: #4e0b06;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.page-tab.main-lodge.active-tab {
    color: #fce39d;
}

/* Contact */

#contact-hut p {
    margin: 15px 30px;
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--bottom-band-h);
    margin: 0;
    margin-top: auto;
    flex-shrink: 0;
    padding-bottom: 24px;
}

.middle-nav-bar,
.single-nav-button {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    width: 50%;
    max-width: 850px;
}

.single-nav-button {
    width: unset;
}

/* Vertical Nav Bar */

.v-navigation {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 280px;
    position: fixed;
    left: 0;
    top: 0;
    background-image: url("./../images/bg-middle.jpg");
    background-color: #7a160a;
    background-size: auto 95vh;
    height: 97%;
    box-sizing: border-box;
    border-left: 6px solid black;
    box-shadow: 7px 0 5px rgba(0, 0, 0, 0.75);
    transform: translateX(-350px);
    text-align: center;
    z-index: 500;
}
.v-nav-display,
.nav-active .v-navigation {
    transform: translateX(0);
}

.v-nav-buttons {
    height: 100%;
    padding-top: 30px; /* adjust to taste */
    align-items: center;
    display: flex;
    flex-direction: column;
}

.v-nav-buttons .placeholder {
    width: 135px;
    margin-bottom: 35px;
    margin-top: 0;
}

.nav-close {
    width: 40px;
    height: 78px;
    display: block;
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    left: 0;
}

.nav-close:before,
.nav-close:after {
    transition: opacity 0.25s ease-in-out;
    width: 24px;
    height: 3px;
    background: #000;
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.nav-close:after {
    width: 3px;
    height: 24px;
}

.nav-close:hover:before,
.nav-close:hover:after {
    opacity: 0.8;
}

.nav-logo img {
    width: 250px;
    margin-top: -1px;
    margin-bottom: 35px;
}

/* Cards */

.vertically-centered {
    height: 100%;
    display: flex;
    align-items: center;
}

.displayCase {
    padding: 0 50px 25px; /* changing padding from 30 to 40 to reduce overall width of display case */
    display: -webkit-flex;
    display: flex;
    flex: auto;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    transform: translateY(-10px);
}

.displayedCard {
    background-color: transparent; /* change to transparent - there is no bg color at all */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-top: 10px;
    margin-left: 5px;
    margin-right: 5px;
    filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.5));
    align-self: center;
}

.displayedCard img {
    width: 100%;
    max-height: 57.6vh; /* was 60vh and making 4% smaller */
}

.displayCase > .first {
    transform: rotate(-4deg);
    z-index: 15;
}

.displayCase > .second {
    transform: rotate(4deg);
    margin-top: 30px;
    z-index: 10;
}

.displayCase > .third {
    z-index: 5;
}

.displayCase > .fourth {
    transform: rotate(-4deg);
    z-index: 15;
}

.displayCase > .fifth {
    transform: rotate(5deg);
    z-index: 10;
}

/* Hamburger */

.nav-opener {
    width: 60px;
    height: 47px;
    padding-left: 25px;
    display: block;
    position: relative;
    cursor: pointer;
    background-image: url("./../images/hamburger-icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.25s ease-in-out;
}

.nav-opener:hover {
    background-image: url("./../images/hamburger-icon-hover.png");
}

/* Welcome text shrink */

@media (max-width: 1200px) {
    .welcome-label:nth-child(n + 9) {
        display: none;
    }
}

@media (max-width: 1000px) {
    .welcome-label:nth-child(n + 8) {
        display: none;
    }
}

@media (max-width: 800px) {
    .welcome-label:nth-child(n + 7) {
        display: none;
    }
}

/* Nav button hiding */

@media screen and (max-width: 1200px) {
    #signinContainer {
        display: none;
    }
}

@media screen and (max-width: 1000px) {
    #game-guide {
        display: none;
    }
}

@media screen and (max-width: 850px) {
    #supply-hut {
        display: none;
    }
}

/* Card count */

@media only screen and (max-width: 1339px) {
    .displayCase > .fifth {
        display: none;
    }
}

.show1043{display:none;}
.hide1043{display:block;}

@media screen and (max-width: 1043px) {
.show1043{display:block;}
.hide1043{display:none;}
}


@media only screen and (max-width: 1023px) {
    .displayCase > .fourth {
        display: none;
    }
}

.show900{display:none;}
.hide900{display:block;}

@media screen and (max-width: 900px) {
.show900{display:block;}
.hide900{display:none;}
}

/* Mobile / tablet */

@media screen and (max-width: 830px) {
    .right-border,
    .left-border {
        display: none;
    }

    #main-lodge {
        display: none;
    }

    .nav-opener {
        width: 78px;
        height: 47px;
    }

    .v-nav-buttons .placeholder {
        margin-top: 0;
    }

    .main {
        min-height: 90vh;
    }

    .secondary-flex-container {
        background-size:
            auto 144px,
            auto 144px,
            100%;
    }

    .top-nav-bar > *,
    .top-nav-bar .nav-opener {
        transform: translateY(8px);
    }

    .top-nav-bar,
    .displayCase,
    .contact-container {
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }

    .welcome-label {
        display: none;
    }

    .page-tab-row {
        justify-content: center;
        padding: 0 15px;
        margin-top: 40px;
        overflow: visible;
        z-index: 300;
    }

    .page-tab {
        font-size: 44px;
        min-width: 150px;
        height: 52px;
        padding: 0 14px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        margin-top: -35px;
    }

    .page-tab-with-menu {
        z-index: 400;
    }

    .page-tab-menu {
        width: 100%;
        min-width: 100%;
        left: 0;
        transform: none;
        z-index: 500;
    }

    .page-tab-with-menu:hover .page-tab-menu,
    .page-tab-menu:hover,
    .page-tab-with-menu:focus-within .page-tab-menu {
        max-height: 500px;
        padding-bottom: 24px;
        clip-path: inset(0 0 -30px 0);
    }

    .vertically-centered {
        flex: 1;
        height: auto;
        align-items: center;
    }

    .displayCase {
        width: 100%;
        padding: 4px 10px 12px;
        justify-content: center;
        align-items: center;
        gap: 0;
        transform: none;
        overflow: visible;
    }

    .displayCase > .displayedCard {
        display: none;
    }

    .displayCase > .first,
    .displayCase > .second {
        display: block;
        width: 48vw;
        max-width: 430px;
        min-width: 0;
        height: auto;
    }

    .displayCase > .first {
        transform: rotate(-4deg);
        margin-right: -20px;
        z-index: 15;
    }

    .displayCase > .second {
        transform: rotate(4deg);
        margin-left: -20px;
        margin-top: 30px;
        z-index: 10;
    }

    .displayCase > .first img,
    .displayCase > .second img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 55.68vh; /* was 58 and reducing by 4% */
        object-fit: contain;
    }

    .contact-container {
        height: var(--bottom-band-h);
        margin-top: auto;
        padding-bottom: 24px;
    }

    .contact-container > a {
        transform: none;
    }
    
    .v-navigation {
    height: 97%;
    }

    :root {
        --top-band-h: 149px;
        --bottom-band-h: 130px;
    }
}

/* Phone */

@media screen and (max-width: 520px) {
    .displayCase > .second {
        display: none;
    }
    
    .v-navigation {
    height: 101%;
    }

    .displayCase > .first {
        width: 82vw;
        max-width: none;
        margin-right: 0;
    }
}

/* Signin page styling*/

input.text { width: 400px; margin: 0 0 15px 0; color: #480E00; background-color: #FFE292; font-family: cafeteria; font-size: 1.4em; padding: 8px 12px; box-sizing: border-box; border: 2px solid #350000; }
input.text.input-error { color: #D32F2F !important; }
.checkbox-row { display: flex; justify-content: space-between; align-items: center; width: 400px; margin-bottom: 20px; }
.checkbox-row label, .checkbox-row a { font-family: cafeteria; font-size: 1.5em; color: #250000; text-decoration: none; cursor: pointer; }
.checkbox-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; background-color: #FFE292; border: 2px solid #350000; margin-right: 10px; cursor: pointer; position: relative; transform: translateY(4px); }
.checkbox-row input[type="checkbox"]:checked::after { content: '✔'; position: absolute; font-size: 18px; color: #480E00; top: -2px; left: 2px; }
.button-container { display: flex; justify-content: center; width: 100%; }
@media screen and (min-width: 831px) {
    #contact-hut { display: grid !important; grid-template-columns: minmax(0,320px) auto !important; gap: 15px !important; margin: 0 3em !important; width: auto !important; justify-content: stretch !important; }
    #contact-hut .btn { grid-column: 2; justify-self: center; align-self: center; }
}