﻿@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

* {
    font-family: "Overpass", sans-serif;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

body {
    background-color: #0c0c0c;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    padding: 20px;
    height: 100%;
}

h2 {
    margin-bottom: 16px;
    margin-left: 8px;
    font-size: 24px;
}

.container {
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, .2);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    min-width: 250px;
}

label {
    font-weight: 600;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    padding: 8px 12px;
    color: white;
    color-scheme: dark;
    border-radius: 8px;
}

button {
    margin-top: 8px;
    background-color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    color: black;
    font-weight: 600;
    cursor: pointer;
}

    button:hover {
        opacity: 0.9;
    }

    button:active {
        opacity: 0.8;
    }

.container.full-width {
    width: calc(100% - 40px);
}

h3 {
    font-size: 16px;
}

ul {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

li::before {
    content: "->";
    margin-right: 8px;
    margin-left: 12px;
}

.d-none {
    display: none !important;
}

.result-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    padding: 12px;
}

.red {
    color: red;
}

.green {
    color: green;
}

h1 {
    font-size: 18px;
    margin-top: 8px;
}

    h1::before {
        content: "->";
        margin-right: 8px;
        margin-left: 12px;
    }

.invalid {
    border: 2px solid red;
}

.material-icons {
    color: inherit;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

.password-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

    .password-popup > .background {
        position: fixed;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, .7);
        width: 100%;
        height: 100%;
        z-index: 999;
        visibility: hidden;
        transition: all 100ms ease-in-out;
        opacity: 0;
    }

    .password-popup > .content {
        background-color: #1c1c1c;
        border: 2px solid rgba(255, 255, 255, .2);
        width: clamp(0px, 400px, 90vw);
        opacity: 1;
        z-index: 1000;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        border-radius: 12px;
        transform: scale(0.95);
        transition: all 150ms ease-in-out;
        opacity: .4;
        visibility: hidden;
    }

    .password-popup *:not(h3) {
        margin-left: 2px;
        margin-right: 2px;
    }

    .password-popup h3 {
        margin-bottom: 8px;
    }

    .password-popup.open > .content {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .password-popup.open > .background {
        visibility: visible;
        opacity: 1;
    }

    .password-popup.open {
        visibility: visible;
    }