:root {
    --background_blur: 10px;

    --glass_blur: 2.4em;
    --glass_opacity: 0.1;
    --glass_opacity_last: 0.2;

    --glass_offset: 20em;

    --main_color_white: #F2F5F3;
    --main_color_offwhite: #c9c9c9;
    --main_color_grey: #e2e2e2;
    --main_color_darkgrey: #1d232a;

    --main_title_size: 5em;
    --title_size: 3em;
    --subtitle_size: 2em;
    --tutorial_size: calc(var(--title_size) * 0.5);
    --button_size: calc(var(--title_size) * 0.5);

    --checkbox_size: 2em;
    --checkbox_text_size: 1em;

    --stepcolor: #ff1c1c;
    --stepcolordone: #1cff20;
    --stepshadowsize: 0.5em;
}

* {
    font-family: 'Mona Sans', 'Segoe UI', Roboto;
    text-align: center;
    color: var(--main_color_white);

    padding: 0;
    margin: 0;

    filter: drop-shadow(0 0 0.1em #00000020);
}

html {
    font-size: clamp(9px, 1vw, 16px);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

h1 {
    font-size: var(--main_title_size);
    margin: calc(var(--main_title_size) * 0.1) 0;
    color: var(--main_color_white);
}

h2 {
    font-size: var(--title_size);
    margin-bottom: calc(var(--title_size) * 0.2);
}

h3 {
    font-size: var(--subtitle_size);
    color: var(--main_color_grey);
}

h4 {
    font-size: calc(var(--subtitle_size) * 0.8);
    color: var(--main_color_grey);
    margin-bottom: calc(var(--subtitle_size) * 0.6);
}

h5 {
    font-size: calc(var(--subtitle_size) * 0.5);
    padding-bottom: 1.2em;
}

ul {
    font-size: calc(var(--subtitle_size) * 0.6);
}

li {
    text-align: left;
}

.awnserP,
.awnserP a {
    font-size: var(--checkbox_text_size);
}

.awnserP {
    color: var(--main_color_offwhite);
}

.awnserP a {
    color: var(--main_color_grey);
}

.statusinformation {
    padding-bottom: 1.2em;
}

.titlerow {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em;
}

.special {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #ffd91c, #1cffff, #ff1cc2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.warning {
    animation: warning-notify 0.5s both;
    color: #f2311e;
    filter: drop-shadow(0 0 0.2em #000000);
}

.special::before {
    content: "Vibrant Engine";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: blur(8px);
    opacity: 0.6;
}

p {
    font-size: var(--tutorial_size);
}

.glass {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: min(50em, calc(100vw - 8em));
    padding: 2em;
    margin: 2em;

    border-radius: 2em;
    border: none;

    background: rgba(255, 255, 255, var(--glass_opacity));
    -webkit-backdrop-filter: blur(var(--glass_blur));
    backdrop-filter: blur(var(--glass_blur));

    --tiltX: 0deg;
    --tiltY: 0deg;
    --translateX: 0px;
    transform: translate(var(--translateX), 0) perspective(800px) rotateX(var(--tiltX)) rotateY(var(--tiltY));

    transition: all 0.1s;
}

.glass:nth-child(odd) {
    --translateX: calc(var(--glass_offset) * -1);
}

.glass:nth-child(even) {
    --translateX: var(--glass_offset);
}

.glass:last-of-type {
    --translateX: 0px;
    width: min(60em, calc(100vw - 8em));

    background: rgba(255, 255, 255, var(--glass_opacity_last));
}

.githubicon {
    height: var(--button_size);
    width: var(--button_size);
}

.button,
button {
    display: flex;
    flex-direction: row;

    gap: 0.5em;
    padding: 0.5em 1em;

    border-radius: 2em;
    border: none;

    cursor: pointer;
    
    font-size: var(--button_size);
    background: var(--main_color_darkgrey);

    transition: scale 0.2s, filter 0.2s;
    filter: drop-shadow(0 0.2em 0.2em #00000094);
}

.button:hover,
button:hover {
    scale: 0.98;
    filter: drop-shadow(0 0.1em 0.1em #00000094);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    filter: none;
}

button:disabled:hover {
    scale: 1;
    filter: none;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;

    background-image: url('../images/background_splash.avif');
    background-repeat: no-repeat;

    filter: blur(var(--background_blur));
}

#backgroundindex {
    width: 100%;
    height: 100%;
    
    background-size: auto 100%;
    background-position: center top;

    animation: pan-background linear balance;
    animation-timeline: scroll(root);
}

#backgroundstatus {
    height: 100vh;
    width: 100vw;
    background-size: cover;
    background-position: center;
}

.eula-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: var(--checkbox_text_size);
}

.eula-label input[type="checkbox"] {
    width: var(--checkbox_size);
    height: var(--checkbox_size);
    flex-shrink: 0;
    cursor: pointer;
}

input[type="text"] {
    width: min(100%, calc(var(--checkbox_size) * 30));
    height: calc(var(--checkbox_size) * 1.5);
    margin-top: 1em;
    padding: 0 1.2em;
    box-sizing: border-box;

    font-size: calc(var(--button_size) * 0.8);
    color: var(--main_color_white);

    background: rgba(255, 255, 255, var(--glass_opacity)); 

    border: none;
    outline: none;
    border-radius: 2em;
    transition: background 0.2s;
}

input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.15);
}

input[type="text"]::placeholder {
    color: var(--main_color_offwhite);
    opacity: 0.6;
}

.divider {
    width: 100%;
    height: 0.08em;
    margin-bottom: 1em;

    border: none;
    border-radius: 1em;
    background: rgba(255, 255, 255, 0.15);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5em;
}

.stepheader {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6em;

    width: 100%;
    margin-bottom: 1.2em;
}

.stepnumber {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;

    font-size: var(--button_size);
    font-weight: 700;

    background: var(--stepcolor);
    box-shadow: 0 0 var(--stepshadowsize) var(--stepcolor);
    color: var(--main_color_darkgrey);
}

.stepnumber.done {
    background: var(--stepcolordone);
    box-shadow: 0 0 var(--stepshadowsize) var(--stepcolordone);
}

.steptitle {
    font-size: calc(var(--button_size) * 0.8);
    font-weight: 600;
    white-space: nowrap;
}

.stepline {
    flex: 1;
    height: 0.08em;
    border-radius: 1em;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
    .glass:nth-child(odd),
    .glass:nth-child(even) {
        transform: none;
    }
}

@keyframes pan-background {
    from {
        background-position: center top;
    }
    to {
        background-position: center bottom;
    }
}

@keyframes warning-notify {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
