/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    padding: 20px;
  }

  #root {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  /* Canvas styles */
  canvas {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #f8f8f8;
  }
  
  /* Date display */
  div:first-child {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
  }

.day-progress {
    width: 100%;
    height: 4px;
}
.day-progress::-webkit-progress-bar {
    background-color: rgb(243, 239, 239);
}
.day-progress::-webkit-progress-value {
    background-color: rgb(40, 91, 154);
}
  
  /* Upgrade container */
  .upgrade-container {
    margin-top: 30px;
  }
  
  .upgrade-container h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
  }
  
  /* Upgrade buttons container */
  .upgrade-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
  }
  
  /* Style for upgrade buttons */
  .upgrade-button {
    position: relative;
    padding: 12px 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #3498db;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  /* Progress bar for upgrade buttons */
  .upgrade-button::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--progress-width, 0%);
    height: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: width 0.3s ease;
    z-index: 1;
  }
  
  .upgrade-button:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2);
  }
  
  .upgrade-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
  }
  
  /* Responsive styles */
  @media (max-width: 600px) {
    .upgrade-buttons {
      grid-template-columns: 1fr;
    }
    
    canvas {
      height: 300px;
    }
  }
  
  /* Specific button styles for each type */
  .upgrade-button:nth-child(1) {
    background-color: #e74c3c;
  }
  
  .upgrade-button:nth-child(1):hover:not(:disabled) {
    background-color: #c0392b;
  }
  
  .upgrade-button:nth-child(2) {
    background-color: #2ecc71;
  }
  
  .upgrade-button:nth-child(2):hover:not(:disabled) {
    background-color: #27ae60;
  }
  
  .upgrade-button:nth-child(3) {
    background-color: #9b59b6;
  }
  
  .upgrade-button:nth-child(3):hover:not(:disabled) {
    background-color: #8e44ad;
  }

  /**
  Start screen stuff
  **/


/* Start Screen Overlay */
.start-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 10px;
  }
  
  .start-screen-content {
    width: 80%;
    max-width: 800px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
  }
  
  .start-screen-content h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
  }
  
  .game-image-placeholder {
    width: 200px;
    height: 200px;
    background-color: #ecf0f1;
    margin: 20px auto;
    border: 2px dashed #bdc3c7;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
  }

  .game-image-placeholder img{
    width: 100%;
    height: 100%;
  }
  
  .game-rules {
    text-align: left;
    margin: 20px 0;
  }
  
  .game-rules h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
  }
  
  .game-rules ul {
    list-style-type: disc;
    padding-left: 25px;
    font-size: 1.1rem;
  }
  
  .game-rules li {
    margin-bottom: 8px;
    color: #34495e;
  }
  
  .start-game-button {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-weight: 600;
  }
  
  .start-game-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }