@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap'); 

:root {
    --background-color: #04121f;
    --main-color: #e3eeee;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
    scroll-behavior: smooth;
    text-align: center;
    font-family: "DM Sans";
    -webkit-tap-highlight-color: transparent;
}

body {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(56, 189, 248, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.3) 0%, transparent 70%),
        radial-gradient(ellipse at 60% 20%, rgba(236, 72, 153, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(34, 197, 94, 0.2) 0%, transparent 65%);
        background-color: var(--background-color);
        min-height: 95vh;
        overflow-y: auto;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    margin-top: 10%;
}
header span.material-symbols-rounded {
    font-size: 2.5em;
}
header h1 {
    font-size: 2.9em;
}
header h1, span.material-symbols-rounded {
    color: var(--main-color);
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3% auto 2% auto;
    background: rgba(255, 255, 255, 0.23);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 4px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 30vw;
    height: 4vh;
    padding: 1em;
}
.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}
.input-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
}
.input-container input {
    background-color: transparent;
    border: none;
    color: var(--main-color);
    font-size: 1.4em;
    width: 85%;
    margin-left: 24px;
    font-weight: 300;
}
.input-container input::placeholder {
    color: #e9e9e96d;
}
.input-container input:focus {
    outline: 0;
}
.input-container span.copy-icon {
    cursor: pointer;
    transition: all 0.1s ease-in;
}
.input-container span.copy-icon:hover {
    color: #fff;
}
.input-container span.copy-icon:active {
    scale: 0.95;
    transform: rotate(2deg);
}
span.copied-msg {
    position: absolute;
    top: 37%;
    left: 62%;
    transform: translateX(-50%) translateY(0);
    font-size: 1.6rem;
    padding: 0.2rem 0.6rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
}
.copied-msg.show {
    animation: copiedPop 1.2s ease forwards;
}

.options {
    display: grid;
    grid-template-columns: max-content 1fr max-content 1fr;
    align-items: center;
    gap: 1rem 4rem;
    margin: 9% 10% 0 10%;
    color: var(--main-color);
}
.options input {
    width: 90%;
    accent-color: var(--background-color);
    transition: all 0.2s ease;
    cursor: pointer;
}
.options input:active {
    accent-color: #070b2c;
}
.options input[type=checkbox] {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    margin: 0 auto;
}
.options input[type="range"] {
    width: 100%;
    max-width: 800px;
}
.range-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-start;
    width: 100%;
}
.range-cell output {
    min-width: 2.4ch;
    text-align: right;
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 800;
}
.options label {
    font-size: 1.4em;
    opacity: 1;
    font-weight: 500;
}
.disabled {
    opacity: 0.2;
    color: #ffffff09;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

span.random {
    color: #0b1f5b;
    padding: 20px 40px;
    font-size: 3em;
    margin: 3% auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255,   0.5),
        inset 0 -1px 0 rgba(255, 255, 255,  0.1),
        inset 0 0 34px 17px rgba(255, 255, 255, 1.7);
    transition: all 0.14s ease-in-out;
    cursor: pointer;
    user-select: none;
}
span.random:active {
    transform: rotate(5deg);
    scale: 0.9;
}

footer {
    font-size: 1em;
    margin: 5% 0;
    opacity: 0.5;
    color: var(--background-color);
}
footer a {
    color: #076d16;
    text-decoration: none;
}

@media screen and (max-width: 1250px) {

    header {
        justify-content: center;
    }
    header h1 {
        font-size: 1.3em;
    }
    header span.material-symbols-rounded {
        font-size: 1.8em;
    }

    .input-container {
        margin: 20% auto;
        width: 95%;
        height: max-content;
    }
    .input-container input {
        font-size: 1.3em;
    }
    span.copied-msg {
        top: 15%;
        left: 85%;
        font-size: 1em;
    }
    .options {
        grid-template-columns: 1fr;
        margin: 3% 10px;
        gap: 0.8em;
        font-size: 0.7em;
    }
    .options input {
        width: 90%;
    }
    span.random {
        margin: 20% auto;
        color: #03153c;
    }
    footer {
        margin: 4% auto;
    }
}

@keyframes copiedPop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.8);
        filter: blur(3px);
    }
    15% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px) scale(1);
        filter: blur(0);
    }
    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
        filter: blur(4px);
    }
}