@font-face {
    font-family: 'Minecart LCD';
    src: url('assets/Minecart LCD.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
    font-family: 'Arial', sans-serif;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 2000;
}

.top-left { top: 40px; left: 40px; }
.top-right { top: 40px; right: 40px; }
.bottom-left { bottom: 40px; left: 40px; }
.bottom-right { bottom: 40px; right: 40px; }

/* Hero Section */
.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.center-content {
    position: relative;
    margin-bottom: 60px;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: float 4s ease-in-out infinite;
}

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

.hero-text-img {
    max-width: 600px;
    width: 80vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

.sub-text-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    padding: 0 80px;
    box-sizing: border-box;
}

.side-text {
    font-family: 'Martian Mono', monospace;
    font-weight: 400; /* Regular */
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-text.right {
    font-weight: 800; /* Extra Bold */
}

/* Pixelated CTA Button */
.pixel-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Minecart LCD', 'Silkscreen', monospace;
    font-size: 1.8rem; /* Smaller text */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Slightly reduced gap */
    transition: transform 0.2s ease;
}

.pixel-btn:hover {
    transform: translateY(2px);
    color: #000;
}

.arrow-down {
    animation: bounce 2s infinite;
    display: flex; /* Ensure centering */
}

.arrow-down img {
    width: 20px; /* Smaller arrow */
    height: auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 50px;
}

.modal-content {
    background-color: transparent;
    margin: 0 auto;
    width: 90%;
    max-width: 750px;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Info Box */
.info-box {
    background-color: #e0e0e0;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    margin-bottom: 25px;
    font-family: 'Martian Mono', monospace; /* Updated font */
    font-weight: 400; /* Regular weight */
    color: #3E3E3E; /* Updated text color */
}

.info-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.2rem;
}

.info-box p {
    margin: 2px 0; /* Reduce space between paragraphs */
}

.info-title {
    font-weight: 400; /* Regular */
    margin-bottom: 5px; /* Reduced margin */
    font-size: 1rem;
}

.info-sub {
    margin-top: 15px; /* Increased separation */
    font-size: 0.9rem;
    line-height: 1.1; /* Very tight line height */
}

.box-decoration {
    position: absolute;
    bottom: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: #3E3E3E; /* Updated color */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.helper-text {
    font-size: 0.8rem;
    color: #3E3E3E; /* Updated color */
}

.form-group input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    background-color: #e0e0e0;
    border: 1px solid #888;
    color: #3E3E3E; /* Updated color */
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
    background-color: #d0d0d0;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Courier New', Courier, monospace;
    margin-top: 20px;
    transition: background-color 0.2s;
    letter-spacing: 2px;
}

.submit-btn:hover {
    background-color: #333;
}

/* Footer */
.modal-footer {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 20px;
    font-size: 0.9rem;
    color: #3E3E3E; /* Updated color */
    font-family: 'Martian Mono', monospace; 
    font-weight: 400; 
}

.modal-footer p {
    margin: 5px 0;
    line-height: 1.4;
}

/* Status Overlay */
.status-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #e0e0e0;
    border: 1px solid #000;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 40px 20px;
    box-sizing: border-box;
    margin-top: -20px;
    font-family: 'Courier New', Courier, monospace;
}

.status-container h3 {
    color: #000;
    font-size: 1.5rem;
    margin: 20px 0;
    text-transform: none;
}

.success-msg {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #000;
}

.success-msg-bold {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #000;
}

.success-logo {
    width: 100px;
    height: auto;
    margin-top: 10px;
}

.success-decoration {
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

.success-icon-container svg circle,
.success-icon-container svg path {
    stroke: #666;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .corner-decoration {
        display: none;
    }

    .modal-content {
        width: 85%;
        padding: 0;
        margin-bottom: 100px;
    }

    .modal {
        padding-top: 40px;
        padding-bottom: 0;
    }

    .side-text {
        font-size: 1.5rem;
    }
    
    .pixel-btn {
        font-size: 2rem;
    }

    /* Scale down form elements */
    .info-box {
        padding: 8px 6px;
        font-size: 0.65rem;
        margin-bottom: 15px;
    }
    
    .info-title {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .info-sub {
        margin-top: 8px;
        font-size: 0.6rem;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 0.6rem;
        margin-bottom: 3px;
        letter-spacing: 0.5px;
    }

    .form-group input {
        padding: 5px 6px;
        font-size: 0.75rem;
        height: 30px;
    }
    
    .form-group input[type="file"] {
        height: auto; 
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .helper-text {
        font-size: 0.55rem;
    }

    .submit-btn {
        padding: 8px;
        font-size: 0.8rem;
        margin-top: 10px;
    }

    .modal-footer {
        font-size: 0.65rem;
        margin-top: 15px;
    }

    .box-decoration {
        display: none;
    }
}