* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Badeen Display', sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background-color: #7250a2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
}

.game-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-top: 10px;
    text-align: center;
}

.game-logo {
    max-width: 100px;
    height: auto;
}

.board {
    position: relative;
    width: 0%;
    max-width: 0px;

    /* padding: -50px, 0px; */
    margin-bottom: 30px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


  

/* Hexagon grid layout */
.hex-row {
    display: flex;
    justify-content: center;
    margin: -10px;
    margin-left: -30px;
    position: relative;
}

/* Add orange.png at left and right of every row */
.hex-row::before,
.hex-row::after {
    content: "";
    display: block;
    width: 60px;
    height: 70px;
    background-image: url('../orange.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.hex-row::before {
    left: -50px;
}

.hex-row::after {
    right: -50px;
}

/* Offset rows 2, 4, and 6 by half a hex width */
.hex-row:nth-child(2),
.hex-row:nth-child(4),
.hex-row:nth-child(6) {
    transform: translateX(30px);
}

/* Move rows 2  down by 10px */
.hex-row:nth-child(2),
.hex-row:nth-child(3) {
    margin-top: -15px;
}

/* Move rows 1 and 2 down by 10px */
.hex-row:nth-child(1),
.hex-row:nth-child(2) {
    margin-top: -15px;
}

/* Move rows 4 and 5 down by 10px */
.hex-row:nth-child(4),
.hex-row:nth-child(5),
.hex-row:nth-child(6),
.hex-row:nth-child(7){
    margin-top: -15px;
}

.hex {
    position: relative;
    width: 60px;
    height: 70px;
    margin: -1px;
    background-image: url('../white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.letter {
    color: #7250a2;
    font-size: 26px;
    font-weight: bold;
    font-family: 'Zain', sans-serif;
}


.hex.team-1, .hex[data-team="orange"] {
    background-image: url('../orange.png') !important;
}

.hex.team-2, .hex[data-team="green"] {
    background-image: url('../green.png') !important;
}
/* Make letter color white when a hex is selected by a team */
.hex.team-1 .letter, .hex.team-2 .letter {
    color: #ffffff;
}


.team-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.team {
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
}

.team-1 {
    background-color: #ee844b;
}

.team-2 {
    background-color: #61b33b;
}



.question-text {
    margin-bottom: 15px;
    font-size: 18px;
    color: #ffffff;
}

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

.team-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.team-button.team1 {
    background-color: #ee844b;
}

/* Win message styles */
.win-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.win-message {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#win-text {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.team-button.team2 {
    background-color: #61b33b;
}
