@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');



html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-family: "Montserrat";
}

* {
    box-sizing: border-box;
}

*[hidden] {
    display: none;
}

main {
    width: 100%;
    height: 100%;
}

.interface {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bottom-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    height: 6vh;
    border-radius: 6vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px;
}

.bottom-bar > button {
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    transition: background ease-out 0.2s, scale ease-out 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    aspect-ratio: 1;
    padding: 0 7px;
    border-radius: 50%;
}

.bottom-bar > button[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

.bottom-bar > button i {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5vh;
    color: rgb(205, 205, 205);
}

.bottom-bar > button:not([disabled]):hover {
    background: rgba(255, 255, 255, 0.1);
}

.bottom-bar > button:active {
    scale: 0.9;
}

#speed i:nth-child(1) {
    height: 50%;
    font-size: 1.25vh;
    font-weight: 900;
}

@keyframes reset-icon {
    0% {
        transform: none;
    }

    100% {
        transform: rotate(-1turn);
    }
}

#reset[anim] i {
    animation: reset-icon 0.5s ease-out 0s 1 normal forwards;
}

#power-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex-direction: column;
    padding: 0 1rem 0 0;
    color: white;
}

#power-wrapper p {
    margin: 0;
}

#power {
    appearance: none;
    border-radius: 100vh;
    height: 0.666rem;
    padding: 0;
    background: none;
}

#power::-webkit-slider-runnable-track {
    background-image: linear-gradient(
        to right,
        rgb(200, 200, 200) 0%,
        rgb(200, 200, 200) var(--value, 100%),
        transparent var(--value, 100%),
        transparent 100%
    );
    border: 1px solid rgb(200, 200, 200);
    height: 0.666rem;
    border-radius: 2vh;
    width: 50%;
}

#power::-moz-range-track {
    background: linear-gradient(
        to right,
        rgb(200, 200, 200) 0%,
        rgb(200, 200, 200) var(--value, 100%),
        transparent var(--value, 100%),
        transparent 100%
    );
    border: 1px solid rgb(200, 200, 200);
    height: 0.666rem;
    border-radius: 2vh;
    width: 50%;
}

#power::-webkit-slider-thumb {
    appearance: none;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(50, 50, 50);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    transform: translateX(var(--value50, 50%)) translateY(-16.666%);
    transition: transform ease-out 0.1s;
}

#power::-webkit-slider-thumb:hover {
    transform: scale(1.1) translateX(var(--value50, 50%)) translateY(-16.666%);
}

#power::-moz-range-thumb {
    appearance: none;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(50, 50, 50);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    transform: translateX(var(--value50, 50%)) translateY(-16.666%);
}



aside {
    position: fixed;
    display: flex;
    flex-direction: column;
    padding: 1rem 0 0 1rem;
    gap: 1rem;
}

aside[opened] ul {
    display: flex;
}

aside button {
    height: calc(6vh - 10px);
    width: fit-content;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: rgb(255, 255, 255);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background ease-out 0.2s, scale ease-out 0.2s;
}

aside button:active {
    scale: 0.9;
}

aside button > i {
    width: 80%;
    height: 80%;
    font-size: 2.5vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

aside ul {
    width: 350px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0;
    list-style-type: none;
    background: rgba(0, 0, 0, 0.3);
    color: rgb(255, 255, 255);
    backdrop-filter: blur(8px);
    margin: 0;
    padding: 1rem;
    border-radius: 1rem;
}

aside ul li span {
    font-weight: 600;
}



overlay {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(7px);
    display: flex;
    align-items: center;
    justify-content: center;
}

overlay[hidden] {
    display: none;
}

overlay > .box {
    width: 600px;
    height: 412.5px;
    aspect-ratio: 16/11;
    max-width: calc(100% - 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: black;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
}

overlay > .box > h3 {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
    margin: 0;
}

overlay > .box > h3 > button {
    position: absolute;
    right: 0;
    height: 100%;
    aspect-ratio: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

overlay > .box > h3 > button > i {
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* overlay > .box > h4 {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

overlay > .box > h4 > i {
    width: 1rem;
    height: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
} */

overlay > .box > ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    font-size: 1.1rem;
    width: 100%;
    padding: 0;
}

overlay > .box > ul li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
}

overlay .link-icon {
    width: 1.4rem;
    height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

overlay .link-icon img {
    width: 100%;
    height: 100%;
}

overlay a {
    color: black;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color ease-out 0.2s;
}

overlay a:hover {
    color: rgb(70, 70, 70);
}

overlay a i {
    font-size: 0.9rem;
}



@keyframes fade-out-landing {
    0% {
        opacity: 1;
    }

    99.9% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        display: none;
        pointer-events: none;
    }
}

.landing {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: rgb(30, 30, 30);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    animation: fade-out-landing 2s linear 3s 1 normal forwards;
    padding: 2rem 0;
}

.landing p {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
}

.landing p:nth-child(1) {
    font-size: 1.6rem;
    font-weight: 700;
}

.landing a, .landing img {
    height: 1.4rem;
    transition: opacity ease-out 0.2s;
}

.landing a:hover {
    opacity: 0.8;
}



/*#region ICONS */

.icon {
    position: relative;
    height: 1.15rem;
    aspect-ratio: 1;
    display: flex;
}

.icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.neutron-icon::before {
    width: 50%;
    height: 50%;
    background: rgb(255, 255, 255);
    border-radius: 50%;
}

.fast-neutron-icon::before {
    width: 50%;
    height: 50%;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 50%;
}

.uranium-icon::before {
    background: rgb(50, 255, 120);
    border-radius: 50%;
}

.xenon-icon::before {
    background: rgb(255, 50, 170);
    border-radius: 50%;
}

.atom-icon::before {
    background: rgb(180, 180, 180);
    border-radius: 50%;
}

.water-icon::before {
    background: rgb(0, 127, 255);
    border: 1px solid rgb(255, 255, 255);  
}

.hot-water-icon::before {
    background: rgb(255, 0, 0);
    border: 1px solid rgb(255, 255, 255);
}

.vapor-icon::before {
    background: transparent;
    border: 1px solid rgb(255, 255, 255);
}

.moderator-icon::before {
    background: rgb(30, 30, 30);
    border: 2px solid rgb(255, 255, 255);
    width: auto;
    aspect-ratio: 1/5;
}

.control-rod-icon::before {
    background: rgb(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    width: auto;
    aspect-ratio: 1/5;
}

/*#endregion ICONS */