<<<<<<< HEAD
/* 
* Watermelon Drop - Game Stylesheet
* This file contains styles specific to the game iframe and container
*/

/* Game Container Styles */
.game-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 9/16;
    height: auto; /* Height will be calculated based on aspect ratio */
    background-color: #FFB7C5; /* Updated background color to match variables */
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.2s ease; /* Reduced transition time for better performance */
    contain: layout paint;
    content-visibility: auto;
}

/* Game iframe styles */
.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: auto;
    opacity: 0; /* Start with iframe invisible */
    transition: opacity 0.3s ease; /* Shorter transition time for better performance */
    background-color: #FFB7C5; /* Updated background color to match variables */
    contain: size layout;
}

.game-iframe.loaded {
    opacity: 1; /* Make iframe visible when loaded */
}

/* Control buttons */
.control-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    min-height: 40px; /* Explicit height to reserve space */
    content-visibility: auto;
}

.fullscreen-btn {
    background-color: var(--primary-btn-color);
    color: var(--btn-text-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600; /* Increased weight for better readability */
    transition: background-color 0.2s;
    height: 40px; /* Explicit height */
    min-width: 150px; /* Minimum width */
    contain: layout paint;
}

.fullscreen-btn:hover {
    background-color: var(--secondary-btn-color);
}

.fullscreen-btn i {
    font-size: 1.2rem;
}

/* Game features list styling */
.features-list {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    content-visibility: auto;
}

.features-list li {
    background-color: var(--secondary-bg-color);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

/* Game points list styling */
.features-section ul:not(.features-list):not(.fruit-list) {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    content-visibility: auto;
}

.features-section ul:not(.features-list):not(.fruit-list) li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.features-section ul:not(.features-list):not(.fruit-list) li::before {
    content: "🍉";
    position: absolute;
    left: 0;
    top: 0;
}

/* Fruit list styling */
.fruit-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
    content-visibility: auto;
}

.fruit-list li {
    background-color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
<<<<<<< HEAD
    font-weight: 600; /* Bold text for better contrast */
    color: #3a0e20; /* White text for better contrast on dark background */
=======
    font-weight: 600; /* 加粗文本提高对比度 */
    color: #4a1329; /* 白色文本提高对比暗色背景 */
>>>>>>> 6db9b4f84aa7ffbfd14492a57f2d1900b8941abe
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gameplay steps list styling */
.gameplay-steps {
    list-style-type: none;
    counter-reset: step-counter;
    margin-left: 0;
    padding-left: 0;
    content-visibility: auto;
}

.gameplay-steps li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
}

.gameplay-steps li::before {
    content: counter(step-counter);
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Controls styling */
.control-group ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.control-group ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.control-group ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Game section full-width background */
.game-section {
    width: 100%;
    padding: 40px 0;
    background-color: var(--game-bg-color);
    min-height: 500px; /* Minimum height to reduce layout shift */
    contain: layout paint;
}

/* Game screenshots with explicit dimensions */
.game-screenshot {
    margin: var(--spacing-lg) 0;
    text-align: center;
    min-height: 100px; /* Minimum height to reduce layout shift */
    content-visibility: auto;
}

.screenshot-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Iframe loader */
.iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--game-bg-color);
    z-index: 10;
    border-radius: 0.5rem;
    contain: layout paint;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1); /* Darker border for better visibility */
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.iframe-loader p {
    color: #212121; /* Darker text for better contrast */
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
}

/* Reload button styles */
.reload-iframe-btn {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-btn-color);
    color: var(--btn-text-color);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.reload-iframe-btn:hover {
    background-color: var(--secondary-btn-color);
}

.reload-iframe-btn i {
    margin-right: 8px;
}

/* Exit fullscreen button styles */
.exit-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for better contrast */
    color: white;
    border: none;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    font-size: 18px;
}

.exit-fullscreen-btn:hover {
<<<<<<< HEAD
    background-color: #000000; /* Darker on hover */
} 
=======
    background-color: #000000; /* 悬停时更深色 */
} 
>>>>>>> 6db9b4f84aa7ffbfd14492a57f2d1900b8941abe
=======
/* 
* Watermelon Drop - Game Stylesheet
* This file contains styles specific to the game iframe and container
*/

/* Game Container Styles */
.game-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 9/16;
    height: auto; /* Height will be calculated based on aspect ratio */
    background-color: #FFB7C5; /* Updated background color to match variables */
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.2s ease; /* Reduced transition time for better performance */
    contain: layout paint;
    content-visibility: auto;
}

/* Game iframe styles */
.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: auto;
    opacity: 0; /* Start with iframe invisible */
    transition: opacity 0.3s ease; /* Shorter transition time for better performance */
    background-color: #FFB7C5; /* Updated background color to match variables */
    contain: size layout;
}

.game-iframe.loaded {
    opacity: 1; /* Make iframe visible when loaded */
}

/* Control buttons */
.control-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    min-height: 40px; /* Explicit height to reserve space */
    content-visibility: auto;
}

.fullscreen-btn {
    background-color: var(--primary-btn-color);
    color: var(--btn-text-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600; /* Increased weight for better readability */
    transition: background-color 0.2s;
    height: 40px; /* Explicit height */
    min-width: 150px; /* Minimum width */
    contain: layout paint;
}

.fullscreen-btn:hover {
    background-color: var(--secondary-btn-color);
}

.fullscreen-btn i {
    font-size: 1.2rem;
}

/* Game features list styling */
.features-list {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    content-visibility: auto;
}

.features-list li {
    background-color: var(--secondary-bg-color);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

/* Game points list styling */
.features-section ul:not(.features-list):not(.fruit-list) {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
    content-visibility: auto;
}

.features-section ul:not(.features-list):not(.fruit-list) li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.features-section ul:not(.features-list):not(.fruit-list) li::before {
    content: "🍉";
    position: absolute;
    left: 0;
    top: 0;
}

/* Fruit list styling */
.fruit-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
    content-visibility: auto;
}

.fruit-list li {
    background-color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
<<<<<<< HEAD
    font-weight: 600; /* Bold text for better contrast */
    color: #3a0e20; /* White text for better contrast on dark background */
=======
    font-weight: 600; /* 加粗文本提高对比度 */
    color: #4a1329; /* 白色文本提高对比暗色背景 */
>>>>>>> 6db9b4f84aa7ffbfd14492a57f2d1900b8941abe
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gameplay steps list styling */
.gameplay-steps {
    list-style-type: none;
    counter-reset: step-counter;
    margin-left: 0;
    padding-left: 0;
    content-visibility: auto;
}

.gameplay-steps li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
}

.gameplay-steps li::before {
    content: counter(step-counter);
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Controls styling */
.control-group ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.control-group ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.control-group ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Game section full-width background */
.game-section {
    width: 100%;
    padding: 40px 0;
    background-color: var(--game-bg-color);
    min-height: 500px; /* Minimum height to reduce layout shift */
    contain: layout paint;
}

/* Game screenshots with explicit dimensions */
.game-screenshot {
    margin: var(--spacing-lg) 0;
    text-align: center;
    min-height: 100px; /* Minimum height to reduce layout shift */
    content-visibility: auto;
}

.screenshot-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Iframe loader */
.iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--game-bg-color);
    z-index: 10;
    border-radius: 0.5rem;
    contain: layout paint;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1); /* Darker border for better visibility */
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.iframe-loader p {
    color: #212121; /* Darker text for better contrast */
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
}

/* Reload button styles */
.reload-iframe-btn {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-btn-color);
    color: var(--btn-text-color);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.reload-iframe-btn:hover {
    background-color: var(--secondary-btn-color);
}

.reload-iframe-btn i {
    margin-right: 8px;
}

/* Exit fullscreen button styles */
.exit-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for better contrast */
    color: white;
    border: none;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    font-size: 18px;
}

.exit-fullscreen-btn:hover {
<<<<<<< HEAD
    background-color: #000000; /* Darker on hover */
} 
=======
    background-color: #000000; /* 悬停时更深色 */
} 
>>>>>>> 6db9b4f84aa7ffbfd14492a57f2d1900b8941abe
>>>>>>> 6430614ec2422d3dc8f8186edff1b81eb68ff067