@font-face{
  src: url(../fonts/NovaSquare-Regular.ttf);
  font-family: Science;
}
@font-face {
  font-family: Labels;
  src: url(../fonts/Audiowide-Regular.ttf);
}

:root{
  --dark-primary:#0B3948;
  --bright-primary:#358600;
  --neutral:#C9C19F; 
  --accent-neutral: #416165;
  --accent-bold: #75485E;

}

body{
  background-color: var(--neutral);
}

#main{
    margin-left: 10vw;
    margin-right: 10vw;
    margin-bottom: 20vw;
    margin-top: 15vw;
    padding-bottom: 2vh;
    background-color: white;
}
.actions-hide{
  display:none;
}
.actions-show{
  display: flex;
}
#actions{
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
input{
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
}
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: var(--dark-primary); 
    color: white;
    transition: background-color 0.3s ease;
    font-family: Labels;
}
button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed; /* Shows a 'no entry' circle over the mouse pointer */
  opacity: 0.6;        /* Makes it look slightly faded */
}
.modal-container{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: var(--neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal{
  background-color: white;
  width: 600px;
  max-width: 100%;
  padding: 30px 50px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;  /* Stacks h2 and the div vertically */
  align-items: center;     /* Centers the stacked items horizontally */
  text-align: center;  
}
.modal-show{
  opacity: 1;
  pointer-events: auto;
}
.modal div{
  display: flex;
  align-items: stretch;
  gap: 8px;
}

#player_label{
  width: 50%;
}
.game-label{
  font-family: Science;
}

.game-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 5vh;
  padding: 2vh;
/*  font-size:  16px aka 1em;*/
  background-color: var(--accent-neutral);
  color: var(--neutral);
}
.game-stats-right{
  justify-self: end;
}
#game_message{
  font-style: italic;
}

#game_board {
  display: grid;
  /* 1. Automatically creates as many columns as will fit */
  grid-template-columns: repeat(auto-fit, minmax(70px, 110px));
  /* 2. Sets the gap between grid items */
  gap: 16px; 
  justify-content: center; /* Centers the grid items horizontally */
  background-color: white;
}

.sorting-ball {
  width: 50px;       /* Set your exact game ball size */
  height: 50px;
  border-radius: 50%; /* Makes the ball circular */
  display: block;
  margin: 4px auto;  /* Centers the ball inside game tubes */
  background: radial-gradient(
    circle at 30% 30%,
    #ffffff 0%,
    var(--ball-color) 50%,
    rgba(0,0,0,0.4) 100%
  );
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.15);
}
/* Tube container setup */
.tube-container {
    width: 70px;
    height: 260px;
    border: 4px solid #ffffff;
    border-top: none; /* Keeps the top of the glass tube open */
    border-radius: 0 0 35px 35px; /* Rounds the bottom of the tube */
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Flexbox stacks children vertically from bottom to top */
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
    padding-bottom: 10px;
    box-sizing: border-box;
}