/* Game container */
.game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Screen management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: scale(0.9);
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Game screen layout */
#game-screen {
    display: flex; 
    flex-direction: row;
    align-items: flex-start; 
    padding: 20px;
    gap: 20px;
}

/* Wrapper for main game content (header, hand, actions, deck info) */
.main-game-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    gap: 20px; 
    max-width: 1200px; 
}

.game-header { 
    width: 100%;
    display: none; /* Hide the original game header as its content is moved */
}

.header-panel {
    padding: 20px 30px;
}

.game-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}

.info-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.info-value {
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hand area */
.hand-area {
    width: 100%;
    display: flex;
    align-items: center;
}

.hand-panel {
    width: 100%;
    padding: 10px;
    min-height: 250px;
}

.hand-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    min-height: 200px;
}

/* Action area */
.action-area {
    width: 100%;
}

.action-panel {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.selection-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Deck info */
.deck-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.deck-panel {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deck-panel.clickable {
    cursor: pointer;
}

.deck-icon {
    font-size: 1.5rem;
    color: white; /* Make deck icon white */
}

.deck-count {
    color: white;
    font-weight: 600;
}
