body {
    /*font-family: "Gill Sans MT", "Gill Sans", Calibri, sans-serif;*/
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    background-color: #000;
    color: #fff;
    margin: 10px 0; /* Adds 20px margin to the top and bottom */
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: auto;
    margin: 0;
    transition: background 0.5s ease;
}

/* Container */
.container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    background: linear-gradient(180deg, #000000, #000000, #000000, #171717);
}

body.light-mode {
    /*background: linear-gradient(180deg, #000000, #862f00, #000000, #1f5700); */
    background: linear-gradient(180deg, #000000, #6f003c, #000000, #1f0e35);
}

.dark-theme {
    background-color: #34343496;
    color: #e0e0e0;
}

.light-theme {
    background-color: #34343496;
    color: #ffffff;
}

.dark-theme-button {
    background-color: #2c2c2c;
    color: #7a7a7a;
}

.dark-theme-button:hover {
    background-color: #0f0f0f;
    color: #ffffff;
}

.light-theme-button {
    background-color: #fff;
    color: #000;
}

.light-theme-button:hover {
    background-color: #cecece;
    color: #000;
}

/* slider */
.switch-container {
    display: inline-block;
    text-align: center;
    margin-right: 20px;
    vertical-align: top;
}
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 26px;
    margin-top: 10px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color:rgb(35, 35, 35);
    transition: .4s;
    border-radius: 26px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color:rgb(136, 136, 136);
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider:before {
    background-color: #4c4c4c;
    transform: translateX(12px);
}
.black-slider input:checked + .slider {
    background-color: #252424;
}

.active-team {
    color: yellow;
    font-weight: bold;
    text-decoration: underline;
}

.clickable{
    cursor:pointer;
}

.sub {
    font-size: 14px;
    border: 2px solid #b9b9b969;
    border-radius: 4px;
    padding: 2px 4px;
    margin-left: 10px;
    font-style: oblique;
}

.active-player{
    border-left: 3px solid #ffa901;
}

.r {
    color: #ff7a00;
}

r {
    color: #ff7a00;
}

.blackText {
    color: #000000;
}

.orangeText {
    color: #ff7a00;
}

.grey-text {
    color: #5e5e5eff;
}

.ml-5 {
    margin-left: 5px;
}

.q_spin {
    color: grey;
}

.extraText {
    color: #868484;
    font-size: 13px;
}

.progress-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.icon-text {
    color: #dadada;
    font-style: italic;
    font-weight: bold;
    position: relative;
    top: 3px;
}

.play {
    cursor: pointer;
}

.team-navigation {
  color: #646464;
}

/* TS related */
@keyframes sweep {
0% {
    background-position: -100% center;
  }
  100% {
    background-position: 100% center;
  }
}

/* Form */
.form h3 {
  text-align: center;
  color: #000000;
}

.label {
  font-size: 16px;
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.textarea {
  width: 95%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  margin-bottom: 20px;
}

/* Button Group */
.button-group {
  display: flex;
  justify-content: space-between;
}

.btn {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-randomize {
  background-color: #ff9800;
  color: white;
}

.btn-randomize:hover {
  background-color: #e68900;
  transform: scale(1.05);
}

.btn-submit {
  background-color: #4caf50;
  color: white;
}

.btn-submit:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Output Section */
.output {
  margin-top: 20px;
  padding: 10px;
  border: 1px dashed #007BFF;
  border-radius: 4px;
  background: #f0f8ff;
}

.output h2 {
  font-size: 18px;
  color: #000000;
  margin-bottom: 10px;
}

.line-output span {
  display: inline; /* Change display to inline */
  padding: 2px 4px; /* Add some padding for inline style */
  margin: 0 5px; /* Space between spans */
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: blue;
  color: #fff;
}

.line-output span:nth-child(odd) {
  background-color: blue;
  color: #fff;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid red;
  background-color: #ffe6e6;
  border-radius: 4px;
  display: none; /* Initially hidden */
}

.extraText {
  color: #868484;
  font-size: 13px;
}

#allMatches {
    cursor: pointer;
}
/* topics */
.topic-area {
  display: grid;
  gap: 15px;
  max-width: 1200px;
  margin: 20px auto;
}
.disabled-topic-box {
  font-size: 15px;
  font-weight: bold;
  background: #191919ab;
  color: #303030;
  padding: 14px 20px;
  text-align: center;
  border-radius: 20px;
  cursor: no-drop;
  text-decoration: none;
  position: relative;
}
.topic-box {
  font-size: 15px;
  font-weight: bold;
  background: linear-gradient(to top, #000000, #414141);
  color: #fff;
  padding: 14px 20px;
  text-align: center;
  border-radius: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.topic-box:hover {
  background: linear-gradient(to top, #333, #555);
  transform: scale(1.05);
}

@media (max-width: 768px) {
    .container {
        max-width: 95%;
    }
    .topic-area {
        max-width: 95%;
    }
    .topic-box {
        font-size: 12px;
        padding: 12px 18px;
    }
}