/* Import Mario-style retro font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background-color: #87CEEB;
    background-image: url('./clouds.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    color: #333;
}


.container {
    max-width: 600px;
    width: 100%;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffe4b5;
    border: 4px solid #8b4513;
    border-radius: 0;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 0 #cd853f;
}

.heading {
    font-size: 14px;
    color: #d10000;
    margin-bottom: 20px;
    text-shadow: 2px 2px #fff200;
    white-space: pre-wrap;
    line-height: 1.6;
    text-align: center;
    word-break: break-word;
 font-family: monospace;
    white-space: pre;
}

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

.nav-link, .nav a {
    text-decoration: none;
    padding: 14px 24px;
    margin: 5px;
    border: 4px solid #000;
    border-radius: 0;
    background-color: #f4a261;
    color: #000;
    font-weight: bold;
    font-family: 'Press Start 2P', cursive;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #bc6c25;
}

.nav a:hover {
    background-color: #ffb703;
    color: #fff;
}

input[type="text"], input[type="file"], input[name="search"] {
    width: 280px;
    padding: 12px;
    border: 4px solid #000;
    background-color: #fefae0;
    color: #000;
    border-radius: 0;
    font-family: 'Press Start 2P', cursive;
    margin-bottom: 20px;
    box-shadow: inset -2px -2px 0 #888;
}

button, input[type="submit"] {
    padding: 14px 22px;
    background-color: #ff0000;
    color: #fff;
    border: 4px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    text-transform: uppercase;
    box-shadow: 0 6px 0 #8b0000;
    transition: all 0.15s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: #ffb703;
    color: #000;
    box-shadow: 0 3px 0 #000;
}

#clipboard {
    background-color: #ff9900;
    border-color: #000;
}

#output {
    margin-top: 20px;
    padding: 10px;
    border: 4px solid #000;
    background-color: #fefae0;
    max-height: 400px;
    overflow-y: auto;
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
}

.message.green { color: green; }
.message.red { color: red; }

#loader {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: #000;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 16px;
    height: 16px;
    margin: 1px;
    border-radius: 50%;
    border: 3px solid #ff0000;
    border-color: #ff0000 transparent #ffcc00 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    background-color: #fefae0;
    color: #000;
    border: 4px solid #000;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #888;
}

th {
    background-color: #ffd700;
    color: #000;
    font-weight: bold;
}

#toggleValues {
    display: block;
    margin-top: 10px;
    padding: 12px;
    border: 4px solid #000;
    background-color: #add8e6;
    color: #000;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 0 4px 0 #888;
}

@media (max-width: 400px) {
    .container {
        max-width: 300px;
    }
    input[type="file"], input[type="text"] {
        width: 220px;
        font-size: 10px;
    }
    .heading {
        font-size: 9px;
    }
    #output {
        max-height: 200px;
    }
}

input[type="number"] {
    width: 100px;
    padding: 12px;
    border: 4px solid #000;
    background-color: #fefae0;
    color: #000;
    border-radius: 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
	
    margin: 20px 0 20px 0;
    box-shadow: inset -2px -2px 0 #888;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

