/* 
 * bauten.css - Gemeinsames Stylesheet für Würfelbauten-Spiele
 * www.geometrie.org
 */

/* Grundlegende Seiten-Einstellungen */
body { 
    margin: 0; 
    overflow: hidden; 
    font-family: Arial, sans-serif;
    background-color: #e8f5e9; /* Blasses Grün */
    color: white;
    font-size: 16px;
  }
  
  /* Spielcontainer und Grundlayout */
  #game-container {
    display: flex;
    width: 100vw;
    height: 100vh;
  }
  
  #model, #build {
    width: 50%;
    height: 100%;
    position: relative;
  }
  
  /* Titelleisten */
  .title-bar {
    position: absolute;
    top: 0;
    height: 50px;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 100;
    font-size: 24px;
    font-weight: bold;
  }
  
  #model-title-bar {
    left: 0;
    width: 50%;
  }
  
  #build-title-bar {
    right: 0;
    width: 50%;
  }
  
  /* Logo und Website-Link */
  #logo-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #logo-link {
    text-decoration: none;
  }
  
  #logo {
    width: 100px;
    height: 100px;
  }
  
  #site-link {
    color: #2196F3;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
  }
  
  /* Punkteanzeige */
  #score {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 100;
    font-size: 24px;
    font-weight: bold;
  }
  
  /* Steuerungselemente */
  #controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
  }
  
  button {
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
  }
  
  button:hover {
    background: #0b7dda;
  }
  
  /* Toggle-Switch */
  .toggle-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 4px;
  }
  
  .toggle-label {
    margin-right: 10px;
    color: white;
  }
  
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .toggle-slider {
    background-color: #2196F3;
  }
  
  input:checked + .toggle-slider:before {
    transform: translateX(26px);
  }
  
  /* Nachrichtenbox */
  #message {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 100;
    display: none;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    min-width: 300px;
    max-width: 80%;
  }
  
  /* Anweisungsbox */
  #instructions {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    width: 90%;
    max-width: 1200px;
    z-index: 100;
  }
  
  /* Responsives Design */
  @media (max-width: 768px) {
    button {
      padding: 8px 16px;
      font-size: 16px;
    }
    
    #controls {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .title-bar {
      font-size: 20px;
      height: 40px;
    }
    
    #logo {
      width: 80px;
      height: 80px;
    }
    
    #site-link {
      font-size: 16px;
    }
    
    #score, #message {
      font-size: 20px;
    }
    
    #instructions {
      font-size: 14px;
      bottom: 70px;
    }
  }
  
  /* Anpassungen für sehr kleine Bildschirme */
  @media (max-width: 480px) {
    #controls {
      bottom: 10px;
      gap: 10px;
    }
    
    button {
      padding: 6px 12px;
      font-size: 14px;
    }
    
    #logo {
      width: 60px;
      height: 60px;
    }
    
    #instructions {
      bottom: 60px;
      padding: 8px 16px;
    }
    
    .toggle-container {
      padding: 8px 12px;
    }
    
    .toggle-switch {
      width: 50px;
      height: 28px;
    }
    
    .toggle-slider:before {
      height: 22px;
      width: 22px;
      left: 3px;
      bottom: 3px;
    }
    
    input:checked + .toggle-slider:before {
      transform: translateX(22px);
    }
  }