/* Paper Prototype Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #f5f5dc;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(0,0,0,0.03) 24px, rgba(0,0,0,0.03) 25px),
        repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(0,0,0,0.03) 24px, rgba(0,0,0,0.03) 25px);
    color: #333;
    padding: 20px;
}

/* Home Page Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border: 3px solid #333;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.1);
}

.site-title {
    font-size: 3em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.site-subtitle {
    font-size: 1.2em;
    color: #666;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.game-card {
    background: white;
    border: 3px solid #333;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    display: block;
}

.game-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.15);
}

.game-cover {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    border-bottom: 3px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-cover-placeholder {
    font-size: 4em;
    color: #999;
}

.game-info {
    padding: 20px;
}

.game-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.game-dev {
    color: #666;
    font-size: 0.9em;
}

/* Game Player Page Styles */
.game-page {
    max-width: 1600px;
    margin: 0 auto;
}

.game-header {
    background: white;
    border: 3px solid #333;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-button {
    font-size: 1.1em;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #333;
    background: white;
    transition: all 0.2s;
}

.back-button:hover {
    background: #333;
    color: white;
}

.game-title {
    font-size: 2em;
    text-transform: uppercase;
}

.game-container {
    display: flex;
    gap: 20px;
}

.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-frame-wrapper {
    background: white;
    border: 3px solid #333;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
    padding: 10px;
}

#gameFrame {
    width: 100%;
    height: 600px;
    border: 2px solid #333;
    background: #f0f0f0;
}

.game-description {
    background: white;
    border: 3px solid #333;
    padding: 20px;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
}

.game-description h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.game-description p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.game-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #333;
}

.ad-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.ad-placeholder {
    background: white;
    border: 3px dashed #999;
    padding: 20px;
    height: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
}

.ad-placeholder p {
    margin: 5px 0;
}

.ad-size {
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-container {
        flex-direction: column;
    }
    
    .ad-sidebar {
        width: 100%;
    }
    
    .ad-placeholder {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-title {
        font-size: 1.5em;
    }
    
    #gameFrame {
        height: 400px;
    }
}
