:root {
    --bg-color: #90EE90;
    /* Light green, adjust to "not too light" */
    --text-color: #000000;
    --pixel-font: 'Press Start 2P', cursive;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--pixel-font);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    transition: background 0.5s ease, background-color 0.5s ease;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

/* Main content container */
.content-box {
    background-color: #f7f1ff;
    /* Soft complementary lavender/cream */
    border: 4px solid #000;
    padding: 40px;
    border-radius: 0;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* For back button positioning */
}

/* Specific styling for Home page (no box needed or transparent) */
.is-home .content-box {
    background-color: transparent;
    border: none;
    box-shadow: none;
}


.icon-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.pixel-icon {
    width: 100px;
    height: 100px;
    padding: 10px;
    background-color: #59c3bd;
    border: 4px solid #000;
    image-rendering: pixelated;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    box-shadow: 4px 4px 0px #000;
}

.pixel-icon:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.pixel-icon:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.pixel-btn {
    background: #fff;
    border: 4px solid #000;
    font-family: var(--pixel-font);
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    text-transform: uppercase;
    margin-top: 20px;
}

.pixel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: translate(2px, 2px);
}

.back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    font-family: var(--pixel-font);
    font-size: 20px;
    cursor: pointer;
    color: #000;
    text-transform: uppercase;
}

.back-btn:hover {
    transform: scale(1.1);
}

.loading-overlay {
    font-size: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pixel-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #000;
    position: relative;
    animation: pixel-spin 0.8s steps(4) infinite;
}

.pixel-spinner::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: #000;
}

@keyframes pixel-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pixel-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

input.pixel-input {
    font-family: var(--pixel-font);
    padding: 10px;
    border: 4px solid #000;
    width: 80%;
    margin-bottom: 20px;
    font-size: 14px;
}

h1,
h2 {
    margin-bottom: 20px;
    line-height: 1.5;
}