:root {
    --background-color: #f7b731;
    --background-color-light: rgb(250,212,131);
  }
  
  
  html {
    background-color: var(--background-color);
  }
  

  li, ul, h2, h3 {
    font-family: 'Monaco', monospace;
    color: black;
    font-size: 18px;
  }

  /* Mobile CSS Properties */
  @media screen and (max-device-width: 479px) {
    p {
      font-family: 'Monaco', monospace;
      color: black;
      font-size: 36px;
    }
    .selectBox {
        color: black;
        border: 1px solid black;
        border-radius: 25px;
        padding: 5px;
        width: 40vw;
        height: 4vh;
        margin: 4px;
        margin-bottom: 20px;
        background-color: whitesmoke;
        text-align-last: center;
        text-align: center;
        font-size: 28px;
      }
    
      .selectButton {
        color: black;
        background-color: whitesmoke;
        border-radius: 25px;
        border: 1px solid black;
        width: 40vw;
        height: 4vh;
        margin: 5px;
        font-size: 28px;
      }

      @keyframes shake{
        20%  {
            transform: translate(-2vw, 0px);
        }
        40%  {
            transform: translate(2vw, 0px);
        }
        60%  {
            transform: translate(-2vw, 0px);
        }
        80%  {
            transform: translate(2vw, 0px);
        }
    }
  }
  

  /* Desktop CSS Properties */
  @media screen and (min-device-width: 480px) {
    p {
      font-family: 'Monaco', monospace;
      color: black;
      font-size: 16px;
    }
    .selectBox {
        border: 1px solid black;
        border-radius: 25px;
        padding: 5px;
        width: 200px;
        height: 30px;
        margin: 2px;
        margin-bottom: 10px;
        background-color: whitesmoke;
        text-align: center;
      }
    
      .selectButton {
        background-color: whitesmoke;
        border-radius: 25px;
        border: 1px solid black;
        height: 30px;
        width: 200px;
        margin: 5px;
    
      }

      @keyframes shake{
        20%  {
            transform: translate(-5px, 0px);
        }
        40%  {
            transform: translate(5px, 0px);
        }
        60%  {
            transform: translate(-5px, 0px);
        }
        80%  {
            transform: translate(5px, 0px);
        }
    }
  }
  
  .container {
    width: 100vw;
    display: flex;
    border: 2px solid black;
    margin-bottom: 5vh;
    background-color: var(--background-color);
  }
  
  
  .column-fat {
    flex: 1;
    overflow: hidden;
    text-align: center;
  }
  
  
  .column-skinny {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  
  
  .repeating-background {
      position: relative;
      background-color: var(--background-color); /* Light gray background for contrast */
      overflow: hidden;
  }
  
  
  .lines {
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }
  
  
  .mainDiv {
      background-color: var(--background-color-light);
      border-radius: 5px;
      border: 2px solid black;
      height: 70vh;
      margin-left: 10vw;
      margin-right: 10vw;  
      text-align: center;
  }
  
  
  .introDiv {
    text-align: center;
  }
  

.prompt::first-line {
    margin-left: 5vw;
    margin-right: 5vw;
    color: black
 }
  
.prompt {
     color: black;
     font-style: oblique;
     margin-left: 10vw;
     margin-right: 10vw;
  }

.results {
    color: black;
    margin-left: 5vw;
    margin-right: 5vw;
 }

  .choices {
    text-align: center;
  }

.pop-small {
    animation: pop-small 0.4s ease-in-out;
    background-color: lightgreen;
}

@keyframes pop-small{
    20%  {
        transform: scale(.8);
      }
    70%  {
      transform: scale(1.4);
    }
}

.flash-correct {
    animation: flash-correct 2.0s;
}

@keyframes flash-correct{
    20%  {
        background-color: lightgreen;
      }
    50%  {
        background-color: whitesmoke;
    }

    70% {
        background-color: lightgreen;
    }
}

.shake {
    animation: shake 0.2s;
    background-color: red;
}
  
  .checkered-background {
    height: 100vh;
    width: 100vw;
    background:
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 0px 0px,
      linear-gradient(315deg, black 0% 5%, transparent 0% 100%) -91px -91px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 20px 0px,
      linear-gradient(315deg, black 0% 5%, transparent 0% 100%) -71px -91px,
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 10px 10px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -81px -81px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 30px 10px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -61px -81px,
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 20px 20px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -71px -71px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 40px 20px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -51px -71px,
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 30px 30px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -61px -61px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 50px 30px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -41px -61px, 
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 40px 40px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -51px -51px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 60px 40px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -31px -51px, 
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 50px 50px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -41px -41px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 70px 50px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -21px -41px, 
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 60px 60px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -31px -31px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 80px 60px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -11px -31px,
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 70px 70px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -21px -21px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 90px 70px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -1px -21px,
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 80px 80px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -11px -11px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 100px 80px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) 9px -11px,
      
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 90px 90px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) -1px -1px,
      linear-gradient(135deg, black 0% 5%, transparent 5% 100%) 110px 90px,
      linear-gradient(315deg, black 0% 5%, transparent 5% 100%) 19px -1px;
      
    background-size: 100px 100px;
  }

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.select-box {
  padding: 5px;
  margin: 5px 0;
  border-radius: 5px;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
  
.admin-prompt{
  width: 60vw; text-align: center; font-family: 'Monaco', monospace; font-size: 16px; color: black;
}

.admin-decoy {
  width: 40vw; 
  text-align: center; 
  font-family: 'Monaco', monospace;
  font-size: 16px; 
  color: black;
  background-color: #FFCCCB;
}

.admin-answer {
  width: 40vw; text-align: center; font-family: 'Monaco', monospace; font-size: 16px; color: black;
  background-color: #ACE1AF;
}

.admin-button-container {
  width: 100%;
  height: 20vh;
  display: flex;
}

.admin-button {
  flex: 1;
}

.wh-100p {
  width: 100%;
  height: 100%;
}

.city-select {
  width: 200px;
  padding: 8px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  cursor: pointer;
}

.question-form {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    max-width: 100%;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group-narrow {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;  /* Include padding in width calculation */
    resize: vertical;        /* Allow vertical resizing only */
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-height: 38px;       /* Minimum height for single line */
}

textarea.form-control {
    min-height: 100px;
    white-space: pre-wrap;  /* Preserve line breaks and wrap text */
}

.decoys-container {
    margin-bottom: 10px;
    width: 100%;
}

.decoy-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    width: 100%;
}

.decoy-input-group input {
    flex-grow: 1;          /* Allow input to take up remaining space */
}

.remove-decoy {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 10px;
    cursor: pointer;
    flex-shrink: 0;        /* Prevent button from shrinking */
}

.add-decoy {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}

.save-question {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}

.generate-question {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  width: 100%;
}

.add-decoy:hover, .save-question:hover {
    opacity: 0.9;
}

hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* Add auto-resize functionality */
.form-control:focus {
    outline: none;
    border-color: #4CAF50;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.model-params-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.model-params-form .form-group {
    margin-bottom: 10px;
}

.model-params-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.model-params-form .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.model-params-form input[type="number"] {
    width: 100px;
}

.messages-container {
    margin-top: 20px;
}

.message-group {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.role-section {
    flex-grow: 1;
    margin-right: 10px;
}

.content-section {
    margin-top: 10px;
}

.message-role {
    width: 200px;
}

.message-content {
    width: 100%;
    min-height: 100px;
    margin-top: 5px;
}

.remove-message {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 10px;
    cursor: pointer;
    height: 38px;
}

.message-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.add-message {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    margin-top: 10px;
}

.add-message:hover {
    opacity: 0.9;
}

#theme {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#theme:focus {
    outline: none;
    border-color: #4CAF50;
}

.question-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question-card h3 {
    margin-top: 0;
    color: #333;
}

.question-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.question-card li {
    margin: 5px 0;
}

#generate-quiz {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    margin: 15px 0;
}

#generate-quiz:hover {
    background: #45a049;
}

.delete-question {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    margin-left: 10px;
}

.delete-question:hover {
    background: #c82333;
}

.message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  text-align: center;
}

.message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
}

.message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #66bb6a;
}