* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', 'Press Start 2P', monospace;
    line-height: 1.6;
    color: #2d2d2d;
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a9a9a9' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23333333"><path d="M13 4v2.67l-1 1-1-1V4h2zm7 7v2h-2.67l-1-1 1-1H20zM6.67 11l1 1-1 1H4v-2h2.67zM12 16.33l1 1V20h-2v-2.67l1-1zM15 2H9v5.5l3 3 3-3V2zm7 7h-5.5l-3 3 3 3H22V9zM7.5 9H2v6h5.5l3-3-3-3zm4.5 4.5l-3 3V22h6v-5.5l-3-3z"/></svg>'), auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.8s ease-out forwards;
}

header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
}

.logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 20px 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(5px 5px 0 rgba(45,45,45,0.5));
    animation: float 3s ease-in-out infinite;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background-color: #ffffff;
    border: 4px solid #2d2d2d;
    box-shadow: 8px 8px 0 rgba(45,45,45,0.5);
    position: relative;
    image-rendering: pixelated;
}

.description::before {
    content: none;
}

.description p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #2d2d2d;
}

.description h2 {
    font-size: 1.8rem;
    color: #2d2d2d;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    text-shadow: 3px 3px 0 #ffd166;
}

.construction-gif {
    width: 100%;
    text-align: center;
    border: 4px solid #2d2d2d;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(45,45,45,0.5);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.construction-placeholder {
    width: 100%;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.construction {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 0;
    opacity: 1;
}

/* When GIF is loaded, hide the placeholder */
.construction-placeholder.hidden {
    opacity: 0;
}

@media (max-width: 768px) {
    .description p {
        font-size: 1.1rem;
    }
    
    .description h2 {
        font-size: 1.5rem;
    }
    
    .construction {
        max-height: 300px;
    }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes borderAnimation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add a subtle animation to the page on load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add some scanlines for that retro CRT feel */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 100% 4px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.3;
}

.gif-container {
    margin: 30px 0;
    text-align: center;
}

.gif-container img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.links ul {
    list-style-type: none;
}

.links li {
    margin-bottom: 10px;
}

.links a {
    color: #0066cc;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.marquee-container {
    width: 100%;
    background-color: #2d2d2d;
    padding: 8px 0;
    border: 2px solid #ffd166;
}

.marquee-item {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 20px;
    text-shadow: 2px 2px 0 #2d2d2d;
}

.counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.counter-label {
    font-size: 1.2rem;
    color: #2d2d2d;
    margin-bottom: 5px;
}

.counter-number {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    background-color: #000;
    color: #0f0;
    padding: 5px 15px;
    border: 3px solid #2d2d2d;
    border-radius: 4px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #0f0;
}

.best-viewed {
    margin: 10px 0;
}

.best-viewed img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
}

/* Add a blinking cursor effect */
.description p::after {
    content: '|';
    display: inline-block;
    color: #ffd166;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

nav ul li a {
    color: #2d2d2d;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    text-decoration: none;
    padding: 8px 12px;
    border: 2px solid #2d2d2d;
    background-color: #ffffff;
    box-shadow: 4px 4px 0 rgba(45,45,45,0.5);
    transition: all 0.2s ease;
}

nav ul li a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(45,45,45,0.5);
    background-color: #ffd166;
}

nav ul li a.active {
    background-color: #ffd166;
    box-shadow: 2px 2px 0 rgba(45,45,45,0.5);
    transform: translate(2px, 2px);
}

.check-gameplay {
    text-align: center;
    margin: 40px 0;
}

.gameplay-button {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #2d2d2d;
    text-decoration: none;
    background-color: #ffd166;
    border: 3px solid #2d2d2d;
    box-shadow: 5px 5px 0 rgba(45,45,45,0.5);
    transition: all 0.2s ease;
    animation: pulse 2s infinite;
}

.gameplay-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 rgba(45,45,45,0.5);
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.construction-section {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.construction-section h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: #2d2d2d;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #ffd166;
}

/* Image container styles */
.image-container {
    border: 4px solid #2d2d2d;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(45,45,45,0.5);
    margin-bottom: 30px;
    background-color: #2d2d2d;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.feature-image {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .description p {
        font-size: 1.1rem;
    }
    
    .description h2 {
        font-size: 1.5rem;
    }
    
    .construction {
        max-height: 300px;
    }
}

/* Add styles for the mailing list section */
.mailing-list-section {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    background-color: rgba(99, 69, 155, 0.85);
    border: 4px solid #ffd166;
    border-radius: 8px;
    box-shadow: 6px 6px 0 rgba(45, 45, 45, 0.3);
}

.mailing-list-section h2 {
    color: #ffd166;
    margin-bottom: 1rem;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 2px 2px 0px #352a55;
}

.mailing-list-section p {
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

#mailing-list-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

#mailing-list-form input[type="email"] {
    flex-grow: 1;
    padding: 0.5rem;
    border: 3px solid #ffd166;
    background-color: rgba(31, 22, 54, 0.7);
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

#mailing-list-form button {
    padding: 0.5rem 1rem;
    background-color: #ffd166;
    border: none;
    color: #352a55;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    transition: background-color 0.3s;
    border: 3px solid #ffd166;
}

#mailing-list-form button:hover {
    background-color: #ffe75e;
    box-shadow: 2px 2px 0px #352a55;
    transform: translateY(-2px);
}

#mailing-list-form .success {
    color: #4ecca3;
    font-size: 1.2rem;
    padding: 1rem;
    font-family: 'VT323', monospace;
}

@media (max-width: 600px) {
    #mailing-list-form {
        flex-direction: column;
    }
    
    #mailing-list-form input[type="email"] {
        margin-bottom: 0.5rem;
    }
}

/* Add styles for the Google Form container */
.google-form-container {
    width: 100%;
    height: 420px;
    overflow: hidden;
    margin-top: 1rem;
}

.google-form-container iframe {
    width: 100%;
    height: 100%;
    border: 3px solid #ffd166;
    border-radius: 5px;
    background-color: rgba(31, 22, 54, 0.7);
}

.subscribe-button {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    color: #352a55;
    text-decoration: none;
    background-color: #ffd166;
    border: 3px solid #ffd166;
    border-radius: 5px;
    box-shadow: 4px 4px 0 rgba(45, 45, 45, 0.3);
    transition: all 0.2s ease;
    margin-top: 1rem;
    padding: 16px 32px;
}

.subscribe-button:hover {
    background-color: #ffe75e;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(45, 45, 45, 0.3);
}

.blink {
    animation: blink 1s step-end infinite;
}

.cta-container {
    text-align: center;
    margin: 0 auto 40px;
    padding: 10px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}