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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000000;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo {
    max-height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

.main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.game-capsule {
    text-align: center;
}

.capsule-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.capsule-image:hover {
    transform: scale(1.05);
}

.game-info {
    background: #1e3c72;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.game-title {
    font-size: 2.5rem;
    color: #FF8C00;
    margin-bottom: 20px;
    text-align: center;
}

.game-description {
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.8;
    color: #ffffff;
}

.screenshots-section {
    background: #1e3c72;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.screenshots-section h3 {
    font-size: 2rem;
    color: #FF8C00;
    margin-bottom: 25px;
    text-align: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.newsletter-section {
    background: #1e3c72;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    text-align: center;
}

.newsletter-section h3 {
    font-size: 2rem;
    color: #FF8C00;
    margin-bottom: 15px;
}

.newsletter-section p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 25px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #2a5298;
}

.subscribe-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-footer {
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.substack-iframe {
    max-width: 100%;
    border: 2px solid #FF8C00 !important;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
    background: #ffffff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.substack-iframe:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.4);
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    text-decoration: none;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-button:active {
    transform: scale(0.95);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main {
        gap: 20px;
    }
    
    .game-info, .screenshots-section, .newsletter-section {
        padding: 15px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .screenshots-section h3, .newsletter-section h3 {
        font-size: 1.5rem;
    }
    
    .game-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .newsletter-section p {
        font-size: 1rem;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-content {
        padding: 10px;
    }
    
    .close-button {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
        padding: 10px;
    }
    
    #modal-image {
        max-height: 80vh;
    }
    
    .substack-iframe {
        width: 100% !important;
        height: 280px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .main {
        gap: 15px;
    }
    
    .game-info, .screenshots-section, .newsletter-section {
        padding: 12px;
    }
    
    .game-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .screenshots-section h3, .newsletter-section h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .game-description, .newsletter-section p {
        font-size: 0.9rem;
    }
    
    .substack-iframe {
        height: 250px !important;
    }
}

/* Cookie Consent Banner Styles */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #FF8C00;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent:not(.hidden) {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-text h4 {
    color: #FF8C00;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cookie-text p {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.accept-btn {
    background: #FF8C00;
    color: white;
}

.accept-btn:hover {
    background: #ff9d1a;
    transform: translateY(-1px);
}

.reject-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.reject-btn:hover {
    background: #ffffff;
    color: #1e3c72;
}

.customize-btn {
    background: transparent;
    color: #FF8C00;
    border: 1px solid #FF8C00;
}

.customize-btn:hover {
    background: #FF8C00;
    color: white;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: #1e3c72;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
}

.cookie-modal-header h3 {
    color: #FF8C00;
    margin: 0;
}

.cookie-close {
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-close:hover {
    color: #FF8C00;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 20px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cookie-category-header input[type="checkbox"] {
    transform: scale(1.2);
}

.cookie-category-header label {
    color: #ffffff;
    font-size: 1rem;
}

.cookie-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    margin-left: 30px;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 140, 0, 0.3);
    text-align: center;
}

.hidden {
    display: none;
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .cookie-text h4 {
        font-size: 1.1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

@media (min-width: 768px) {
    .main {
        grid-template-columns: 1fr;
        align-items: start;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-group {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .header h1 {
        font-size: 4rem;
    }
    
    .game-title {
        font-size: 3rem;
    }
    
    .container {
        padding: 40px;
    }
}