/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: black;
  color: white;
  min-height: 100vh;
}

/* Main container */
.referee-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.referee-header {
  text-align: center;
  padding: 20px;
}

.referee-header h1 {
  font-size: 3rem;
  color: white;
}

/* Main content */
.referee-main {
  flex: 1;
  display: flex;
  height: calc(100vh - 120px); /* Full height minus header */
}

/* Two halves layout */
.left-half, .right-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-right: 1px solid #333;
}

/* Digital display positioning */
.left-half .digital-display, .right-half .digital-display {
  margin-top: 10px;
  margin-bottom: 30px;
}

.right-half {
  border-right: none;
  border-left: 1px solid #333;
}

/* Digital display */
.digital-display {
  font-family: 'Courier New', monospace;
  font-size: 4rem;
  font-weight: bold;
  color: #00ff00;
  background: #000;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 20px 40px;
  text-align: center;
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Button group */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 300px;
  flex: 1;
  justify-content: center;
}

/* Bubble buttons - larger size */
.bubble-btn {
  width: 160px;
  height: 160px;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 3.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  align-self: center;
}

/* Left side buttons - red */
.left-half .bubble-btn {
  background: linear-gradient(145deg, #cc0000, #ff3333);
}

/* Right side buttons - blue */
.right-half .bubble-btn {
  background: linear-gradient(145deg, #0000cc, #3333ff);
}


.bubble-btn:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bubble-btn:hover {
  background: linear-gradient(145deg, #444, #666);
}


/* Mobile optimizations */
@media (max-width: 768px) {
  .referee-header h1 {
    font-size: 2.5rem;
    padding: 15px;
  }
  
  .referee-main {
    height: calc(100vh - 100px);
  }
  
  .left-half, .right-half {
    padding: 15px;
  }
  
  .left-half .digital-display, .right-half .digital-display {
    margin-top: 5px;
    margin-bottom: 20px;
  }
  
  .digital-display {
    font-size: 3rem;
    padding: 15px 30px;
    min-width: 100px;
  }
  
  .bubble-btn {
    width: 140px;
    height: 140px;
    font-size: 3rem;
  }
  
  .button-group {
    gap: 30px;
    max-width: 250px;
  }
  
}

@media (max-width: 480px) {
  .referee-header h1 {
    font-size: 2rem;
  }
  
  .left-half .digital-display, .right-half .digital-display {
    margin-top: 3px;
    margin-bottom: 15px;
  }
  
  .digital-display {
    font-size: 2.5rem;
    padding: 12px 25px;
  }
  
  .bubble-btn {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
  }
  
  .button-group {
    gap: 25px;
    max-width: 200px;
  }
  
}

/* Error styling */
.error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: black;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  padding: 40px;
}