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

html, body {
    overflow: hidden;
}

body {
    background: #E61722;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: relative;
}

@media (min-width: 769px) {
    body {
        min-width: 500px;
        min-height: 500px;
    }
}

/* Image container with size constraints */
.image-container {
    position: fixed;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    width: 700px;
    height: 700px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Text box positioned in left corner of image */
.text-box {
    position: absolute;
    top: 50px;
    left: 50px;
    pointer-events: none;
    z-index: 10;
}

/* Text box positioned in top right corner */
.text-box.issue-text {
    top: 50px;
    right: 50px;
    left: auto;
    z-index: 10;
    font-size: 0.5rem;
}

/* Text box positioned in center of image */
.text-box.cryptography-text {
    top: 33%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    right: auto;
    bottom: auto;
    z-index: 5;
}

.frontier-text {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.03em;
}

/* Smaller font size for Issue 1 text */
.text-box.issue-text .frontier-text {
    font-size: 1.6rem;
    font-weight: 500;
    font-style: normal;
}

/* Cryptography text with monospace font */
.text-box.cryptography-text .frontier-text {
    font-family: 'Courier New', Courier, 'Monaco', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 2.8rem;
    letter-spacing: 0;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    text-transform: uppercase;
}

/* Highlight effect for changing letters in cipher */
.text-box.cryptography-text .frontier-text span.cipher-highlight {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    transition: color 0.05s ease, text-shadow 0.05s ease;
}

/* Subscription Container */
.subscription-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    pointer-events: auto;
}

.subscription-container h2 {
    display: none;
}

.subscription-container p {
    display: none;
}

.subscribe-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    padding: 10px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 25px;
    outline: none;
    min-width: 300px;
}

.subscribe-form input[type="email"]:focus {
    border-color: #E61722;
}

.subscribe-form button {
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    white-space: nowrap;
}

.subscribe-form button:hover {
    background: #333;
}

.subscribe-form button:active {
    transform: translateY(1px);
}

.subscribe-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.subscription-message {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 11;
    pointer-events: none;
    white-space: nowrap;
}

.subscription-message.visible {
    opacity: 1;
}

.subscription-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.subscription-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Text adjustments */
    .text-box {
        top: 20px;
        left: 20px;
    }
    
    .frontier-text {
        font-size: 2rem;
    }
    
    .text-box.cryptography-text {
        width: 140px;
    }
    
    .text-box.cryptography-text .frontier-text {
        font-size: 2.4rem;
    }

    .image-container {
        width: 600px;
        height: 600px;
    }
    
    .subscription-container {
        bottom: 40px;
        background: transparent;
        border-radius: 20px;
        padding: 15px;
        width: calc(100% - 30px);
        max-width: 400px;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .subscribe-form input[type="email"] {
        min-width: unset;
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .subscribe-form button {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .subscription-message {
        top: 20px;
        max-width: 90%;
        white-space: normal;
        text-align: center;
        font-size: 0.85rem;
    }
}

/* Small devices - 480px image */
@media (max-width: 480px) {
    .text-box {
        top: 15px;
        left: 15px;
    }
    
    .frontier-text {
        font-size: 1.5rem;
    }
    
    .text-box.cryptography-text {
        width: 120px;
    }
    
    .text-box.cryptography-text .frontier-text {
        font-size: 2rem;
    }

    .image-container {
        width: 500px;
        height: 500px;
    }
    
    /* .subscription-container {
        bottom: 60px;
        padding: 8px 12px;
        width: calc(100% - 20px);
    }
    
    .subscribe-form input[type="email"],
    .subscribe-form button {
        font-size: 0.85rem;
        padding: 9px 12px;
    } */
}
