:root {
  /* Light theme colors */
  --background-color: #f0f0f0;
  --text-color: #363636;
  --text-color-inversed: #fff;
  --text-days: #898989;
  --text-days-future: #c2c2c2;
  --container-bg-color: #fff;
  --button-bg-color: #ebebeb;
  --button-hover-bg-color: #e6e6e6;
  --colors-switch: var(--primary-color);
}

[data-theme="dark"] {
  /* Dark theme colors */
  --background-color: #292929;
  --text-color: #fff;
  --text-color-inversed: #444;
  --text-days: #c2c2c2;
  --text-days-future: #8a8a8a;
  --container-bg-color: #363636;
  --button-bg-color: #666;
  --calendar-bg-color: #333;
  --button-hover-bg-color: #777;
  --input-bg-color: #555;
  --input-text-color: #fff;
  --input-border-color: #666;
  --colors-switch: var(--secondary-color);
}

[data-theme="dark"] .logo img {
  filter: invert(100%);
}

body {
  font-family: 'Lexend', sans-serif;
  justify-content: center;
  align-items: center;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.github-logo {
  fill: var(--container-bg-color);
  color: var(--text-color);
  position: absolute;
  top: 0;
  border: 0;
  right: 0;
  aria-hidden="true";
}

#appContainer {
  background-color: var(--container-bg-color);
  padding: 1.875em 1.875em 0.625em;
  border-radius: 2.5em;
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.colorBox {
  width: 5em;
  padding: 1em 2em 1em 2em;
  height: 8em;
  border-radius: 0.9375em;
  margin: 0.625em;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.colorInfo {
  text-align: center;
}

.colorContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.colorTitle {
  font-weight: bold;
  margin: 0;
  font-size: 0.8em;
}

.colorName  {
  font-size: 0.8em;
}

.copyButton {
  background-color: var(--button-bg-color);
  color: var(--text-color);
  border: none;
  border-radius: 0.375em;
  padding: 0.3125em 0.625em;
  margin-top: 0.75em;
  cursor: pointer;
  box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.1);
  font-family: 'Lexend', sans-serif;
}

.copyButton:hover {
  background-color: var(--button-hover-bg-color);
  color: var(--text-color);
}

.shareButton {
  margin-bottom: 1.875em;
  background-color: var(--button-bg-color);
  color: var(--text-color);
  border: none;
  border-radius: 0.5em;
  padding: 0.625em 1.25em;
  margin-top: 1.25em;
  cursor: pointer;
  box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.1);
  font-family: 'Lexend', sans-serif;
  margin-bottom: 1.25em;
  font-size: 1em;
}


.shareButton:hover {
  background-color: var(--button-hover-bg-color);
  color: var(--text-color);
}

.description {
  font-size: 1em;
  text-align: center;
  margin: 0;
  padding: 0.375em;
  line-height: 1.5;
}

.description a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 0.07em solid var(--text-color);
}

#modalOverlay,
#modalOverlay2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999; /* Ensure the overlay is on top */
}

#customAlert,
#shareAlert {
  background-color: var(--container-bg-color);
  padding: 1.25em;
  border-radius: 0.625em;
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1000; /* Ensure the alerts are on top of the overlay */
  max-width: 90%;
  text-align: center;
}

#colorsContainer {
  display: flex;
  justify-content: center;
  margin-top: 0.25em;
}

.logo {
  text-align: center !important;
}

.logo img {
  filter: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 2.5em;
  height: 1.5em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}


.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-color);
  transition: 0.4s;
  border-radius: 1.5em;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.125em;
  width: 1.125em;
  left: 0.1875em;
  bottom: 0.1875em;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--background-color);
}

input:checked+.slider:before {
  transform: translateX(1em);
}

#countdownContainer {
  padding: 0.625em;
  text-align: center;
  font-size: 1em;
}

#countdown {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

@media (max-width: 480px) {
  #appContainer {
      background-color: transparent;
      box-shadow: none;
      border: none;
      width: auto;
      padding-bottom: 0em;
  }

      body {
      background-color: var(--container-bg-color);
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      height: auto;
      padding-top: 20px;
      }

      #countdownContainer {
          padding: 0em;
          text-align: center;
          margin-top: 0em;
          margin-bottom: 0em;
      }

      #countdown {
          margin-top: 0.25em;
          margin-bottom: 0em;
      }

      #customAlert {
          margin-top: 2em;
      }

      #shareAlert {
          margin-top: 2em;
      }

      .github-logo {
          fill: var(--background-color);
          color: var(--text-color);
          position: absolute;
          top: 0;
          border: 0;
          right: 0;
          aria-hidden="true";
      }
  
}