@font-face {
    font-family: ApexLegendsRegular;
    src: url("./fonts/Apex-Black.ttf") format("opentype");
}

@font-face {
    font-family: ApexLegendsLight;
    src: url("./fonts/Apex-Light.ttf") format("opentype");
}

* { 
    margin: 0;
    padding: 0;
}

header > nav {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 100;
}

header > nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    list-style-type: none;
    z-index: 100;
}

header > nav > ul > li {
    margin-right: 1rem;
}

header > nav > ul > li > a {
    font-family: 'ApexLegendsLight', sans-serif;
    font-size: 1.3rem;
    text-decoration: none;
    color: black;
    transition: 0.2s;
    padding: 0.5rem;
}

header > nav > ul > li > a:hover {
    color: #B93038;
    font-size: 1.5rem;
}

.header-img {
    height: 1.8rem;
    width: 1.8rem;
}

main {
    box-sizing: border-box;
    width: 70%;
    min-height: 90vh;
    margin: 0 auto;
}

.main-card {
    font-family: 'ApexLegendsLight', sans-serif;
    border-radius: 16px;
    background: linear-gradient(107.2deg, rgb(180, 5, 5) 10.6%, rgb(247, 0, 0) 91.1%);
    color: white;
    padding: 2rem;
    box-shadow: 0px 25px 104px 19px rgba(185,48,57,0.3);
    margin-top: 2rem;
}

/* HOME */

.home-card {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.main-card > section {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    scale: 0.9;
}

.main-card > section > div > h1 {
    font-size: 4rem;
    font-family: "ApexLegendsRegular", sans-serif;
}

.main-card > section > div > p {
    margin-top: 1rem;
}

.main-card > figure {
    height: 10%;
    width: 40%;
    scale: 1.2;
}

.main-card > figure > img {
    height: 10%;
    width: 100%;
    scale: 1.3;
    margin-left: 1vw;
}

.main-button {
    font-family: 'ApexLegendsLight', sans-serif;
    padding: 0.5rem 1rem;
    background-color: white;
    transform: skew(-13deg);
    width: 30%;
    text-decoration: none;
    color: black;
    transition: 0.2s;
    margin-top: 2rem;
}

.main-button:hover {
    scale: 1.2;
}

.game-mode-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 5vh
}

.game-mode-section > h2 {
    font-family: 'ApexLegendsRegular', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.game-mode-card-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-mode-card {
    font-family: 'ApexLegendsLight', sans-serif;
    width: 30%;
    padding: 1rem;
    color: white;
    transition: 0.2s;
    height: auto;
}

.game-mode-card > p {
    margin-top: 1rem;
}

.game-mode-card-1 {
    background: linear-gradient(135deg, rgb(134, 3, 3) 20%, rgb(231, 41, 41) 70%);
    border-bottom-left-radius: 16px;
    border-top-left-radius: 16px;
}

.game-mode-card-2 {
    background: linear-gradient(90deg, rgb(231, 41, 41) 0%, rgb(231, 41, 41) 60%);
}

.game-mode-card-3 {
    background: linear-gradient(135deg, rgb(231, 41, 41) 0%, rgb(134, 3, 3) 90%);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.game-mode-card:hover {
    scale: 1.3;
    box-shadow: 0px 0px 90px 10px rgba(0,0,0,0.75);
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(135deg, rgb(231, 41, 41, 0.9) 20%, rgb(134, 3, 3, 1) 50%, rgb(231, 41, 41, 1) 90%);
    color: white;
    margin-top: 1vh;
    padding: 1rem;
    height: 10%;
    font-family: 'ApexLegendsLight', sans-serif;
}

footer > figure, footer > figure > a > img {
    height: 3vh;
}

.link {
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.link:hover {
    scale: 1.2;
}

/* Contact */

.contact-container {
    min-height: 0;
}

.contact-form-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 1rem;
    margin-top: 1rem;
    width: 90%;
    border-radius: 16px;
    background-color: #fff0f0;
    transition: all 0.3s ease;
}

.contact-form {
    width: 80%;
    height: 100%;
    padding-top: 2vh;
    transition: all .2s;
}

.contact-main-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

.contact-main-card > h1 {
    font-size: 2.5rem;
    font-family: "ApexLegendsRegular", sans-serif;
}

.contact-info-card {
    font-family: 'ApexLegendsLight', sans-serif;
    background: linear-gradient(107.2deg, rgb(180, 5, 5) 10.6%, rgb(247, 0, 0) 91.1%);
    padding: 2rem;
    color: white;
    border-radius: 16px;
    width: 30%;
    margin-top: 2vh;
    transition: all 0.3s ease;
}

.contact-info-card > h2 {
    font-size: 1.8rem;
}

.contact-info-card > p {
    font-size: 1rem;
    margin-top: 1vh
}

.contact-button {
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.contact-phone-img {
    width: 2.5vw;
    height: 5vh;
}

.contact-phone-info{
    margin-top: 5vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Legend */

#result-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #fff0f0;
    border-radius: 16px;
    height: 100%;
    width: 60%;
}

#result-container > figure > img {
    height: 20vh;
}

#result-label {
    font-family: "ApexLegendsRegular", sans-serif;
    padding: 1rem;
}

.legends-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    padding-top: 2vh;
}

#legend-card-container {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    width: 40%;
    background: linear-gradient(107.2deg, rgb(180, 5, 5) 10.6%, rgb(247, 0, 0) 91.1%);
    border-radius: 16px;
    height: 100%;
    margin-right: 1vw;
    flex-wrap: wrap;
}

.legend-card, .legend-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0.3rem;
    width: 25%;
    font-family: 'ApexLegendsRegular', sans-serif;
    font-size: 1.2rem;
    color: white;
    transition: all 0.2s;
    transform: skew(-13deg);
    border: rgba(255, 255, 255, 0.4) 4px solid;
    margin-left: 0.3rem;
    margin-top: 0.3rem;
    height: 7%;
}

.legend-filter {
    width: 10%;
}

.legend-card:hover, .legend-filter:hover {
    border: white 4px solid;
    cursor: pointer;
}

#legend-card-active, #legend-filter-active{
    border: white 4px solid;
}

/* Webshop */

#shop-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    overflow-y: scroll;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: auto;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

.scrollable-container {
    display: flex;
    align-items: center;
    width: 80%;
    min-height: 100%;
}

#shop-cart-container {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 1vh;
    background-color: white;
    box-shadow: 0px 25px 104px 19px rgba(0,0,0,0.75);
    width: 100%;
    border-radius: 8px;
    font-family: 'ApexLegendsRegular', sans-serif;
    font-size: 1.2rem;
}

#webshop-cart {
    display: flex;
    width: 100%;
    flex-direction: row;
}

#shop-cart-items-table > tr > td:nth-child(5) {
    width: 20%;
}

#webshop-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5vh;
}

.shop-items-cart-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 50%;
}

.webshop-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 24%;
    margin: 1rem 0.3rem;
    font-family: 'ApexLegendsRegular', sans-serif;
}

.webshop-card > img {
    width: 90%;
    margin-bottom: 1vh;
    background-color: #f3f3f7;
}

.webshop-button {
    width: 80%;
    padding: 1vh;
    margin-top: 1vh;
    border: none;
    font-family: 'ApexLegendsRegular', sans-serif;
    background-color: rgb(180, 5, 5);
    color: white;
    transition: 0.2s;
    cursor: pointer;
}

.webshop-button-in-cart {
    background-color: white !important;
    color: rgb(180, 5, 5) !important;
    border: 2px solid rgb(180, 5, 5) !important;
}

.webshop-button:hover {
    background-color: rgb(247, 0, 0);
    color: white;
}

.shop-payment-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: gray 2px solid;
    border-radius: 4px;
    padding: 1vh;
    margin-left: 1vw;
}

.shop-payment-card:first-child {
    margin: 0;
}

.shop-payment-card-container {
    display: flex;
    flex-direction: row;
    justify-content: left;
    cursor: pointer;
}

.shop-payment-card:hover {
    border: #31a5bd 2px solid;
}


.active-payment-method {
    border: #31a5bd 2px solid;
    box-shadow: 0 0 .1rem #fff,
    0 0 10px #31a5bd;
}

.shop-payment-img {
    height: 4vh;
    margin-right: 0.2rem;
}

.shop-cart-form-container {
    margin-top: 3vh;
    margin-bottom: 3vh;
    width: 50%;
}

.shop-cart-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 10vh;
}

.shoppingcart-item {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
}

.shoppingcart-item > * {
    margin-left: 1vw;
}

.open-cart-button {
    width: 6vw;
}

.subtract-button {
    border: 2px solid black;
    height: 30px;
    width: 30px;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.3rem;
}

.shop-cart-button {
    transform: skew(-15deg);
    padding: 4px 1vw;
    border: 2px solid black;
    background-color: white;
    font-size: 1.2rem;
    font-family: "ApexLegendsRegular", sans-serif;
    cursor: pointer;
}

#cart-overlay {
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: end;
    justify-content: right;
}

#cart-overlay > img {
    margin-right: 2vw;
    margin-bottom: 5vh;
    cursor: pointer;
    z-index: -1;
    transition: all .2s;
}

#cart-overlay > img:hover {
    scale: 1.4;
    animation: jiggleCartAnimation .5s normal;
}

#shop-cart-items-table {
    width: 100%;
}

#shop-cart-items-table > tr {
    width: 100%;
}

#shop-cart-items {
    width: 100%;
    min-height: 10vh;
}

#shop-cart-items-table > tr > td {
    padding: 4px;
    text-align: center;
}

.shop-cart-item-title {
    text-align: left;
    width: auto;
    border-bottom: 3px solid gray;
}

#shop-cart-items-table > tr > td:nth-child(2) {
    width: 10%;
}

#shop-cart-items-table > tr > td:nth-child(3) {
    width: 20%;
}

#shop-cart-items-table > tr > td:nth-child(4) {
    width: 10%;
}

@keyframes jiggleCartAnimation {
    0%   {transform: rotate(0deg);}
    25%  {transform: rotate(-20deg);}
    50%  {transform: rotate(20deg);}
    75% {transform: rotate(-20deg);}
    100% {transform: rotate(0deg);}
  }

#shop-error {
    color: red;
}

/* Utility */

.flex {
    display: flex;
    justify-content: center;
}

.flex-space-between {
    justify-content: space-between;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.subheading {
    font-family: 'ApexLegendsRegular', sans-serif;
    font-size: 2.5rem;
    color: black;
}

.hide-animate {
    transition: 0.1s;
    opacity: 0;
}

.hide {
    display: none !important;
}

label {
    color: black;
    font-family: 'ApexLegendsLight', sans-serif;
}

textarea {
    resize: none;
    height: 10vh;
    margin-bottom: 0;
}

input, textarea {
    outline: none;
    border: 0;
    background: rgba(0, 0, 0, 0);
    appearance: none;
    width: 100%;
    border-radius: 3px;
    color: rgb(0, 0, 0);
    transition: all .05s;
    border-bottom: 2px solid gray;
    margin-bottom: 4vh;
    padding-top: 8px;
    padding-bottom: 8px;
}

input:focus, textarea:focus{
    background-color: white;
}

.overlay-show {
    opacity: 0 !important; 
}

.overlay-hide {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    height: 100%;
    width: 100%;
    transition: all 0.2s;
}

.stop-scroll {
    /* height: 100%; */
    overflow: hidden;
}

@media only screen and (max-width: 1400px) and (min-width: 800px) {
    .legends-container {
        flex-direction: row !important;
        height: 60vh;
    }

    .legend-filter {
        width: 15% !important;
    }

    #legend-card-container {
        width: 40% !important;
        height: 100% !important;
        margin-top: 0vh !important;
    }

    #result-container {
        width: 60% !important;
        height: 100% !important;
        padding: 1rem;
    }

    #result-label {
        width: 60% !important;
        height: 100% !important;
        padding: 1rem !important;
    }

    .webshop-card {
        width: 45% !important;
    }
}

@media only screen and (max-width: 1400px) {
    .main-card > figure {
        display: none;
    }

    main {
        box-sizing: border-box;
        width: 90%;
        margin: 0 auto;
        height: auto;
    }

    .game-mode-card-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        margin-top: 5vh;
    }

    .game-mode-card {
         width: 80%;
         margin-top: 1rem;
         border-radius: 16px;
    }

    .game-mode-card:hover {
        scale: 1;
        box-shadow: none;
    }

    .contact-container {
        display: flex;
        align-items: center;
        flex-direction: column;
        width: 100%;
    }

    .contact-form-card {
        width: 100%;
        margin: 0;
        padding: 0;
        margin: 2vh;
    }
    
    .contact-info-card {
        width: 90%;
        padding: 0;
        margin: 0;
        margin-top: 5vh;
        display: none;
    }

    .legend-card {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    #legend-class-container {
        height: auto;
    }

    .legends-container {
        flex-direction: column;
        margin-top: 1vh;
        height: auto;
    }

    .legend-filter {
        width: 35%;
    }

    #legend-card-container {
        width: 100%;
        height: auto;
        padding: 0.2rem;
    }

    #result-container {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    #result-label {
        width: 100%;
        /* height: 60vh; */
        padding: 1rem;
    }

    .webshop-card {
        width: 90%;
    }

    #webshop-cart {
        flex-direction: column;
    }

    .shop-cart-form-container {
        width: 100%;
    }

    .shop-cart-form {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .shop-cart-form > input {
        width: 100%;
        margin-right: 5vw;
    }

    .shop-payment-card-container {
        flex-direction: column;
    }

    .shop-payment-card {
        margin: 0;
        margin-top: 1vh;
    }

    .shop-items-cart-container {
        width: 100%;
    }

    .shoppingcart-item {
        width: 100%;
    }

    .open-cart-button {
        width: 10vw;
    }

    .scrollable-container {
        display: flex;
        align-items: flex-start;
        margin-top: 20vh;
        width: 90%;
        min-height: 100%;
    }
}