@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1a1a2e;
    color: #f5f5f5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 20px 0;
}

/* Hero Banner Section */
.hero-banner {
    height: 100vh;
    max-height: 1080px;
    width: 100%;
    background-image: url('../images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #1a1a2e, transparent);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    right: 20%;
    width: 30px;
    height: 50px;
    border: 2px solid #fca311;
    border-radius: 15px;
    z-index: 10;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.1);
}

.scroll-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #fca311;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(25px);
        opacity: 0;
    }
}

/* Main Content Section */
.main-content {
    flex: 1;
}

.main-block {
    background-color: #f8f0dd; /* Color crema claro */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    max-width: 900px;
}

.content-block {
    margin-bottom: 40px;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* Character and Game Info */
.game-info-container {
    display: flex;
    margin-bottom: 30px;
    background-image: url('../images/description-bg.png');
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
}

.character-container {
    flex: 0 0 30%;
    padding-right: 20px;
}

.character-container img {
    width: 100%;
    max-width: 250px;
}

.info-right-column {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-content: end;
}

.game-leyend {
    margin-bottom: 20px;
}

.game-leyend p {
    color: #8B4513;
    font-size: 2rem;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
    text-transform: none;
    letter-spacing: 1px;
    font-family: 'Satisfy', cursive;
}

.game-description {
    margin-left: 50px;
    margin-right: 50px;
    margin-bottom: 20px;
}

.game-description p {
    color: #a25118;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

/* Platform Buttons */
.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.button-container:hover {
    transform: translateY(-5px);
}

.button-container img {
    width: 60px;
    height: 60px;
}

.button-container span.button-label {
    color: #8B4513;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Gameplay Section */
.gameplay-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 20px;
    background-color: rgba(139, 69, 19, 0.05);
}

.gameplay-left, .gameplay-right {
    flex: 0 0 25%;
}

.gameplay-center {
    flex: 0 0 45%;
    padding: 0 15px;
}

.gameplay-left img, .gameplay-right img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Gameplay Mechanics */
.gameplay-mechanics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mechanic-text {
    color: #a25118;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.mechanic-image {
    width: 100%;
    max-width: 173px; /* Reduced by additional 20% from 216px */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Wordtris Logo Section */
.wordtris-logo-section {
    text-align: center;
    padding: 40px 0;
}

/* Logo Block */
.logo-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordtris-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.wordtris-logo img {
    max-width: 250px;
    margin-bottom: 10px;
}

/* Platform Details */
.platform-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-right: 80px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.detail-label {
    color: #8B4513;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-row img {
    width: 60px;
    height: 60px;
}

/* Screenshots Section */
.screenshots-section {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.screenshots-slider-container {
    position: relative;
    width: 80%;
    overflow: hidden;
    padding: 0 10px;
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 20px;
    background-color: rgba(139, 69, 19, 0.05);
    margin: 0 auto;
}

/* Fading side bars */
.screenshots-slider-container::before,
.screenshots-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%;
    z-index: 5;
    pointer-events: none;
}

.screenshots-slider-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 240, 221, 1), rgba(248, 240, 221, 0));
}

.screenshots-slider-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 240, 221, 1), rgba(248, 240, 221, 0));
}

.screenshots-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 0;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
    position: relative;
}

.screenshots-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.screenshot-item {
    flex: 0 0 auto;
    width: 80%;
    max-width: 200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    scroll-snap-align: center;
    height: 400px; /* Restored height to match gameplay section */
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-item img {
    width: 100%;
    max-height: calc(100% - 40px); /* 20px padding top and bottom */
    display: block;
    border-radius: 15px;
    object-fit: contain; /* Show full image with proper aspect ratio */
}

/* Caption styles removed as requested */

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 5px;
}

.slider-prev, .slider-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 120px;
}

.footer-links, .footer-social {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a, .footer-social a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-social a:hover {
    color: #fca311;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .game-info-container {
        flex-direction: column;
    }
    
    .character-container {
        margin-bottom: 20px;
        padding-right: 0;
        text-align: center;
    }
    
    .info-right-column {
        width: 100%;
    }
    
    .platform-buttons {
        flex-wrap: wrap;
    }
    
    .gameplay-section {
        flex-direction: column;
    }
    
    .gameplay-left, .gameplay-center, .gameplay-right {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .screenshots-grid {
        flex-direction: column;
    }
    
    .center-screenshot {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 50vh;
    }
    
    .main-block {
        padding: 15px;
    }
    
    .button-container img {
        width: 50px;
        height: 50px;
    }
    
    .wordtris-logo img {
        max-width: 200px;
    }
}

/* Stores Block */
.stores-block {
    margin-top: 30px;
    background-image: url('../images/stores-bg.png');
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 300px;
    display: flex;
    align-items: center;
}

.stores-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.store-logo {
    transition: transform 0.3s ease;
}

.store-logo:hover {
    transform: translateY(-5px);
}

.store-link {
    display: block;
}

.store-logo img {
    max-width: 180px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .stores-block {
        height: auto;
        min-height: 375px;
        padding: 30px 15px;
    }
    
    .stores-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .store-logo img {
        max-width: 150px;
    }
}

/* Store Popup Styles */
.store-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.store-popup {
    background-color: #f8f0dd;
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    position: relative;
    display: flex;
    gap: 30px;
}

.popup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-title {
    color: #8B4513;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.popup-text {
    color: #8B4513;
    font-size: 1.2rem;
    line-height: 1.6;
}

.popup-character {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
}

.popup-character img {
    width: 250px;
    height: 250px;
    object-fit: contain;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #8B4513;
    border: none;
    border-radius: 50%;
    color: #f8f0dd;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.popup-close:hover {
    background-color: #6b3410;
}

@media (max-width: 768px) {
    .store-popup {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .popup-character {
        order: -1;
    }

    .popup-character img {
        width: 200px;
        height: 200px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-text {
        font-size: 1.1rem;
    }
    
    .language-selector {
        top: 20px;
        right: 20px;
    }
}
/* Language Selector */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20%;
    width: 50px;
    z-index: 100;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.selected-lang {
    background-color: rgba(252, 163, 17, 0.2);
    border: 1px solid #fca311;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    color: #fca311;
}

.selected-lang:hover {
    background-color: rgba(252, 163, 17, 0.3);
    transform: translateY(-2px);
}

.lang-options {
    display: none;
    background-color: #1a1a2e;
    border: 1px solid rgba(252, 163, 17, 0.3);
    border-top: none;
    border-radius: 0 0 4px 4px;
    margin-top: -1px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.language-selector.active .lang-options {
    display: block;
}

.lang-option {
    padding: 8px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    color: #f5f5f5;
}

.lang-option:hover {
    background-color: rgba(252, 163, 17, 0.2);
    color: #fca311;
}

@media (max-width: 768px) {
    .store-popup {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .popup-character {
        order: -1;
    }

    .popup-character img {
        width: 200px;
        height: 200px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-text {
        font-size: 1.1rem;
    }
}