html {
    background-color: rgb(75, 130, 205);
    background-image: linear-gradient(rgb(60, 115, 190), rgb(75, 130, 205), rgb(60, 115, 190));
    background-attachment: fixed;
    padding: 0;
    white-space: nowrap;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    padding: 0;
    font-family: "main";
}

body:has(nav) { /* Pages that have the navbar at the top (horrible way of coding this, I know). */
    padding-top: 125px;
}

svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

p, ol {
    text-align: center;
    font-family: "main";
    color: white;
    font-size: 24px;
    text-shadow:
    -2.5px -2.5px 0 rgb(50, 75, 100),
    -1px -2.5px 0 rgb(50, 75, 100),
    0px -2.5px 0 rgb(50, 75, 100),
    1px -2.5px 0 rgb(50, 75, 100),
    2.5px -2.5px 0 rgb(50, 75, 100),

    -2.5px 0px 0 rgb(50, 75, 100),
    -1px 0px 0 rgb(50, 75, 100),
    0px 0px 0 rgb(50, 75, 100),
    1px 0px 0 rgb(50, 75, 100),
    2.5px 0px 0 rgb(50, 75, 100),

    -2.5px 2.5px 0 rgb(50, 75, 100),
    -1px 2.5px 0 rgb(50, 75, 100),
    0px 2.5px 0 rgb(50, 75, 100),
    1px 2.5px 0 rgb(50, 75, 100),
    2.5px 2.5px 0 rgb(50, 75, 100),

    -2.5px 5px 0 rgb(35, 55, 75),
    -1px 5px 0 rgb(35, 55, 75),
    0px 5px 0 rgb(35, 55, 75),
    1px 5px 0 rgb(35, 55, 75),
    2.5px 5px 0 rgb(35, 55, 75);
}

ol {
    list-style-type: decimal;
    list-style-position: inside;
}

input:focus, a:focus, textarea:focus {
    outline: none;
    border: none;
}

input[type=range], textarea {
    /*border: none;*/
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 0;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;
  background: transparent; 
  border-color: transparent;
  color: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #000000;
  height: 20px;
  width: 20px;
  margin-top: -8px;
  background: #ffffff;
  cursor: pointer;
  border: 3px solid rgb(50, 75, 100);
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  background: white;
  border: 3px solid rgb(50, 75, 100);
}

input[type=submit] {
    cursor: pointer;
}

input, textarea {
    background: none;
    font-size: 32px;
    font-family: "main";
    width: 100%;
    height: 100%;
    border: none;
}

textarea {
    font-size: 24px;
}

nav {
    display: flex;
    position: fixed;
    top: 0;
    align-items: center;
    width: 100%;
    height: 105px;
    z-index: 999;
}

a {
    text-decoration: none;
}

::-webkit-scrollbar {
    background: rgba(55, 90, 130, 0.5);
    width: 15px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgb(120, 177, 235);
    outline: 3px solid rgba(90, 147, 205);
    border-radius: 10px;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* CLASSES */

.margin-10 { margin-bottom: 10px; }
.margin-20 { margin-bottom: 20px; }
.margin-30 { margin-bottom: 30px; }

.pixelate-2 {
    filter: url(#pixelate-2);
}

.pixelate-3 {
    filter: url(#pixelate-3);
}

.pixelate-4 {
    filter: url(#pixelate-4);
}

.pixelate-5 {
    filter: url(#pixelate-5);
}

.pixelate-8 {
    filter: url(#pixelate-8);
}

.wobble {
    animation: wobble 6s ease-in-out infinite;
}

.italicized {
    font-style: italic;
}

.input-container {
    position: relative;
    display: flex;
    gap: 15px;
    height: 40px;
    align-items: center;
}

.input-container > label {
    min-width: 190px;
}

.input-field-bg {
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 5px 0 rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.input-field-container {
    position: relative;
    font-size: 36px;
    font-family: "main";
    width: 100%;
    height: 100%;
    padding-top: 2px;
    transition: all 0.1s;
}

.input-field-container > button {
    position: relative;
    font-size: 32px;
    font-family: "main";
    margin: 0;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
}

.input-field-container:hover {
    transform: scale(1.005);
}

.logout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 90%
}

.logout-icon {
    height: 30px;
}

.logout-submit {
    padding-top: 5px;
    font-size: 28px;
    width: fit-content;
    color: white;
    text-shadow:
    -2.5px -2.5px 0 rgb(50, 75, 100),
    -1px -2.5px 0 rgb(50, 75, 100),
    0px -2.5px 0 rgb(50, 75, 100),
    1px -2.5px 0 rgb(50, 75, 100),
    2.5px -2.5px 0 rgb(50, 75, 100),

    -2.5px 0px 0 rgb(50, 75, 100),
    -1px 0px 0 rgb(50, 75, 100),
    0px 0px 0 rgb(50, 75, 100),
    1px 0px 0 rgb(50, 75, 100),
    2.5px 0px 0 rgb(50, 75, 100),

    -2.5px 2.5px 0 rgb(50, 75, 100),
    -1px 2.5px 0 rgb(50, 75, 100),
    0px 2.5px 0 rgb(50, 75, 100),
    1px 2.5px 0 rgb(50, 75, 100),
    2.5px 2.5px 0 rgb(50, 75, 100),

    -2.5px 5px 0 rgb(35, 55, 75),
    -1px 5px 0 rgb(35, 55, 75),
    0px 5px 0 rgb(35, 55, 75),
    1px 5px 0 rgb(35, 55, 75),
    2.5px 5px 0 rgb(35, 55, 75);
    transition: all 0.1s;
}

.logout-submit:hover {
    transform: scale(1.02);
}

.header {
    text-align: center;
    font-size: 60px;
    width: fit-content;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    text-shadow:
    -5px -5px 0 rgb(50, 75, 100),
    -3px -5px 0 rgb(50, 75, 100),
    0px -5px 0 rgb(50, 75, 100),
    3px -5px 0 rgb(50, 75, 100),
    5px -5px 0 rgb(50, 75, 100),

    -5px 0px 0 rgb(50, 75, 100),
    -3px 0px 0 rgb(50, 75, 100),
    0px 0px 0 rgb(50, 75, 100),
    3px 0px 0 rgb(50, 75, 100),
    5px 0px 0 rgb(50, 75, 100),

    -5px 5px 0 rgb(50, 75, 100),
    -3px 5px 0 rgb(50, 75, 100),
    0px 5px 0 rgb(50, 75, 100),
    3px 5px 0 rgb(50, 75, 100),
    5px 5px 0 rgb(50, 75, 100),

    -5px 9px 0 rgb(35, 55, 75),
    -3px 9px 0 rgb(35, 55, 75),
    0px 9px 0 rgb(35, 55, 75),
    3px 9px 0 rgb(35, 55, 75),
    5px 9px 0 rgb(35, 55, 75);
}

.subheader {
    margin: auto;
    text-align: center;
    font-size: 32px;
    width: fit-content;
}

.pixelated-bg {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    filter: url(#pixelate-4);
}

.word-link {
    display: inline-block;
    color: rgb(82, 237, 255);
    transition: all 0.1s;
    text-decoration: none;
}

.word-link:hover {
    transform: scale(1.04);
}

.scrolling-bg-container {
    overflow: hidden;
    margin: 0%;
    padding: 0%;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -999;
}
  
.scrolling-bg {
    background: url("../images/bg.png") repeat;
    width: 1000vw;
    height: 1000vh;
    background-size: 200px;
    animation: bg 12s linear infinite;
    filter: url(#pixelate-5);
    opacity: 0.1;
}

.horizontal-scroll-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: drop-shadow(0px 4px 0px rgba(0, 0, 0, 0.2));
}

.horizontal-scroll {
    background: linear-gradient(rgba(58, 90, 133, 0.4), rgb(126, 180, 255, 0), rgb(126, 180, 255, 0), rgb(126, 180, 255, 0)), url("../images/navbar-bg.png") repeat;
    width: 200vw;
    height: 100%;
    background-size: auto 105px;
    animation: horizontal-scroll-navbar 20s linear infinite;
}

.nav-container {
    width: 100%;
    height: 75px;
    padding: 0 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nav-title-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-buttons {
    display: flex;
    width: 70%;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-logo {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0px 4px 0px rgba(0, 0, 0, 0.2))
}

.nav-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0px 3px 0px rgba(0, 0, 0, 0.2))
}

.nav-title {
    font-size: 46px;
    line-height: 46px;
    height: 46px;
    filter: drop-shadow(0px 4px 0px rgba(0, 0, 0, 0.2))
}

.nav-text {
    font-size: 40px;
    line-height: 40px;
    height: 40px;
    align-self: flex-end;
    margin-bottom: 5px;
    filter: drop-shadow(0px 3px 0px rgba(0, 0, 0, 0.2))
}

.nav-title-container, .nav-item {
    transition: all 0.15s;
}

.nav-title-container:hover, .nav-item:hover {
    transform: scale(1.015);
}

.nav-account {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    padding-top: 5px;
}

.nav-username, .nav-balance {
    text-align: right;
    font-size: 22px;
}

/* IDS */

#error {
    position: fixed;
    margin-bottom: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    text-wrap: nowrap;
    opacity: 0;
    transition: all 0.25s;
    text-shadow: 0px 3.5px 0 rgba(0, 0, 0, 0.5);
}

/* ANIMATIONS */

@keyframes bg {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-200px, -200px);
    }
}

@keyframes wobble {
    0% {
        transform: rotateZ(-2deg);
    }
    50% {
        transform: rotateZ(2deg);
    }
    100% {
        transform: rotateZ(-2deg);
    }
}

@keyframes horizontal-scroll-navbar {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-420px);
    }
}

/* FONTS */

@font-face {
    font-family: "main";
    src: url("../fonts/main.ttf");
}

@font-face {
    font-family: "rounded";
    src: url("../fonts/rounded.ttf");
}