:root {
    --bg-color: #f5f5f5;
    --text-color: #222;
    --info-color: #444;
    --border-color: #333;
    --button-bg: #ffffff;
    --button-text: #222;
}

html.dark body {
    --bg-color: #121212;
    --text-color: #eeeeee;
    --info-color: #cccccc;
    --border-color: #555;
    --button-bg: #1e1e1e;
    --button-text: #eeeeee;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

h1 {
    margin-bottom: 10px;
}

#schemeInfo, #complementInfo, #inputInfo {
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--info-color);
    text-align: center;
    max-width: 600px;
}

.palette {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-box {
    border: 2px solid var(--border-color);
    margin-bottom: 8px;
}

.color-code {
    font-weight: bold;
}

button {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
    width: 260px;
    background-color: var(--button-bg);
    color: var(--button-text);
    transition: background-color 0.3s, color 0.3s;
}

#modeBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    padding: 10px 18px;
    font-size: 14px;
    z-index: 1000;
}

/* index.html specific */
.main .color-box {
    width: 200px;
    height: 200px;
}

.sub .color-box {
    width: 140px;
    height: 140px;
}


/* complement.html specific */
#complement-palette .color-box {
    width: 200px;
    height: 200px;
}
#complement-palette {
    gap: 40px;
}

/* input.html specific */
#input-palette .color-box {
    width: 180px;
    height: 180px;
}
#input-palette {
    gap: 40px;
    margin: 20px 0;
}

input {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

#error {
    color: red;
    margin-top: 10px;
    white-space: pre-line;
}
