body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
  }
  
  
  .header {
    padding: 10px 0;
    height: auto; 
}

.date-heading {
    margin-top: 0; 
    padding-left: 75px; 
    font-size: 1.2rem;
    text-align: center;
    flex: 1;
    width: auto; 
}

  .main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    margin-top: 47px; 
    padding-top: 10px; 
  }
  
  .left-container,
  .right-container {
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto;
  }
  
  .left-container {
    display: block;
    padding: 10px;
    background-color: #fafafa;
  }
  
  /* Collapsible section styles */
  .section {
    margin-bottom: 10px;
  }
  
  .section-heading {
    font-weight: 400;
    font-size: 1rem;
    border-bottom: 1px solid #ccc;
    padding: 20px;
    cursor: pointer;
    user-select: none;
  }
  
  .section-content {
    display: none;
    margin-top: 30px;
    margin-bottom: 50px;
  }
  
  /* Timer styles */
  #timerWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    margin: 20px auto;
    background-color: #fff;
    width: 80%;
}

#timerDisplay {
    font-size: 5rem;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    border: none;
    text-align: center;
    color: #000;
    letter-spacing: 10px;
    outline: none;
    cursor: text;
    width: 14ch; /* Fixed width for 5-digit timer */
}

  
  .controls {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
  }
  
  .controls-horizontal {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }

 


    #startButton,
    #stopButton,
    .emoji-button  {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 5px 0;
  }

  #startButton .material-icons,
  #stopButton .material-icons {
    font-size: 3em;
  }

  .emoji-button .material-icons {
    font-size: 2.2em;
  }
  
  #startButton .material-icons,
  #stopButton .material-icons,
  .emoji-button .material-icons {
    color: #ADCBFD;
  }
  
  #startButton:hover .material-icons,
  #startButton:hover .material-icons {
    color: #84A9E8;
  }
  
  /* Ensure the video grid displays videos in one line with horizontal scrolling */
.video-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 20px;
  flex-wrap: nowrap; /* Prevent wrapping */
  overflow-y: hidden; /* Ensure no vertical scroll in video grid */
  width: 100%; /* Ensure the video grid takes full width */
  white-space: nowrap; /* Ensure the content does not wrap */
}

.video-grid iframe {
  flex: 0 0 auto;
  width: 300px; /* Adjust this width as needed */
  height: 168.75px; /* 16:9 aspect ratio */
}

.video-grid::-webkit-scrollbar {
  height: 5px;
}

.video-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.video-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.video-grid::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

@media (max-width: 1200px) {
  .game, .video-grid .video {
      width: calc(33.33% - 40px);
  }
}

@media (max-width: 992px) {
  .game, .video-grid .video {
      width: calc(50% - 40px);
  }
}

@media (max-width: 576px) {
  .game, .video-grid .video {
      width: calc(100% - 40px);
  }
}

  /* Textarea styles */
  .resizable-textarea.text-field {
    width: 85%;
    height: 200px;
    display: block;
    margin: 0 auto;
    padding: 2%;
    font-size: 1.9rem;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #eee;
    border-radius: 4px;
    resize: vertical;
    margin-top: 20px;
    margin-bottom: 50px;
    min-height: 100px;
  }
  
  .text-field:focus {
    outline: none;
  }
  
  /* Icon search styles */
  .icon-search {
    padding: 10px;
    background: #fafafa;
  }
  
  .icon-search input {
    width: 100%;
    padding: 5px;
    font-size: 1.1rem;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    outline: none;
  }
  
  /* Image container styles */
  .image-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background: #fafafa;
    overflow-y: auto;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
  }
  
  /* Large image container styles */
  .large-image-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: white;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 25px;
    height: 72vh;
    min-height: 200px;
  }
  
  .large-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60vh;
    padding-top: 5vh;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .large-image {
    max-width: 70%;
    max-height: 100%;
    width: auto;
    height: auto;
    padding: 20px;
    object-fit: contain;
  }
  
  /* Input container styles */
  .input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .input-heading {
    font-size: 3.2rem;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    border: none;
    outline: none;
    text-align: center;
    width: 90%;
  }
  
  .input-heading::placeholder {
    color: #bbb;
  }
  
  /* Sidebar toggle button */
  .show-sidebar-button {
    cursor: pointer;
    position: absolute;
    padding: 10px;
    left: 10px; /* Adjust position */
    top: 10px; /* Adjust position */
  }
  
  .hide-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    cursor: pointer;
  }
  
  /* Media queries for responsiveness */
  @media (max-width: 890px) {
    #timerWrapper {
      width: 100%;
      padding: 10px;
    }
  
    #timerDisplay {
      font-size: 3.5em;
      width: 100%;
    }
  
    .controls {
      margin-left: 5px;
      margin-right: 20px;
    }
  
    .content-container {
      flex-direction: column;
    }
  
    .large-image-container {
      width: 100%;
      border-left: none;
      margin-top: 10px;
    }
  
    .image-container {
      width: 100%;
      padding: 10px;
      justify-content: flex-start;
      margin-top: 10px;
    }
  
    .thumbnail {
      width: 40px;
      height: 40px;
      margin: 5px;
    }
  }
  
  @media (max-width: 650px) {
    #timerWrapper {
      padding: 5px;
    }
  
    #timerDisplay {
      font-size: 2.8rem;
      letter-spacing: 2px;
    }
  
    .input-heading {
      font-size: 2em;
    }
  }
  
  /* Minimalistic scrollbars for all scrollable containers */
  ::-webkit-scrollbar {
    width: 5px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #bbb;
  }
  
  /* Star section styles */
  
  #starContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-left: 2%;
    margin-top: 30px;
  }

  #starTotal {
    display: flex;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .star {
    font-size: 22px;
    line-height: 1;
  }
  
  .add-button,
  .remove-button {
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.5rem; /* Adjust font size if necessary */
      background-color: #fff;
      color: #000;
      border: 1px solid #ccc;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease, color 0.3s ease; 
      line-height: 1; /* Ensure icons are vertically centered */
      padding: 0; /* Remove any default padding */
      margin: 0; /* Remove any default margin */
  }
  
  .add-button:hover,
  .remove-button:hover {
      background-color: #EDF4FF;
  }
  
  .add-button:hover,
  .remove-button:hover {
    background-color: #EDF4FF;
  }
  
  .reset-button {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px; 
    font-size: 24px;
    color: #000;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; 
  }
  
  .reset-button .material-icons {
    font-size: 2rem; 
  }
  
  .reset-button:hover {
    color: #FF5757;
  }
  
  /* Scoreboard (Konkurranse) section styles */
  .scoreboard {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 12px;
    justify-content: center;
  }
  
  .column {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    min-width: 35px;
    width: 35px;
    height: 310px;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
  }
  
  .emoji-button {
    font-size: 28px;
    cursor: pointer;
    margin: 5px;
  }
  
  .emoji {
    font-size: 18px;
    margin: 2px 0;
  }
  
  .emoji-selection {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
  }

  .thumbnail,
.large-image {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}
