/* Custom styles for PlayBlox.io */

/* Font definitions */
.font-press-start {
    font-family: 'Press Start 2P', cursive;
}

/* Dynamic background */
body {
    background-color: #0a0a0a;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/block-bg.png');
    background-size: 200px 200px;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/block-characters.png') repeat;
    background-size: 300px 300px;
    opacity: 0.15;
    animation: backgroundScroll 30s linear infinite;
    z-index: -1;
}

@keyframes backgroundScroll {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1000px 1000px;
    }
}

/* 添加更多动态背景元素 */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/block-characters.png') repeat;
    background-size: 200px 200px;
    opacity: 0.05;
    animation: backgroundScroll2 45s linear infinite;
    z-index: -1;
}

@keyframes backgroundScroll2 {
    0% {
        background-position: 1000px 1000px;
    }
    100% {
        background-position: 0 0;
    }
}

/* Logo animation */
.logo-container h1 {
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 0, 0.8),
                     0 0 30px rgba(255, 255, 0, 0.6);
    }
}

/* Game container styles */
.game-container {
    position: relative;
    width: 90%;
    height: 600px;
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 4px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
}

/* Block-style elements */
.bg-gray-800 {
    background-color: #1a1a1a;
    border: 2px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bg-gray-700 {
    background-color: #2a2a2a;
    border: 2px solid #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Feature cards hover effect */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: #ffcc00;
}

/* Screenshot cards hover effect */
.screenshot-card {
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 2px solid #333;
}

.screenshot-card:hover {
    transform: scale(1.05);
    border-color: #ffcc00;
}

.screenshot-card img {
    transition: transform 0.3s ease;
}

.screenshot-card:hover img {
    transform: scale(1.1);
}

/* Review cards hover effect */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #333;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: #ffcc00;
}

/* Fullscreen button styles */
#fullscreenBtn {
    transition: all 0.3s ease;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    border: 2px solid #333;
}

#fullscreenBtn:hover {
    transform: scale(1.1);
    background-color: #ffd700;
}

/* Language selector styles */
#languageSelector {
    transition: all 0.3s ease;
    background-color: #1a1a1a;
    border: 2px solid #333;
}

#languageSelector:hover {
    background-color: #2a2a2a;
    border-color: #ffcc00;
}

/* Block-style headings - 居中显示 */
h2.text-3xl {
    color: #ffcc00;
    text-shadow: 2px 2px 0 #333;
    position: relative;
    display: block;
    text-align: center;
    margin: 0 auto 1.5rem;
    padding: 0 10px;
    width: fit-content;
}

h2.text-3xl::before, h2.text-3xl::after {
    content: '';
    position: absolute;
    height: 4px;
    background-color: #ffcc00;
    width: 30px;
}

h2.text-3xl::before {
    left: -30px;
    top: 50%;
}

h2.text-3xl::after {
    right: -30px;
    top: 50%;
}

/* 添加标题动画效果 */
h2.text-3xl {
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .game-container {
        height: 400px;
        width: 95%;
    }
    
    h2.text-3xl {
        font-size: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 6px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffcc00;
} 