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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
}

/* Main container for the layout */
.main-container {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

/* Banner styles */
.banner {
    width: 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    position: sticky;
    top: 20px;
}

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

.banner h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.banner p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.banner-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.banner-button:hover {
    background-color: #2980b9;
}

.banner-footer {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.banner-footer a {
    color: #3498db;
    text-decoration: none;
}

.banner-footer a:hover {
    text-decoration: underline;
}

.banner-left {
    order: 1;
}

.game-container {
    order: 2;
    flex-grow: 1;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.banner-right {
    order: 3;
}

/* Main footer */
.main-footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.main-footer a {
    color: #3498db;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.game-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.game-board {
    position: relative;
    height: 500px;
    background-color: #2c8c5e;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 1fr 3fr 1fr;
    grid-template-areas:
        ". top ."
        "left center right"
        ". bottom .";
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.player-name {
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
}

.player-left {
    grid-area: left;
}

.player-top {
    grid-area: top;
}

.player-right {
    grid-area: right;
}

.player-bottom {
    grid-area: bottom;
}

.table-center {
    grid-area: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.played-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    width: 100%;
}

.trump-card-area {
    margin-top: 20px;
}

.player-cards {
    display: flex;
    justify-content: center;
    min-height: 100px;
}

.card {
    width: 70px;
    height: 100px;
    background-color: white;
    border-radius: 5px;
    margin: 0 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
}

.card.hearts, .card.diamonds {
    color: red;
}

.card.clubs, .card.spades {
    color: black;
}

.card-value {
    font-size: 16px;
    font-weight: bold;
}

.card-suit {
    font-size: 24px;
    text-align: center;
}

.card.facedown {
    background-color: #6c7ae0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.1) 10px, rgba(255,255,255,.1) 20px);
}

.card.played {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

#bidding-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

#trump-selection {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.trump-button {
    margin: 0 5px;
}

.trump-button[data-suit="hearts"],
.trump-button[data-suit="diamonds"] {
    background-color: #e74c3c;
}

.trump-button[data-suit="clubs"],
.trump-button[data-suit="spades"] {
    background-color: #2c3e50;
}

#game-message {
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

/* Game description for SEO */
.game-description {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    line-height: 1.6;
}

.game-description h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.game-description h3 {
    color: #2c3e50;
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.game-description p {
    margin-bottom: 15px;
    color: #34495e;
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }
    
    .banner {
        width: 100%;
        max-width: 900px;
        position: static;
        margin-bottom: 20px;
    }
    
    .banner-left {
        order: 1;
    }
    
    .game-container {
        order: 2;
    }
    
    .banner-right {
        order: 3;
    }
}

@media (max-width: 768px) {
    .game-board {
        height: 400px;
    }
    
    .card {
        width: 50px;
        height: 70px;
        font-size: 12px;
    }
} 