body {
  position: relative;
  /* Ensure body is the parent container */
  margin: 0;
  /* Remove default margin */
  height: 170vh;
  /* Full viewport height */
  font-family: 'Arial', sans-serif;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  scroll-behavior: smooth;
}


.header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  transform: translate(-50%);
  /* Offset by half the width and height */
  left: 50%;
  /* 50% from the left */
  top: 10px;
  width: 640px;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px 8px 8px 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  /* Depth effect */
}

header h1 {
  color: #ffe812;
  font-size: 1.2;
  margin: 0;
}

.update-logs {
  position: absolute;
  /* Position relative to the body */
  left: 50%;
  /* 50% from the left */
  top: 100px;
  transform: translate(-50%);
  /* Offset by half the width and height */
  background-color: #1a1a1a;
  color: #cfd8dc;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tabs-container {
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  position: absolute;
  left: 50%;
  /* 50% from the left */
  top: 130px;
  width: 640px;
  height: 80px;
  transform: translate(-50%);
  /* Offset by half the width and height */
  justify-content: center;
  border-radius: 8px 8px 0px 0px;
}

.tabs {
  margin-top: 16px;
  display: flex;
  max-width: 640px;
  justify-content: center;
  gap: 12px;
}

.tab {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  background-color: transparent;
  border: none;
  border-left: 2px solid rgba(224, 224, 224, 0.95);
  border-right: 2px solid rgba(224, 224, 224, 0.95);
  border-bottom: 2px solid rgba(224, 224, 224, 0.95);
  padding: 9px 9px;

  color: rgba(224, 224, 224, 0.95);
  cursor: pointer;
  position: relative;
  /* Required for the triangle positioning */
  transition: all 0.3s ease;
  user-select: none
}

.tab:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.tab.active {
  color: white;
  border-color: white;
  /* Highlighted white border when active */
  background-color: rgba(255, 255, 255, 0.1);
}

.tab.active::after {
  content: '';
  position: absolute;
  top: -10px;
  /* Adjust to position the triangle above the tab */
  right: 0px;
  /* Adjust to align with the tab's top right corner */
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid #ffe812;
  /* The triangle */
  transform: rotate(0deg);
}


.center-container {
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  position: absolute;
  /* Position relative to the body */
  left: 50%;
  /* 50% from the left */
  top: 210px;
  width: 640px;
  height: 400px;
  transform: translate(-50%);
  /* Offset by half the width and height */
  text-align: center;
  /* Center text inside the header */
  display: flex;
  flex-direction: column;
  /* Ensures vertical stacking of groups */
  align-items: center;
  border-radius: 0px 0px 8px 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  /* Depth effect */

}


.lower-container {
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  position: absolute;
  /* Position relative to the body */
  left: 50%;
  /* Center horizontally */
  top: 630px;
  /* Position from the top */
  width: 640px;
  height: 100px;
  transform: translate(-50%);
  /* Offset by half the width */
  display: flex;
  /* Use flexbox for alignment */
  flex-direction: column;
  /* Stack items vertically */
  justify-content: center;
  /* Center items vertically */
  align-items: center;
  /* Center items horizontally */
  text-align: center;
  /* Center text inside items */
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  /* Depth effect */
}


/* Checkbox Group */
.break {
  flex-basis: 100%;
  /* Force a line break */
  height: 0;
  /* No visible height */
}

.checkbox-group label {
  margin-top: 8px;
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 1px 1px 1px;
  display: inline-block;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
  /* Hide the checkbox */
}

.custom-checkbox label {
  padding: 10px 10px;
  /* Increased padding for a larger clickable area */
  cursor: pointer;
  /* Pointer cursor for interactivity */
  font-size: 16px;
  /* Larger font size */
  font-weight: bold;
  /* Bold font for readability */
  background-color: rgba(196, 196, 196, 0.1);
  color: rgba(196, 196, 196, 0.9);
  /* White font color */
  margin-right: 10px;
  /* Spacing between labels */
  display: inline-block;
  /* Proper alignment */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition */
  user-select: none;
  /* Prevent text selection */
  position: relative;
  /* For pseudo-elements */
  text-transform: uppercase;

}

.custom-checkbox label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Match label corners */
  border: 1px solid rgba(255, 255, 255, 0.8);
  /* Distance between the label and the border */
  z-index: -1;
  clip-path: polygon(0% 0%, 20% 0%, 20% 10%, 40% 10%, 40% 0%, 60% 0%, 60% 10%,
      80% 10%, 80% 0%, 100% 0%, 100% 20%, 90% 20%, 90% 40%,
      100% 40%, 100% 60%, 90% 60%, 90% 80%, 100% 80%, 100% 100%,
      80% 100%, 80% 90%, 60% 90%, 60% 100%, 40% 100%, 40% 90%,
      20% 90%, 20% 100%, 0% 100%, 0% 80%, 10% 80%, 10% 60%,
      0% 60%, 0% 40%, 10% 40%, 10% 20%, 0% 20%);
  /* Creates interrupted sections */
}

.custom-checkbox input[type="checkbox"]:checked+label {
  color: white;
  /* Darker font color for contrast */
  background-color: rgba(255, 232, 18, 0.4);
  /* Distance between the label and the border */
  box-shadow:
    0 0 2px rgba(118, 110, 45, 0.3),
    /* Inner glow */
    0 0 4px rgba(240, 237, 140, 0.5),
    /* Middle glow */
    0 0 8px rgba(240, 237, 140, 0.8),
    /* Outer glow */
    0 0 16px rgba(240, 237, 140, 1.0);
  /* Farthest glow */
  text-shadow:
    0 0 12px rgba(255, 204, 0, 0.5),
    /* Small inner text glow */
    0 0 24px rgba(255, 204, 0, 0.8),
    /* Middle text glow */
    0 0 48px rgba(255, 204, 0, 1.0);
  /* Outer text glow */
  color: rgba(255, 255, 255, 1);
  /* Bright text for contrast */
  transition: all 0.1s ease;
  /* Smooth transition */
}


.custom-checkbox input[type="checkbox"]:checked+label::before {
  border-color: #ffe812;
  /* Bright dashed border for glowing effect */
}

.custom-checkbox label:hover {
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.8);
}

#difficultyLabel {
  outline: 5px solid transparent;
  /* Creates a gap */
  outline-offset: 5px;
  /* Distance between the label and the border */
  padding: 10px 20px;
  /* Increased padding for a larger clickable area */
  cursor: pointer;
  /* Pointer cursor for interactivity */
  font-size: 16px;
  /* Larger font size */
  font-weight: bold;
  /* Bold font for readability */
  background-color: rgba(196, 196, 196, 0.1);
  margin-top: 24px;
  color: rgba(196, 196, 196, 0.9);
  /* White font color */
  display: inline-block;
  /* Proper alignment */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  /* Smooth transition */
  user-select: none;
  /* Prevent text selection */
  position: relative;
  /* For pseudo-elements */
  text-transform: uppercase;
}

#difficultyLabel[data-difficulty="hard"]::before {
  outline: 5px solid transparent;
  /* Creates a gap */
  outline-offset: 5px;
  position: absolute;
  border-radius: inherit;
  /* Match the border-radius of the parent */
  box-shadow:
    0 0 15px rgba(255, 150, 0, 0.6) 0 0 30px rgba(255, 150, 0, 0.4);
  z-index: -1;
  /* Place behind the content */
}

#difficultyLabel[data-difficulty="insane"]::before {
  outline: 5px solid transparent;
  /* Creates a gap */
  outline-offset: 5px;
  position: absolute;
  border-radius: inherit;
  /* Match the border-radius of the parent */
  box-shadow:
    0 0 20px rgba(255, 100, 0, 0.8),
    0 0 40px rgba(255, 100, 0, 0.6),
    0 0 60px rgba(255, 100, 0, 0.4);
  z-index: -1;
  /* Place behind the content */
}


#difficultyLabel[data-difficulty="easy"]::before {
  outline: 5px solid transparent;
  /* Creates a gap */
  outline-offset: 5px;
  position: absolute;
  border-radius: inherit;
  /* Match the border-radius of the parent */
  box-shadow:
    0 0 15px rgba(255, 150, 0, 0.6),
    0 0 30px rgba(255, 150, 0, 0.4);
  z-index: -1;
  /* Place behind the content */
}


#difficultyLabel[data-difficulty="any"] {
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.0);
  /* Moderate glow */
}

#difficultyLabel[data-difficulty="easy"] {
  box-shadow:
    0 0 15px rgba(255, 150, 0, 0.6), 
    0 0 30px rgba(255, 150, 0, 0.4);
  text-shadow:
    0 0 12px rgba(255, 204, 0, 0.5),
    /* Small inner text glow */
    0 0 24px rgba(255, 204, 0, 0.8),
    /* Middle text glow */
    0 0 48px rgba(255, 204, 0, 1.0);
  /* Outer text glow */
  background-color: rgba(196, 196, 196, 0.05);
  color: white;
}

#difficultyLabel[data-difficulty="hard"] {
  text-shadow:
    0 0 20px rgba(255, 100, 0, 0.8),
    0 0 40px rgba(255, 100, 0, 0.6),
    0 0 60px rgba(255, 100, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.0);
  color: white;
}

#difficultyLabel[data-difficulty="insane"] {
  text-shadow:
    0 0 25px rgba(255, 50, 0, 0.5),
    0 0 50px rgba(255, 50, 0, 0.7),
    0 0 80px rgba(255, 50, 0, 1);
  background-color: rgba(196, 196, 196, 0.1);
  color: white;
}

#difficultyLabel[data-difficulty="malevelon"] {
  text-shadow:
    0 0 30px rgba(255, 0, 0, 1),
    0 0 40px rgba(255, 0, 0, 1),
    0 0 80px rgba(255, 0, 0, 1);
  color: white;
  background-color: rgba(255, 255, 255, 0.0);
}


#randomizeButton {
  background-image: repeating-linear-gradient(45deg, rgba(204, 176, 0, 0.3), rgba(204, 176, 0, 0.3) 2px, transparent 4px, transparent 6px);
  background-color: rgba(16, 16, 16, 0.5);
  border: #ffe812 solid 3px;
  color: #ffe812;
  padding: 15px 64px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 4px 4px 4px 4px;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 0 2px yellow;
  transition: background-color 0.3s ease;
  user-select: none;
}

#randomizeButton:hover {
  background-image: None;
  border: #ffe812 3px;
  background-color: #ffe812;
  box-shadow: 0 0 16px #ffe812;
  color: black;
  /* Enhanced yellow glow on hover */
}


/* Results Section */
.section h3 {
  color: #ffe812;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

#resultHeader {
  font-size: 1.2rem;
  /* Prominent heading size */
  color: #ffe812;
  /* Bright yellow for contrast */
  margin-top: 16px;
}

#results-section {
  position: absolute;
  /* Keep it in place on the screen */
  top: 210px;
  width: 640px;
  height: 400px;
  left: 50%;
  /* Center horizontally */
  transform: translate(-50%);
  /* Center the section */
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  /* Depth effect */
  border-radius: 0px 0px 8px 8px;

}

#resultField {
  color: #585a5a;
  /* Ensuring text stands out */
  margin-top: 16px;
  font-size: 24px;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  line-height: 0.8;
  padding-bottom: 8px;
  animation:
    typing 0.5s steps(40, end),
    blink-caret .75s step-end infinite
}


/* Tooltip container */
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip text */
.tooltip {
  visibility: hidden;
  width: 220px;
  background-color: black;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 5px;
  border-radius: 5px;
  white-space: pre-line;
  text-transform: none;

  /* Positioning */
  position: absolute;
  top: 35px; /* Adjust to position tooltip above the label */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;

  /* Fade-in effect */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px; /* Adjust based on tooltip's position */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

/* Show the tooltip on hover */
.tooltip-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}


@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: rgb(0, 0, 0);
  }
}

.enable-all {
  padding: 5px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  /* Make checkmarks a bit larger */
  font-weight: bold;
  color: gray;
  /* Default color for not-all-checked state */
}

.enable-all:hover {
  background-color: transparent;
  text-shadow: 0 0 16px rgba(255, 255, 255, 1.0);
  /* Highlight color on hover */
}

.enable-all.all-checked {
  color: #ffe812;
  /* Bright color when all checkboxes are checked */
}

.socialfooter {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  /* Position relative to the body */
  left: 50%;
  /* 50% from the left */
  top: 720px;
  width: 640px;
  height: 60px;
  transform: translate(-50%);
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.5);

}

@media (max-width: 431px) {
  .header {
    width: 90%;
    height: 80px;
    top: 5px;
    border-radius: 6px;
  }

  .header h1 {
    font-size: 1rem;
  }

  .checkbox-group {
    display: flex;
    /* Use Flexbox for stacking */
    flex-direction: column;
    /* Stack items vertically */
    justify-content: flex-start;
    /* Align to the top */
    align-items: center;
    /* Center items horizontally */
    gap: 10px;
    /* Space between items */
  }

  .custom-checkbox {
    width: 100%;
    /* Make each item span the full width */
    max-width: 100%;
    /* Prevent overflow */
    justify-content: flex-start;
    /* Align label and checkbox to the left */
  }

  .custom-checkbox label {
    background-color: rgba(128, 128, 128, 0.75);
    /* Default background color, changes based on checkbox state */
    padding: 10px 10px;
    /* Increased padding for a larger clickable area */
    /* Rounds the corners of the label */
    cursor: pointer;
    /* Changes cursor to indicate clickable items */
    font-size: 12px;
    /* Larger font size for better readability */
    font-weight: bold;
    /* Makes the font bold */
    color: white;
    /* Changes text color for better contrast with the background */
    /* Adds space between the labels */
    display: inline-block;
    /* Ensures proper spacing and alignment */
    transition: background-color 0.3s ease;
    /* Smooth transition for background color change */
    user-select: none
  }

  .checkbox-group label {
  margin-top: 6px;
  margin-left: 6px;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 8px 8px 8px 8px;
  display: inline-block;
}

  .update-logs {
    width: 90%;
    font-size: 0.8rem;
    top: 80px;
  }

  .tabs-container {
    width: 90%;
    ;
    height: 60px;
    top: 120px;
  }

  .tab {
    font-size: 16px;
    padding: 4px;
  }

  .center-container {
    width: 90%;
    height: 420px;
    top: 180px;
    border-radius: 0px 0px 6px 6px;
    display: flex;
    justify-content: center;
    /* Horizontally center the child */
    align-items: center;
    overflow: hidden;
  }

  .lower-container {
    width: 90%;
    height: 80px;
    top: 620px;
    border-radius: 6px;
  }

  #resultField {
    font-size: 16px;
    padding-top: 4px;
  }

  #results-section {
    width: 90%;
    height: 340px;
    top: 180px;
    border-radius: 0px 0px 6px 6px;
  }

  #resultHeader {
    font-size: 1.1rem;
    /* Prominent heading size */
    color: #ffeb3b;
    /* Bright yellow for contrast */
    margin-top: 12px;
    padding-bottom: 12px;
  }

  .socialfooter {
    width: 90%;
    height: 50px;
    top: 740px;
  }
}

#randomizeButton {
  padding: 10px 40px;
  font-size: 14px;
}