@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=IBM+Plex+Mono:wght@400&display=swap');

/* General Styles */
body {
    font-family: Arial, sans-serif;
    text-align: left;
    margin: 0;
    background: #ffffff;
    color: rgb(0, 0, 0);
}

h1 {
    font-family: 'Press Start 2P', monospace, system-ui;
    font-size: 1.8rem;
    margin: 2rem 0;
    line-height: 1.4;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Card styles */
.card {
    background-color: white;
    border: 4px solid #3f1d38;
    box-shadow: 4px 4px 0px 0px #3f1d38;
    margin-bottom: 2rem;
    overflow: hidden;
    image-rendering: pixelated;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.card-content {
    padding: 1.5rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.color-input-group {
    display: flex;
    align-items: center;
}

.color-picker {
    width: 3rem;
    height: 2.5rem;
    padding: 0.25rem;
    margin-right: 0.5rem;
}

.color-text {
    flex: 1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Pixel Button styles */
.pixel-button {
    display: inline-block;
    position: relative;
    font-family: 'Press Start 2P', monospace, system-ui;
    text-align: center;
    cursor: pointer;
    user-select: none;
    image-rendering: pixelated;
    transition: transform 0.1s;
}

.pixel-button:active {
    transform: translateY(2px);
}

.pixel-button-body {
    position: relative;
    padding: 0.75rem 2rem;
    border: 4px solid #3f1d38;
    box-shadow: 4px 4px 0px 0px #3f1d38;
    background-color: #4ade80;
    transition: all 0.1s;
}

.pixel-button:active .pixel-button-body {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.pixel-highlight-1 {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 0;
    left: 0;
    background-color: white;
    opacity: 0.5;
}

.pixel-highlight-2 {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 0;
    left: 8px;
    background-color: white;
    opacity: 0.3;
}

.pixel-highlight-3 {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 8px;
    left: 0;
    background-color: white;
    opacity: 0.3;
}

.pixel-button-text {
    position: relative;
    z-index: 10;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: #3f1d38;
}

/* Toast styles */
.pixel-toast-container {
    position: relative;
    z-index: 50;
    max-width: 24rem;
    width: auto;
    margin: 2rem auto;
    transition: all 0.3s;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.pixel-toast-container.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pixel-toast {
    position: relative;
    padding: 1rem;
    border: 4px solid #3f1d38;
    box-shadow: 4px 4px 0px 0px #3f1d38;
    background-color: white;
    image-rendering: pixelated;
    margin: 0 auto;
}

.pixel-toast-message {
    margin-bottom: 1rem;
    font-family: 'Press Start 2P', monospace, system-ui;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #3f1d38;
}

.pixel-toast-actions {
    display: flex;
    justify-content: flex-end;
}

/* Button container styles */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 32rem;
}

/* Button Styles */
button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #45a049;
}

p {
    display: block;
    color: black;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.5;
    letter-spacing: 0.3px;
    margin: 1.5rem 0;
}

/* Globe Container Styles */
#globe-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#globe-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Container Styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Image Styles */
.info-image, .mine-image, .recycling-image, #memoryContent img {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    height: auto;
    display: block;
    margin: 2rem auto;
    object-fit: contain;
    border: 4px solid #3f1d38;
    box-shadow: 4px 4px 0px 0px #3f1d38;
    image-rendering: pixelated;
}

.mine-image {
    border-radius: 8px;
    margin: 20px 0;
}

.info-text {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 20px 0;
}

.mine-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px 0;
}

.mine-button:hover {
    background: #45a049;
}

.sloth-area {
    width: 100%;
    height: 200px;
    border: 4px solid #3f1d38;
    box-shadow: 4px 4px 0px 0px #3f1d38;
    margin: 2rem auto;
    display: none;
    background-color: white;
    image-rendering: pixelated;
}

/* Toast Notification */
#toast {
    display: none;
    position: relative;
    margin: 20px auto;
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
    max-width: 600px;
}

#toast p {
    color: white;
    margin: 0 0 10px 0;
}

#toast button {
    margin-top: 10px;
    background-color: #ffcc00;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
}

#toast button:hover {
    background-color: #ffd700;
}

#btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
#btn:hover {
    background-color: #45a049;
}

/* Responsive styles */
@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
}

.hidden-content {
    display: none;
}

.computer-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Prototype Banner */
.prototype-banner {
    background-color: #f59e0b;
    color: #3f1d38;
    text-align: center;
    padding: 10px;
    font-family: 'Press Start 2P', monospace, system-ui;
    font-size: 0.8rem;
    border-bottom: 4px solid #3f1d38;
    box-shadow: 0 4px 0px 0px #3f1d38;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.prototype-banner p {
    margin: 0;
    color: #3f1d38;
    font-family: 'Press Start 2P', monospace, system-ui;
    font-size: 0.8rem;
}
