

:root {
    --background: #0d181f;

    --frame: #122433;
    --page: #193042;
    --ambience: #192126;
    --label: #7a6a52;
--card: #dfb77a;
}

html,
body {
    padding: 0;
    margin: 0;
    
    
}

body {
    background-color: var(--background);
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: Helvetica, Verdana, Sans Sarif;
   
    background: url(../img/bg.png) var(--ambience) no-repeat;
    background-position: top left;
    background-size: 100%;

}

.container {
    position: fixed;
    top: 0;
    left: calc(50% - 720px);
    width: 1440px;
    padding-top: 100px;
    height: 100vh;
    overflow: hidden;
}

.frame {
    max-width: 1080px;
    margin: auto;
    background-color: var(--frame);
    margin-top: -30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: auto;
    border-radius: 5px;
    padding: 30px;
    box-sizing: border-box;
    min-height: calc(100% + 50px);
    position: relative;
}

.page {
    width: 100%;
    min-height: 100vh;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background-color: var(--page);
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 120px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    z-index: 10;
    position: relative;
    margin-top: 0;
}

.image {
    max-height: calc(100vh - 240px);
    max-width: calc(100vw - 20px);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--frame);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.image:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: transparent;

    background: linear-gradient(180deg, transparent 30%, var(--page));
    z-index: 10;
}

.image img.picture {
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.image img.picture:not(.loaded) {
    opacity: 0;
}

.sign {
    position: absolute;
    width: 80%;
    height: 120px;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    object-fit: scale-down;
    object-position: right;
    max-height: 20%;
}

nav {
	position: absolute;
	transform: rotate(90deg) translateY(0px);
    transform-origin: top right;
    right: -10px;
    bottom: 15%;
}

.label {
    background: var(--label);
    padding: 12px 20px;
    display: inline-block;
    z-index: 0;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease-in-out;
    transform: translateY(0px);
}

label a,
label button {
    text-decoration: none!important;
    color: #FFF;
    opacity: 0.3;
    text-rendering: optimizeLegibility;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    height: 100%;
    display: inline-block;
    border:none;
}

label:hover {
    transform: translateY(-20px);
}

.popup.hidden {
	display: initial;
	transform: translateX(-100px);
	opacity: 0;
}

.popup {
    position: fixed;
    bottom: 20%;
    left: 5%;
    width: 300px;
    background: var(--card);
    z-index: 1000;
    padding: 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: translateX(0px);
	opacity: 1;
	transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.popup header {
    font-size: 20px;
    line-height: 22px;
    margin-bottom: 10px;
}

.popup input {
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.2);
    height: 30px;
    width: 100%;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
    margin-top: 10px;

}

.popup input::placeholder {
    color: rgba(0,0,0,0.5);
}

.popup input:focus {
    outline: none;
    background: rgba(255,255,255,0.4);
}

.popup button {
    border-radius: 4px;
    border: none;
    background: rgba(0,0,0,0.2);
    height: 30px;
    width: 100%;
    margin: 0;
    padding: 5px 10px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
}

.hidden {
    display: none;
}

.progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 2px;
	background-color: var(--label);
	transition: width 1s linear;
}

.progress.reset {
	width: 0%!important;
	transition: width 0.2s linear;
}

p.error {
	font-style: italic;
}