body {
    font-family: 'Press Start 2P', cursive;
    background-color: #c5d9ff; /* Light purple-blue background */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
}

h1 {
    margin-top: 20px;
    color: #ffffff;
    font-size: 1em; /* Smaller font size for h1 */
    text-align: center;
}

.container {
    background-color: #92b4f4; /* Light blue container color */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures children like the banner don't stick out */
}

.banner {
    width: 100%;
    margin-bottom: 20px;
}

.overlay-container {
    margin-top: 20px;
}

.toggle-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.toggle-input {
    display: none;
}

.toggle {
    position: relative;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle:before {
    content: '';
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-input:checked + .toggle {
    background-color: #66bb6a;
}

.toggle-input:checked + .toggle:before {
    transform: translateX(25px);
}

.toggle-label {
    margin: 0 10px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

input, select {
    font-family: 'Press Start 2P', cursive;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    background-color: #ffffff; /* White background for inputs and select */
    color: #1e69d2; /* Matching blue font color */
    box-sizing: border-box;
    font-size: 1em;
}

input.mini-id-input {
    width: auto;
}

select.overlay-select {
    width: auto;
}

input::placeholder {
    color: #1e69d2; /* Matching blue placeholder color */
}

button {
    font-family: 'Press Start 2P', cursive;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 25px; /* Rounded button */
    border: none;
    outline: none;
    background-color: #ffffff; /* White background for button */
    color: #1e69d2; /* Matching blue font color */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1em;
    width: auto; /* Ensure button does not fill container width */
}

button:hover {
    background-color: #1e69d2; /* Blue background on hover */
    color: #ffffff; /* White text on hover */
    transform: scale(1.05);
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#preview {
    position: relative;
    width: 100%;
    max-width: 500px; /* Larger preview size on desktop */
    height: 500px; /* Ensure it is square on desktop */
    border: 2px solid #ffffff;
    margin: 20px auto; /* Center the preview horizontally */
    overflow: hidden;
    border-radius: 10px;
}

#preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it is on top of other elements */
}

.loading-gif {
    width: 270px;
    height: 270px;
}

@media (max-width: 600px) {
    .navigation-buttons {
        flex-direction: column;
    }
    
    .overlay-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .navigation-buttons button,
    .navigation-buttons select {
        width: 100%;
        margin: 5px 0;
    }
    
    #preview {
        max-width: 300px; /* Smaller preview size on mobile */
        height: 300px; /* Ensure it is square on mobile */
    }
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-switch label {
    cursor: pointer;
    background-color: #ddd;
    border: 1px solid #ccc;
    padding: 10px 20px;
    margin: 0;
}

.toggle-switch input[type="radio"]:checked + label {
    background-color: #1e69d2;
    color: white;
}

.overlay-select-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.overlay-arrow {
    background-color: #ffffff;
    border: none;
    color: #1e69d2;
    font-family: 'Press Start 2P', cursive;
    font-size: 1em;
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    flex: 1;
    margin: 0 10px;
    text-align: center;
}

.overlay-arrow:hover {
    background-color: #1e69d2;
    color: #ffffff;
    transform: scale(1.05);
}

.overlay-select {
    flex: 3;
    width: auto;
    text-align: center;
}