/* General Styles */
html,
body {
    height: 100vh;
    width: 100%;
    background-color: #dedede;
    color: black;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

header {
    width: 100%;
    height: 100px;
    padding: 10px 0;
    background-color: #c8c8c8;
    position: fixed;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.header-divider {
    width: 100%;
    height: 2px;
    background-color: #7d7d7d;
    position: fixed;
    top: 100px;
    z-index: 9;
}

.link {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#darkModeToggle {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

main {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main .content {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.darkLightText {
    color: #646464;
}

/* Common & Simple Styles */
.orbitron {
    font-family: 'Orbitron', sans-serif;
}

.press-start {
    font-family: 'Press Start 2P', cursive;
}

.hidden {
    display: none;
}

.center {
    align-self: center;
    text-align: center;
    align-items: center;
    vertical-align: middle;
}

.rounded {
    border-radius: 20px;
}

.scrollable {
    overflow-y: auto;
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #7d7d7d;
    margin: 30px 0;
}

/* Dark Mode Styles */
html.dark-mode,
body.dark-mode {
    background-color: #1e1e1e;
    color: white;
}

header.dark-mode {
    background-color: #282828;
    color: white;
}

main .content.dark-mode {
    background-color: #323232;
    color: white;
}

.header-divider.dark-mode {
    background-color: #afafaf;
}

.divider.dark-mode {
    background-color: #afafaf;
}




/* Your Stuff Goes Here */

textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #aaa;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f5f5f5;
    color: #222;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.dark-mode textarea {
    background-color: #2a2a2a;
    color: #eee;
    border-color: #555;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #1565c0;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #0d47a1;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#canvasContainer,
#decodeCanvasContainer {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

canvas {
    border-radius: 6px;
    max-width: 100%;
}

.upload-area {
    position: relative;
    border: 2px dashed #aaa;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background-color: #f0f0f0;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #1565c0;
    background-color: #e3eaf7;
}

.dark-mode .upload-area {
    border-color: #666;
    background-color: #2a2a2a;
    color: #ccc;
}

.dark-mode .upload-area:hover,
.dark-mode .upload-area.drag-over {
    border-color: #90caf9;
    background-color: #1e2a3a;
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#decodedOutput {
    margin-top: 14px;
}

#decodedOutput h6 {
    margin-bottom: 6px;
    font-weight: 500;
}