@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=VT323&display=swap');

html {
    user-select: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #141024;
    height: 100vh;
    color: #FFD04D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'VT323', sans-serif;
}

h1 {
    margin: 8px;
    padding: 0;
    font-size: 24px;
    font-weight: lighter;
}

.main-container {
    margin-top: auto;
    width: 450px;
    height: 600px;
    background-color: #B71C1C;
    border: 1px solid #FFD04D;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px 10px rgba(0, 0, 0, 0.25), 0 -4px 10px 5px rgba(0, 0, 0, .25) inset, 0 4px 10px 2px rgba(255, 255, 255, .25) inset;
}

#grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    width: 375px;
    height: 375px;
    border-radius: 8px;
    background-color: #D9D9D9;
    box-shadow: 0 5px 8px 3px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
}

#grid::after {
    content: "";
    box-shadow: 0 3px 5px 5px rgba(0, 0, 0, .25) inset;
    position: absolute;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

.menu-container {
    display: flex;
    width: 375px;
    justify-content: space-between;
    align-items: center;
}

.menu-middle-container {
    display: flex;
    width: 45%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#rgb-btn, #clear-btn {
    border: none;
    border-radius: 50%;
    width: 75px;
    aspect-ratio: 1;
    font-family: 'VT323', sans-serif;
    font-size: 24px;
    background-color: #D9D9D9;
    box-shadow: 0 4px 2px 0 rgba(0, 0, 0, 0.25), 0 -2px 2px 5px rgba(0, 0, 0, .25) inset;
}

#rgb-btn:active, #clear-btn:active {
    box-shadow: 0 4px 2px 0 rgba(0, 0, 0, 0.25), 0 1px 2px 5px rgba(0, 0, 0, .25) inset;
}

#clear-btn, #darkening-btn {
    color: #464646;
}

.red {
    color: red;
}

.green {
    color: green;
}

.blue {
    color: blue;
}

#darkening-btn {
    border: none;
    padding: 4px 8px;
    border-radius: 8px;
    font-family: 'VT323', sans-serif;
    font-size: 20px;
    box-shadow: 0 4px 2px 0 rgba(0, 0, 0, 0.25), 0 -2px 1px 4px rgba(0, 0, 0, .25) inset;
}

#darkening-btn:active {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25), 0 2px 1px 4px rgba(0, 0, 0, .25) inset;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 85%;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #D9D9D9;
    height: 6px;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: #D9D9D9;
    margin-top: -7px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    box-shadow: 0 3px 3px 2px rgba(0, 0, 0, 0.25), 0 -1px 1px 1px rgba(0, 0, 0, 0.25) inset;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 50px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 5px;
    border: 2px solid #FFD04D;
}

.gradient-shadow {
    position: relative;
    transform-style: preserve-3d;
}

.gradient-shadow::before {
    content: "";
    position: absolute;
    inset: -5px;
    transform: translate3d(0px, 0px, -1px);
    background: rgb(255,0,158);
    background: linear-gradient(135deg, rgba(255,0,158,1) 0%, rgba(255,224,0,1) 50%, rgba(0,230,255,1) 100%);
    filter: blur(20px);
}

#copyright {
    margin-top: auto;
    padding-bottom: 24px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#copyright a {
    color: #FFD04D;
}

.github-link {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.github-link svg {
    width: 1.5rem;
}