html {
    overflow-x: hidden;
    height: auto;
}

body {
    margin: 0;
    padding: 0;

    --main-bg-color: rgb(114, 154, 214);
    --main-text-color: rgb(255, 255, 255);
    --main-highlight-color: rgb(253, 255, 125);

    --top-bar-bg-color: rgba(0, 0, 0, 0.205);
    --volume-bar-slider-color: #5f2605;
    --volume-bar-thumb-color: #eb6d5c;

    --play-btn-bg-color: #2f64aa;
    --play-btn-highlight-bg-color: #15498b;

    --shop-bg-color: rgb(209, 37, 37);
    --shop-bg-highlight-color: rgb(179, 14, 14);
    --shop-text-color: white;
    --shop-nav-arrow-bg-color: #333333;
    --shop-nav-arrow-color: white;

    --shop-cart-bg-color: rgb(255, 255, 255);
    --shop-cart-text-color: rgb(0, 0, 0);
    --shop-cart-title-color: #968888;
    --shop-cart-border-color: #E1E8EE;
    --shop-cart-quantity-bg-color: #E1E8EE;
    --shop-cart-quantity-bg-highlight-color: #c4ccd3;

    --news-bg-color: rgb(138, 16, 0);
    --news-highlight-bg-color: rgb(105, 12, 0);
    --news-headline-color: rgb(255, 255, 255);
    --news-date-color: rgb(180, 180, 180);
    --news-content-date-color: rgb(201, 201, 201);

    --subscribe-bg-color: rgb(138, 16, 0);
    --subscribe-text-color: rgb(255, 255, 255);
    --subscribe-input-color: #CAD3DB;
    --subscribe-btn-bg-color: rgb(255, 177, 61);
    --subscribe-btn-shadow-color: rgba(255, 177, 61, 0.5);
    --subscribe-btn-highlight-shadow-color: rgba(255, 139, 61, 0.7);
    --subscribe-btn-text-color: rgb(255, 255, 255);

    color: var(--main-text-color);

    font-family: "Stitch Gothic";
}

:fullscreen, ::backdrop {
/*    background-color: transparent;*/
}

@font-face {
    font-family: "Writing";
    src: url("../fonts/TangerineRegular.ttf"); /* ItalianCursive */
}


@font-face {
    font-family: "Gothica-Bold";
    src: url("../fonts/Gothica-Bold.ttf");
}

@font-face {
    font-family: "Gothica";
    src: url("../fonts/Gothica-Book.ttf");
}

@font-face {
    font-family: "Mirage";
    src: url("../fonts/Mirage\ final.ttf");
}

@font-face {
    font-family: "Stitch Gothic";
    src: url("../fonts/stitch-gothic.otf");
}
/*@font-face {
    font-family: "RPG";
    src: url("../fonts/rpgawesome-webfont.ttf");
}*/

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main-bg-color);
}

/* cookies banner classes */

.cookies-banner {
    background: #444;
    color: #fff;
    padding: 8px;
    font-size: 0.8rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.cookies-banner button {
    text-decoration: none;
    background: #222;
    color: #fff;
    border: 1px solid #000;
    cursor: pointer;
    padding: 4px 7px;
    margin: 2px 0;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 16px 0px 4px 16px;
    transition: all 0.2s;
}

.cookies-banner button:hover {
    background: #fff;
    color: #222;
}

/* alert banner classes */

.alertbanner {
    position:fixed;
    visibility:hidden;
    top:40%;
    opacity:0.2;
    left:100%;
    width:100%;
    height:20%;
    background-color:#666666;
    z-index:9999999;
    pointer-events:none;
}

.alertbanner-content {
    position:fixed;
    visibility:hidden;
    top:43%;
    opacity:0.2;
    left:10%;
    width:90%;
    height:14%;
    color:white;
    font-size:6vh;
    text-shadow:1px 1px 3px black;
    z-index:9999999;
    pointer-events:none;
}

/* top bar classes */

.top-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    z-index: 10;
}

.top-bar-elements-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;

    position: absolute;
    top: 0;
    width: 100%;
    height: 60px;
}

.top-bar-background {
    width: 100%;
    height: 100%;
    background-color: var(--top-bar-bg-color);
}

.top-bar-game-title {
    padding: 8px 16px 0px 16px;
    font-size: 2rem;
    font-family: "Mirage";
}

.top-bar-menu {
    flex-grow: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.top-bar-menu div {
    margin-top: 16px;
    margin-bottom: 16px;
    flex-basis: 100px;
    text-align: center;
}

.top-bar-button {
    font-family: "Gothica";
    font-size: 1.125rem;
}

.top-bar-button:hover {
    transition: all 0.2s;
}

.top-bar-button:hover {
    color: var(--main-highlight-color);
    /* transform: scale(1.1); */
}

.top-bar-right-container {
    align-items: start;

    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

/* language dropdown classes */

/* dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropbtn {
    background-color: #04aa6d00;
    color: white;
    border: none;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.dropbtn img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    pointer-events: none;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Links inside the dropdown */
.dropdown-content input {
    position: relative;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    width: 20px;
    height: 20px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #414141;
}

/* volume classes */

.volume-player {
    /* margin-right: 32px; */
    display: flex;
    gap: 10px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 6rem;
}

.volume-slider:focus {
    outline: none;
}

.volume-slider::-webkit-slider-runnable-track {
    background: var(--volume-bar-slider-color);
    border-radius: 0.5rem;
    height: 0.5rem;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -4px; /* centers thumb on track */
    background-color: var(--volume-bar-thumb-color);
    border-radius: 1.5rem;
    height: 1rem;
    width: 1rem;
}

.volume-slider:hover::-webkit-slider-thumb {
    outline: 3px solid var(--volume-bar-thumb-color);
    outline-offset: 0.125rem;
}

/* firefox styles */
.volume-slider::-moz-range-track {
    background: var(--volume-bar-slider-color);
    height: 0.5rem;
}

.volume-slider::-moz-range-thumb {
    border: none;
    border-radius: 0.5rem;
    background-color: var(--volume-bar-thumb-color);
    height: 2rem;
    width: 1rem;
}

.volume-slider:hover::-moz-range-thumb {
    outline: 3px solid var(--volume-bar-thumb-color);
    outline-offset: 0.125rem;
}

/* logout container */
.logout-container:hover {
    color: var(--volume-bar-thumb-color);
}

/* page classes */

.page-container {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
}

.slide-container {
    overflow: hidden scroll;
    /* Scroll snap effect */
    scroll-snap-type: y mandatory;
}

.slide {
    width: 100%;
    height: 100vh;
    /* Scroll snap effect */
    scroll-snap-align: start;
}

.actions-container {
    display: grid;
    grid-auto-flow: column;
    gap: 16px;
    position: absolute;
    left: 40%;
    white-space: nowrap;
}

.play-button {
    margin: 6px;

    display: inline-block;
    padding: 0.5em 1.7em;
    border: 0.16em solid transparent;
    background-color: var(--play-btn-bg-color);
    border-radius: 2em;
    text-align: center;
    font-size: 1.75rem;
    color: var(--shop-text-color);
    transition: all 0.2s;
}

.play-button:hover {
    background-color: var(--play-btn-highlight-bg-color);
    transform: scale(1.05);
}

.access-shop-button {
    margin: 6px;

    display: inline-block;
    padding: 0.5em 1.7em;
    border: 0.16em solid transparent;
    background-color: var(--shop-bg-color);
    border-radius: 2em;
    text-align: center;
    font-size: 1.75rem;
    color: var(--shop-text-color);
    transition: all 0.2s;
}

.access-shop-button:hover {
    background-color: var(--shop-bg-highlight-color);
    transform: scale(1.05);
}

.copyright-notice {
    position: relative;
    margin: 16px;
    bottom: 56px;
}

/* shop classes */

.shop-item {
    display: flex;
    justify-content: center;
}

.shop-navigation-button {
    display: inline-block;
    width: 60px;
    height: 60px;
    background-color: var(--shop-nav-arrow-bg-color);
    background-clip: content-box;
    border: 2px solid transparent;
    border-radius: 50%;
    font-size: 0;
    transition: transform 0.1s;
    align-self: center;
    margin: 32px;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-right:18px solid var(--shop-nav-arrow-color);
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 18px solid var(--shop-nav-arrow-color);
    margin-left: 6px;
}

.shop-navigation-button:hover {
    transform: scale(1.1);
}

.shop-cart-button {
    padding: 0.5em 1.7em;
    border: 0.16em solid transparent;
    background-color: var(--shop-bg-color);
    border-radius: 2em;
    text-align: center;
    color: var(--shop-text-color);
    transition: all 0.2s;
}

.shop-cart-button:hover {
    background-color: var(--shop-bg-highlight-color);
}

/* shopping cart overlay classes */

.shop-cart-container {
    width: 50%;
    height: auto;
    background: var(--shop-cart-bg-color);
    box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.137);
    border-radius: 6px;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: absolute;
    top: calc(100vh - 56px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    transition: all 0.2s;
}

.shop-cart-container.slide-position {
    bottom: 0px;
    top: initial;
}

.shop-cart-title {
    height: 32px;
    border-bottom: 1px solid var(--shop-cart-border-color);
    margin: 16px;
    color: var(--shop-cart-title-color);
    font-size: 1.125rem;
    font-weight: 400;
}

.shop-cart-item {
    padding: 20px 30px;
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: var(--shop-cart-text-color);
}

.shop-cart-item-image {
    width: 20%;
    max-height: 100%;
}

.shop-cart-item-button {
    width: 30px;
    height: 30px;
    background-color: var(--shop-cart-quantity-bg-color);
    border-radius: 6px;
    border: none;
    transition: all 0.2s;
}

.shop-cart-item-button:hover {
    background-color: var(--shop-cart-quantity-bg-highlight-color);
}

/* news classes */

.news-content-offset {
    position: relative; top: 15%; left: 10%;
}

.news-container {
    background-color: var(--news-bg-color);
    width: 400px;
    height: 400px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.news-container:hover {
    background-color: var(--news-highlight-bg-color);
    transform: scale(1.01);
}

.news-headline {
    color: var(--news-headline-color);
    margin-left: 18px;
    font-size: 1.5rem;
    font-family: 'Gothica';
}

.news-date {
    color: var(--news-date-color);
    margin: 10px 18px 10px 18px;
    font-size: 1rem;
}

.news-content-date {
    color: var(--news-content-date-color);
    margin: 10px 18px 10px 0px;
    font-size: 1.125rem;
}

/* subscribe classes */

.subscribe {
    top: 10%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--subscribe-bg-color);
	width: 50%;
	height: 300px;
	border-radius: 10px;
	box-shadow: 0 4px 20px var(--subscribe-bg-color);
    color: var(--subscribe-text-color);
}


.subscribe-title {
    font-family: 'Gothica';
	font-weight: bold;
	font-size: 1.6rem;
	margin-bottom: 18px;
}

.subscribe-copy {
	max-width: 550px;
	text-align: center;
    margin: 16px 16px 3% 16px;
	line-height: 1.5;
}

.form {
	margin-bottom: 25px;
    width: 80%;
}

.form-email {
	padding: 20px 25px;
	border-radius: 5px;
    border: 1px solid var(--subscribe-input-color);
	width: 40%;
    max-width: 400px;
    margin: 10px;
	font-size: 1.125rem;
}

.form-email:focus {
	outline: 1px solid var(--subscribe-btn-bg-color);
}

.form-button {
	background: var(--subscribe-btn-bg-color);
	padding: 10px;
	border: none;
	width: 30%;
    max-width: 200px;
	height: 65px;
	border-radius: 5px;
	font-size: 1.125rem;
	color: var(--subscribe-btn-text-color);
	box-shadow: 0 4px 20px var(--subscribe-btn-shadow-color);
    transition: all 0.2s;
}

.form-button:hover {
	box-shadow: 0 10px 20px var(--subscribe-btn-highlight-shadow-color);
    transform: scale(1.03);
}

/* general classes */

.center {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.horizontal-center {
    position: relative;
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.horizontal-centerright {
    position: relative;
    left: 65%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.vertical-center {
    position: relative;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.hidden {
    display: none;
    visibility: hidden;
    opacity: 0;
}

.interactable {
    pointer-events: all;
    cursor: pointer;
}

.no-events {
    pointer-events: none;
}

.show {
    display: block;
}

.simple-button {
    display: inline-block;
    padding: 0.5em 1.7em;
    margin: 6px;
    border: 0.16em solid transparent;
    background-color: var(--shop-bg-color);
    border-radius: 2em;
    text-align: center;
    font-size: 1.125rem;
    color: var(--shop-text-color);
    transition: all 0.2s;
}

.simple-button:hover {
    background-color: var(--shop-bg-highlight-color);
}
