/* Green background for the soccer field */
.field-background {
    fill: #1c671e; /* Green color for the field */
}

/* White color for field lines */
.field-line {
    stroke: #ffffff; /* Light gray */
    stroke-width: 2;
}

/* Blue color for goals */
.goal {
    fill: #c0c0c0;
    stroke: white;
    stroke-width: 0.2;
}

/* Interactive grid cells */
.grid-cell {
    fill: transparent;
    stroke: #c0c0c0;
    stroke-width: 0.2;
    cursor: pointer;
}

/* Form styling for role selection */
form {
    background-color: #000000b3; /* Semi-transparent black background */
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    margin: 20px auto;
}

/* Flexbox container for the entire page */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    padding: 0;
    flex-direction: column;
}

/* Main container for the game interface */
.container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Add margin above the h1 element */
h1 {
    margin-top: 20px; /* Adjust the value as needed */
}

/* Adjust the game screen to align with the game title */
#game-screen {
    display: flex;
    justify-content: center;
    align-items: center; /*flex-start;*/ /* Align items to the start (top) */
    justify-content: center;
    margin-top: 20px; /* Add some margin to separate from the header */
    flex-direction: column; /* Ensure elements stack vertically */
}

/* Center the field and make it responsive */
#soccer-field {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 2 / 1; /* Maintain aspect ratio of 2:1 */
    border: 2px solid white; /* Add border to visualize the field */
    margin-top: 20px; /* Add some margin to separate from the game screen */
    flex-shrink: 0;
}

/* General text styling */
body {
    font-family: 'Arial', sans-serif;
    color: white; /* White font color */
    background-color: #001f3f; /* Dark navy blue background */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the start (top) */
    height: 100vh;
    flex-direction: column; /* Ensure elements stack vertically */
}

/* Heading styling */
h1, h2 {
    color: white; /* White font color */
}

/* Form label styling */
label {
    font-size: 16px;
    color: white; /* White font color */
}

/* Form select styling */
select {
    background-color: #001f3f; /* Dark navy blue background */
    color: white; /* White font color */
    border: 1px solid #555;
    padding: 10px;
    font-size: 16px;
}

/* Button styling */
button {
    background-color: transparent;
    color: white; /* White font color */
    border: 2px solid #8a2be2; /* Glowing purple border */
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Button hover effect */
button:hover {
    background-color: #8a2be2; /* Purple background on hover */
    color: white; /* White font color */
    box-shadow: 0 0 10px #8a2be2, 0 0 20px #8a2be2, 0 0 30px #8a2be2; /* Glowing effect */
}

/* Centering the form */
#start-screen {
    text-align: center;
}

.player {
    stroke: black;
    stroke-width: 1;
}

/* Score banner styling */
#score.score-banner {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: yellow;
    color: black;
    font-size: 24px;
    padding: 10px;
    border: 2px solid black;
    z-index: 1000; /* Ensure it appears in front of other elements */
    display: block;
}

#game-container {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.game-instructions {
    max-width: 600px;
    margin: 0 auto;
}

.role-instructions {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #c0c0c0;
}

#half-time-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    z-index: 1000; /* Ensure it appears in front of other elements */
}