/* Estilo da página de cores com identidade verde Kick + roxo Twitch */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font: 14px Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(145, 70, 255, 0.16), transparent 30%), radial-gradient(circle at top right, rgba(83, 252, 24, 0.16), transparent 28%), #0b0d12;
    color: #e7ecf5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#colorcodes {
    width: 1100px;
    margin: 0 auto;
    flex: 1;
}

#main {
    float: left;
    width: 730px;
    margin-left: 30px;
    color: #cbd2e4;
}

#sidebar {
    float: right;
    width: 340px;
}

h2 {
    color: #9146ff;
    font-size: 28px;
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(145, 70, 255, 0.24);
}

#insertcolor {
    background: linear-gradient(180deg, rgba(145, 70, 255, 0.16) 0%, rgba(23, 27, 36, 0.96) 100%);
    width: 625px;
    font-size: 20px;
    text-align: right;
    padding: 5px;
    margin: 5px 0;
    box-sizing: border-box;
    color: #ffffff;
    border: 1px solid rgba(145, 70, 255, 0.45);
}

#insertcolor input#startcolor {
    font-size: 16px;
    width: 90px;
    background-color: #252b39;
    color: #ffffff;
    border: 1px solid rgba(145, 70, 255, 0.45);
    box-sizing: border-box;
}

#insertcolor button#newcolor,
#insertcolor button#saveColor {
    font-size: 16px;
    padding: 2px 6px;
    margin-left: 5px;
    cursor: pointer;
}

#container {
    background: linear-gradient(180deg, rgba(145, 70, 255, 0.16) 0%, rgba(23, 27, 36, 0.96) 100%);
    height: 380px;
    width: 625px;
    position: relative;
    border: 1px solid rgba(145, 70, 255, 0.45);
}

#colorSquare {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 360px;
    height: 360px;
    cursor: crosshair;
}

#hueBar {
    position: absolute;
    top: 4px;
    left: 375px;
    width: 30px;
    height: 360px;
    cursor: crosshair;
}

.yui-picker-swatch {
    position: absolute;
    left: 415px;
    top: 10px;
    height: 155px;
    width: 195px;
    border: 2px solid rgba(145, 70, 255, 0.45);
    background: #10141d;
}

.yui-picker-controls {
    position: absolute;
    top: 180px;
    left: 415px;
    font: 1.6em monospace;
    color: #e7ecf5;
}

.yui-picker-controls ul {
    float: left;
    padding: 0 2px 0 0;
    margin: 0;
}

.yui-picker-controls li {
    padding: 2px;
    list-style: none;
    margin: 0;
}

.yui-picker-controls input {
    font-size: 20px;
    width: 2.4em;
    box-sizing: border-box;
    background-color: #252b39;
    color: #ffffff;
    border: 1px solid rgba(145, 70, 255, 0.45);
}

.yui-picker-hex-summary {
    display: none;
}

#yui-picker-hex-controls {
    clear: both;
    padding: 20px 0 0 0;
    font: 2em monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hex-display {
    display: flex;
    align-items: center;
    border: 1px solid rgba(145, 70, 255, 0.45);
    background-color: #171b24;
    padding: 0 6px;
    height: 48px;
    margin-right: 10px;
}

#hex-prefix {
    font-size: 40px;
    color: #ffffff;
    margin-right: 4px;
    line-height: 1;
}

.hex-display input#yui-picker-hex {
    background-color: transparent;
    border: none;
    outline: none;
    font: 40px monospace;
    color: #ffffff;
    width: 160px;
    padding: 0;
    margin: 0;
}

#yui-picker-hex-controls input {
    width: 160px;
    font: 40px monospace;
    margin-left: -20px;
    box-sizing: border-box;
    background-color: #252b39;
    color: #ffffff;
    border: 1px solid rgba(145, 70, 255, 0.45);
}

#copyColor {
    margin-left: 0;
    font-size: 16px;
    height: 48px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper {
    height: 90px;
    display: none;
    margin-top: 10px;
}

.wrapper .holder {
    width: 68px;
    height: auto;
    float: left;
    margin-right: 1px;
    cursor: pointer;
    position: relative;
}

.wrapper .holder .color-swatch {
    width: 38px;
    height: 38px;
    margin: 10px 15px 2px 15px;
    border: 1px solid rgba(145, 70, 255, 0.45);
}

.wrapper .holder .color-code {
    width: 68px;
    text-align: center;
    font-size: 14px;
    color: #e7ecf5;
    margin-top: 2px;
}

button {
    cursor: pointer;
    background: linear-gradient(135deg, #9146ff 0%, #6f2ee8 100%);
    color: #ffffff;
    border: 1px solid rgba(145, 70, 255, 0.45);
    padding: 2px 6px;
}

button:hover {
    filter: brightness(1.08);
}

/* Barra de retorno e rodapé da página de cores */
.back-bar {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding: 16px 20px 10px;
    clear: both;
}

.button-back {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #9146ff 0%, #6f2ee8 100%);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.button-back:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

#footer {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    padding: 15px 20px;
    text-align: center;
    background: linear-gradient(90deg,
        rgba(145, 70, 255, 0.18) 0%,
        rgba(132, 75, 228, 0.18) 34%,
        rgba(110, 98, 148, 0.17) 47%,
        rgba(97, 124, 98, 0.17) 53%,
        rgba(83, 252, 24, 0.18) 66%,
        rgba(83, 252, 24, 0.18) 100%),
        rgba(23, 27, 36, 0.94);
    border-top: 2px solid #9146ff;
    color: #ffffff;
    clear: both;
}

#footer p {
    margin: 0;
}

#footer a {
    color: #53fc18;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1120px) {
    #colorcodes {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    #main {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    #sidebar {
        display: none;
    }
}
