@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

:root {
    --bg: #0a0a0a;
    --card: #1a1a1a;
    --glass: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --accent1: #00966e; /* Bulgarian green */
    --accent2: #d62612; /* Bulgarian red */
    --border: rgba(255, 255, 255, 0.2);
}

::selection {
    background: var(--accent1);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent1);
}

.main-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--accent1), var(--accent2));
    border: 2px solid var(--border);
    outline: none;
    color: var(--text);
    fill: var(--text);
    border-radius: 10px;
    text-decoration: none;
    transition: .3s;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.main-btn:hover,
.main-btn:focus-visible {
    background: linear-gradient(45deg, var(--accent2), var(--accent1));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}

.main-btn svg {
    width: 15px;
}

a {
    color: var(--text);
    background: var(--accent1);
    outline: none;
    padding-inline: 5px;
    border-radius: 5px;
}

a:hover,
a:focus-visible {
    color: var(--accent1);
    background: var(--text);
}

#loading {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    place-items: center;
    z-index: 100;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.8);
    transition: .2s;
    display: none;
}
#loading[data-loading] {
    display: grid;
}

#loading span {
    width: 50px;
    height: 50px;
    aspect-ratio: 1/1;
    border: 5px solid var(--accent1);
    border-top: 5px solid transparent;
    border-radius: 100%;
    animation: rotate 1s infinite ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container {
    animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translate(0, -3%);
        opacity: 0;
    }
    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

#messages {
    position: fixed;
    padding: 10px;
    padding-bottom: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 1;
    pointer-events: none;
}
#messages .msg {
    min-width: 300px;
    height: fit-content;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding: 10px;
    color: var(--main-color);
    fill: var(--main-color);
    background: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    border-radius: 10px;
    animation: fadeInOut var(--timeout, 10s) forwards;
}
#messages svg {
    width: 35px;
    height: 35px;
    aspect-ratio: 1/1;
}

@keyframes fadeInOut {
    0% {opacity: 0;}
    20% {opacity: 1;}
    80% {opacity: 1;}
    100% {opacity: 0;}
}

.input {
    display: grid;
    width: 100%;
}
.input label {
    color: white;
}
.input select,
.input input {
    font-size: 25px;
    background: none;
    border: none;
    border-bottom: 2px solid var(--main-color);
    outline: none;
    color: white;
    outline: 2px dashed transparent;
    outline-offset: 5px;
    padding: 5px 10px;
    transition: .2s;
    width: 100%;
}
.input select {
    cursor: pointer;
}
.input input:hover,
.input input:focus-visible,
.input select:hover,
.input select:focus-visible {
    outline: 2px dashed var(--main-color);
}
.input input:disabled {
    opacity: .3;
    user-select: none;
    cursor: not-allowed;
}
.input input:disabled:hover,
.input input:disabled:focus-visible {
    outline: 2px dashed transparent;
}
.input option {
    background: #111;
    color: var(--main-color);
    border: none;
    outline: none;
}
.input input::-webkit-outer-spin-button,
.input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}
.input input::placeholder {
    color: color-mix(in srgb, var(--main-color), transparent);
}
.input input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: grid;
    place-items: center;
    width: 50px;
    cursor: pointer;
}
.input input[type="checkbox"]::before {
    content: '✔';
    opacity: .1;
}
.input input[type="checkbox"]:checked:before {
    opacity: 1;
}