@font-face {
    font-family: 'myFont';
    src: url('/fonts/Regular.woff2') format('woff2'),
        url('/fonts/Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 7px;
    height: 10px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background: #444;
    box-shadow: 0 0 1px 1px #111, inset 0 0 4px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(left, #3e3e3e, #111, #000);
    box-shadow: inset 0 0 1px 1px #646464;
}

button {
    cursor: pointer;
}

h1 {
    color: var(--color);
    font-size: xxx-large;
    margin: 10px;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(1px);
}

body {
    font-family: 'myFont', sans-serif;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
    align-items: center;
    background-color: #0f1117;
    background-image: radial-gradient(circle, #2e2f3a 1px, transparent 1px),
        radial-gradient(circle, #2e2f3a 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    --color: rgb(221, 221, 221);
    --torn-shadow-background-color: rgba(0, 0, 0, 0.25);
    --torn-background-color: #454753;
    --torn-left-width: 7px;
    --torn-right-width: 7px;
    --torn-left-clip-path: polygon(87% 0%, 89% 4%, 58% 8%, 53% 12%, 1% 16%, 69% 20%, 31% 24%, 49% 28%, 2% 32%, 90% 36%, 60% 40%, 38% 44%, 70% 48%, 50% 52%, 32% 56%, 65% 60%, 84% 64%, 80% 68%, 83% 72%, 52% 76%, 3% 80%, 75% 84%, 47% 88%, 63% 92%, 88% 96%, 52% 100%, calc(100% + 1px) 100%, calc(100% + 1px) 0%);
    --torn-right-clip-path: polygon(82% 0%, 18% 4%, 98% 8%, 66% 12%, 70% 16%, 81% 20%, 11% 24%, 86% 28%, 19% 32%, 1% 36%, 45% 40%, 38% 44%, 20% 48%, 51% 52%, 65% 56%, 77% 60%, 3% 64%, 2% 68%, 70% 72%, 53% 76%, 23% 80%, 81% 84%, 66% 88%, 74% 92%, 57% 96%, 97% 100%, -10% 100%, -10% 0%);
}

.torn_container>div:first-child {
    left: 0px;
    top: 0px;
    position: absolute;
    z-index: 1;
    filter: blur(var(--torn-shadow-blur));
    background-color: var(--torn-shadow-background-color);
}

.torn_container>div:nth-child(2),
.torn_container>div:nth-child(2)>span {
    vertical-align: middle;
}

.torn_container>div:nth-child(2),
.torn_left>div:nth-child(2):before,
.torn_right>div:nth-child(2):after {
    background-color: var(--torn-background-color);
}

.torn_container>div:nth-child(2) {
    display: inline-block;
    position: relative;
    z-index: 2;
    padding: 0.4em;
    color: var(--color);
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 255, 170, 0.4);
}

.torn_left>div:nth-child(2):before,
.torn_left>div:first-child:before {
    content: '';
    position: absolute;
    left: calc(0em - var(--torn-left-width));
    top: 0px;
    width: var(--torn-left-width);
    bottom: 0px;
    -webkit-clip-path: var(--torn-left-clip-path);
    clip-path: var(--torn-left-clip-path);
}

.torn_container>div:first-child,
.torn_left>div:first-child:before,
.torn_right>div:first-child:after {
    background-color: var(--torn-shadow-background-color);
}

.torn_right>div:nth-child(2):after,
.torn_right>div:first-child:after {
    content: '';
    position: absolute;
    left: 100%;
    top: 0px;
    right: calc(0px - var(--torn-right-width));
    bottom: 0px;
    -webkit-clip-path: var(--torn-right-clip-path);
    clip-path: var(--torn-right-clip-path);
}

.torn_right>div:nth-child(2):after {
    left: calc(100% - 0.5px);
}

#progress {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(10, 60px);
    gap: 8px;
    width: 60vw;
    padding: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #23232c, #2d2d44);
    border: 2px solid #444;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
}

.box,
.near {
    margin: 5px;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    border: 2px solid #a081aa;
    background-color: #13141c;
    transition: transform 0.2s, box-shadow 0.3s ease;
    box-shadow: 0 0 6px rgba(245, 140, 255, 0.4);
    cursor: pointer;
}

.box:hover,
.near:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(194, 130, 236, 0.6);
}

#filled {
    transition: background-color 1s ease;
    background-color: rgb(21, 231, 91);
    box-shadow: 0 0 10px rgba(33, 231, 91, 0.7);
}

.box {
    margin: 5px;
    width: 50px;
    height: 50px;
    border-radius: 3px;
    border: 2px solid #555;
    cursor: pointer;
}

#filled img {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 1s ease, transform 1s ease;
}

.img {
    height: 100%;
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}


.near img {
    animation: fadeInOut 1.5s linear infinite forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.tooltip {
    cursor: pointer;
    z-index: 5;
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    max-width: 80vw;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #000000;
    border: 2px solid rgb(100, 39, 100);
    color: var(--color);
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 2;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    box-sizing: border-box;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

footer {
    color: var(--color);
    position: relative;
    margin-top: 25px;
    bottom: 0;
    font-size: large;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    background: rgba(196, 138, 138, 0);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4.1px);
    -webkit-backdrop-filter: blur(4.1px);
    border: 1px solid rgba(196, 138, 138, 0.35);
}

footer ul {
    list-style: none;
    display: flex;
    gap: 10px;
    font-size: medium;
}

footer ul li::after {
    content: "•";
    margin-left: 0.5rem;
}

footer ul li:last-child::after {
    content: "";
}

footer ul li a {
    color: var(--color);
}

.infos {
    width: 60vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.what {
    z-index: 10;
    border: 1px solid white;
    background: none;
    color: var(--color);
    width: 30px;
    height: 30px;
    border-radius: 30px;
    font-size: x-large;
}

.dialog {
    position: relative;
    top: 30%;
    left: 35%;
    border-radius: 10px;
    background: linear-gradient(135deg, #23232c, #2d2d44);
    color: var(--color);
    padding: 10px;
    z-index: 110;
    height: 200px;
    width: 400px;
}

.dialog-div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.close-what {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    background: none;
    color: #f8f8f2;
}

.eachBoxValue {
    color: var(--color);
    font-size: x-large;
}

p a {
    color: var(--color);
}

.moneyInfo {
    position: absolute;
    top: 30%;
    left: 0;
    border: 1px solid rgb(88, 85, 85);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 20px;
    height: 30vh;
    width: 15vw;
    font-size: large;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    color: var(--color);
}

.next-section-line {
    border: none;
    border: 1px solid rgb(20, 55, 80);
    box-shadow: 0 0 10px rgb(20, 55, 80);
    margin: 20px 0;
    width: 80%;
}

.updates {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.updates h2 {
    font-size: xx-large;
    color: var(--color);
}

.updateTable {
    border: 1px solid rgb(59, 59, 59);
    box-shadow: 0 0 10px rgb(20, 55, 80);
    width: 60vw;
    border-radius: 5px;
    padding: 5px;
    max-height: 70vh;
    overflow-y: auto;
}

.updateTable li {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 30px;
    color: var(--color);
}

.updateTable li a{
    color: var(--color);
}