:root {
    --primary: #dbc48f; /* df0004 */
    --secondary: rgba(209, 186, 133, 0.5); /* 2a191f */
    --gray: #35383f;
    --background: #181a21;
    --font: #fefefe;
    --font-darker: #d8d8d8;
    --light-background: #1f212a;
    --body: #08131A;


    --notch-area: calc(.3rem + env(safe-area-inset-top));
}

html {
    min-height: var(--notch-area);
    /* padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); */
    color-scheme: dark;
}

* {
    font-family: "Roboto";
    box-sizing: border-box;
    margin: 0;
}

body {
    background-color: var(--body);
    color: var(--font);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    padding: 1rem;
    margin-bottom: 6rem;
}

a {
    text-decoration: none;
    color: var(--font);
}

.hidden {
    display: none;
}

/* SCROLLBAR */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    }
    
    /* Chrome, Edge and Safari */
    *::-webkit-scrollbar {
    width: 1px;
    }
    *::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: transparent;
    }
    
    *::-webkit-scrollbar-track:hover {
    background-color: transparent;
    }
    
    *::-webkit-scrollbar-track:active {
    background-color: transparent;
    }
    
    *::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: transparent;
    }
    
    *::-webkit-scrollbar-thumb:hover {
    background-color: transparent;
    }
    
    *::-webkit-scrollbar-thumb:active {
    background-color: transparent;
    }

/*** FONTS ***/
@font-face {
    font-family: "Roboto";
    src: url("font/Roboto/Roboto-Bold.ttf");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("font/Roboto/Roboto-Regular.ttf");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("font/Roboto/Roboto-Light.ttf");
    font-weight: 300;
    font-display: swap;
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}
h1 {
    font-size: 1.5rem;
    font-weight: 500;
}
h2 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: .5rem;
}
h3 {
    font-size: .9rem;
    font-weight: 500;
}

.spacer-notch {
    min-height: var(--notch-area);
}

/*** NAVIGATION ***/
.navigation {
    position: fixed;
    z-index: 1;
    bottom: 0;
    justify-content: space-evenly;
    width: 100%;
    padding: 1rem 1rem 2rem 1rem;
    background-color: rgba(8, 19, 26, 0.3);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-link {
    text-align: center;
    font-size: .7rem;
}

.nav-link .icon {
    height: 1.5rem;
    width: 100%;
}

#arrow-back {
    position: absolute;
    top: var(--notch-area);
    left: 1rem;
    z-index: 20;
}

/*** SEARCH ***/
#topbar {
    width: 100%;
    height: 3rem;
    justify-content: space-between;
    align-items: center;
    margin: var(--notch-area) auto 1rem auto;
}

#topbar a {
    align-self: center;
    width: 1.5rem;
}

#search {
    width: 100%;
    font-size: 1rem;
    height: 2rem;
    padding: .25rem .5rem;
    border: none;
    border-radius: .4rem;
    background-color: var(--light-background);
}

input:focus {
    outline: none;
    border-bottom: var(--primary) 1pt solid;
}

.box {
    min-width: 2rem;
    height: 2rem;
    border-radius: .4rem;
    border: var(--secondary) solid 1pt;
    text-align: center;
    padding: .4rem;
}

#selected-keyword-list {
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/*** FLEX ***/
.row {
    display: flex;
    flex-direction: row;
    gap: .5rem;
}

.col {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}


/*** CARD LIST ***/
.card-list {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card-list-index {
    width: 100%;
    overflow-x: scroll;
}

.card-list-index .card {
    min-width: 8rem;
}

.card {
    border-radius: .8rem;
    width: calc(50% - .25rem);
    height: auto;
    aspect-ratio: 2 / 2.8;
    background-size: cover;
    background-position: center;
    position: relative;
}

.selectable:hover {
    transform: scale(0.97);
    -webkit-transform: scalE(0.97);
    -moz-transform: scale(0.97);
  }
  .selectable:active {
    transform: scale(0.90);
    -webkit-transform: scalE(0.90);
    -moz-transform: scale(0.90);
  }

/*** BUTTONS ***/
.btn {
    border: var(--primary) solid 1pt;
    border-radius: 5rem;
    padding: .5em;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
}

.btn-inverted {
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary {
    border-color: var(--gray);
    background-color: var(--gray);
    color: var(--font);
}

.btn-square {
    font-size: .7rem;
    position: absolute;
    background-color: var(--primary);
    top: 1rem;
    left: 1rem;
    text-align: center;
    width: 2.5rem;
    padding: .2rem;
    border-radius: .2rem;
}
.card .btn-square {
    color: var(--font-dark);
}

#played-submit{
    position: relative;
}
#played-second-submit {
    position: absolute;
    top: -130%;
    left: 0;
    min-width: 44vw;
}

/*** PLAYERS ***/
.players {
    font-size: .5rem;
    margin: .5rem 0;
    overflow-x: scroll;
    gap: 1.5rem;
}

.player {
    flex-grow: 1;
    min-width: 25%;
    max-width: 33%;
}

.player .col {
    row-gap: .13rem;
}

.player img, .comment img {
    border-radius: 100%;
    height: 2.5rem;
    width: 2.5rem;
}

.player .col :first-child {
    font-weight: 800;
    font-size: .7rem;
}

/*** DETAILS ***/


.keyword {
    font-size: .6rem;
    border-radius: .4rem;
}

.room-data {
    margin: .5rem 0;
    justify-content: start;
    align-items: center;
    gap: .5rem;
}


.buttons {
    justify-content: space-evenly;
}

.buttons .btn {
    flex-grow: 1;
    max-width: 50%;
}

.story, p {
    color: var(--font-darker);
    font-weight: 300;
    font-size: 1rem;
    overflow-wrap: break-word;
    hyphens: auto;
}

.story {
    overflow-y: hidden;
    max-height: 7rem;
    position: relative;
    text-align: justify;
}

.teaser-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    min-height: 8rem;
    background-image: linear-gradient(transparent, var(--body) 80%);
    z-index: 2;
}

.teaser-link {
    color: var(--primary);
    margin-bottom: 2rem;
}

/*** LIGHTBOX & PICTURES ***/
#lightbox {
    /* position: fixed; */
    /* width: calc(100% - 2rem); */
    border-radius: .5rem;
    /* background-color: var(--light-background); */
    /* overflow: hidden; */
    margin-bottom: 1rem;
    position: relative;
}

.lightbox-img {
    width: 100%;
    border-radius: inherit;
    position: relative;
}

.frame {
    position: absolute;
    background: url("../img/pictureframe_corner.svg") no-repeat;
    min-width: 5rem;
    min-height: 5rem;
    z-index: 5;
    top: -.5rem;
    left: -.5rem;
}
.frame-bottom {
    position: absolute;
    background: url("../img/pictureframe_corner.svg") no-repeat;
    min-width: 5rem;
    min-height: 5rem;
    z-index: 5;
    transform: rotate(180deg);
    bottom: -.3rem;
    right: -.5rem;
}

#close-lightbox {
    position: absolute;
    top: .5rem;
    right: .5rem;
}

.pictures {
    overflow-x: scroll;
    margin-bottom: 1rem;
}

.pictures img {
    border-radius: .2rem;
    height: 6rem;
    width: auto;
}


/*** TABS ***/
.tab-labels {
    justify-content: space-evenly;
    width: 100%;
}

.tab-label {
    flex-grow: 1;
    border-bottom: solid 1pt var(--gray);
    text-align: center;
    padding-bottom: .4rem;
    color: var(--gray);
}

.active {
    color: var(--primary);
    border-color: var(--primary);
}

.tabs {
    width: 100%;
    margin-top: 1rem;
}

.tab-company-logo {
    width: 50%;
    height: auto;
}

.tab {
    min-height: 30vh;
}


/*** COMMENTS ***/


/*** MODAL ***/
#overlay {
    background-color: black;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    display: none;
    /* pointer-events: none; */
}

#modal, #rating-modal, #played-modal {
    /* background-color: var(--light-background); */
    background: var(--light-background);
    background: linear-gradient(180deg, var(--light-background) 65%, rgba(8,19,26,1) 100%);
    border-radius: 2rem 2rem 0 0;
    width: 100%;
    position: fixed;
    z-index: 10;
    padding: 1rem;
    display: none;
}

/* #modal.filter {
    height: 71vh;
}

.filter .modal-inner {
    height: 70vh;
} */

.modal-inner {
    text-align: center;
    justify-content: space-around;
    row-gap: 1rem;
    min-height: 40vh;
}

.modal-keywords {
    flex-wrap: wrap;
}

.modal-keywords .keyword {
    font-size: .8rem;
}

.keyword-selected {
    background-color: var(--primary);
    color: var(--font);
}

form a {
    font-style: italic;
    color: var(--font-darker);
    font-weight: 300;
    font-size: 1rem;
}
form a:hover {
    color: var(--primary);
}

p.left {
    align-self: start;
}

.stars, .half-stars, .bg-stars {
    font-size: 2rem;
    align-self: center;
    color: var(--secondary);
}

.bg-stars {
    position: relative;
    z-index: 11;
}

.stars {
    position: absolute;
    z-index: 15;
}

.half-stars {
    position: absolute;
    z-index: 14;
}

.bg-stars .icon, .half-stars .icon, .stars .icon {
    width: 2rem;
    height: 2rem;
}


#range-input {
    position: absolute;
    height: 2rem;
    width: 100%;
    z-index: 20;
    -webkit-appearance: none;
    appearance: none;
    opacity: 0;
}

.invisible {
    visibility: hidden;
}

textarea {
    resize: none;
}

textarea:focus {
    outline: 1pt solid var(--primary);
}


@keyframes moveUp {
    from { bottom: -100vh; }
    to { bottom: -1vh; }
}

@keyframes moveDown {
    to {bottom: -100vh; }
    from { bottom: -1vh; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

@keyframes fadeOut {
    to { opacity: 0; }
    from { opacity: 0.7; }
}

@media screen and (min-width: 450px) {
    html {
        max-width: 450px;
    }
}


/*** ICONS ***/

.icon {
    width: 1rem;
    height: 1rem;
}

.i-white {
    filter: brightness(0) saturate(100%) invert(100%) sepia(4%) saturate(640%) hue-rotate(302deg) brightness(116%) contrast(100%);
}

.i-primary {
    filter: brightness(0) saturate(100%) invert(80%) sepia(18%) saturate(584%) hue-rotate(4deg) brightness(97%) contrast(90%);
}

.i-font-darker {
    filter: brightness(0) saturate(100%) invert(69%) sepia(98%) saturate(0%) hue-rotate(56deg) brightness(106%) contrast(94%);
}


/*** INDEX ***/

.header-img-inner {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 7;
    max-width: calc(100vw - 2rem);
}

#logo {
    position: absolute;
    top: var(--notch-area);
    left: 1rem;
    height: 2rem;
    width: 2rem;
    border-radius: .3rem;
    z-index: 10;
}

.header-img-overlay {
    position: absolute;
    width: 100%;
    top: 0;
    min-height: 35vh;
    z-index: 5;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.header-img {
    width: 100%;
    background-size: cover;
    background-position: center;
    height: 35vh;
    /* background-attachment: fixed; */
    position: relative;
}

.subtitle {
    text-transform: uppercase;
    color: var(--font-darker);
    margin-top: -.2rem;
}

/*** Badges ***/
.badge-list {
    flex-wrap: wrap;
    justify-content: space-around;
}

.badge {
    width: 8rem;
    height: 8rem;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge div {
    width: 60%;
    height: 60%;
    text-align: center;
    display: flex;
    align-items: center;
}


/*** MORE ***/

.more-link {
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.more-link div {
    flex-grow: 1;
}


/*** MY LIST ***/
.mylist {
    row-gap: 1rem;
}

.list-element {
    width: 100%;
    height: 7rem;
    overflow: hidden;
}

.list-img {
    height: auto;
    min-width: 40%;
    border-radius: .5rem;
    background-size: cover;
}

.list-date {
    text-align: right;
}


/*** TOURS ***/
.booking {
    justify-content: space-between;
    color: var(--font-darker);
}

.your-slot {
    color: var(--primary);
    font-weight: 550;
}

hr {
    margin: .5rem;
    border: var(--font-darker) .5pt solid;
}

.team {
    background-color: var(--light-background);
    border-radius: .5rem;
    padding: .5rem;
}