*,
*::before,
*::after {
  box-sizing: inherit;
  outline: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

html {
  box-sizing: border-box;
  overflow-y: scroll;
}

/* Pomodoro */

:root {
  --pomodoro: hsl(0, 0%, 0%);
  --shortBreak: hsl(233, 23%, 40%);
  --longBreak: hsl(105, 16%, 40%);
}

.pomodoro-count {
  padding-top: 30px;
}

/* Global CSS */

body {
  background-color: var(--pomodoro);
  transition: background-color 1s ease;
  font-family: Rubik, Roboto, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-image: url("images/hypher-background.webp");
}

a {
  color: inherit; /* Inherits color from parent */
  text-decoration: none; /* Removes underline */
}

nav {
  padding: 32px 32px 32px 32px;
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 16px;
}

nav li {
  height: 32px;
}

.hide-on-mobile {
  padding: 0 32px;
}

nav a {
  height: 100%;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: white;
}

nav a:hover {
  opacity: 0.8;
}

nav li:first-child {
  margin-right: auto;
}

nav img {
  width: 40vw;
  max-width: 150px;
  height: auto;
}

svg,
.menu-icon {
  fill: white;
}

.button-close {
  cursor: pointer;
}

.button-close:hover {
  opacity: 0.8;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 60%;
  z-index: 999;
  background-color: rgb(36, 36, 36);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px;
}

.menu-button {
  display: none;
  cursor: pointer;
}

.sidebar li {
  width: 100%;
}

.sidebar a {
  width: 100%;
}

#main-section {
  background-image: url("images/hypher-background.jpg");
}

.homepage-h1 {
  font-size: 40px;
  padding: 40px;
}

.logo {
  position: absolute;
  top: 5%;
  left: 20%;
  transform: translate(-50%, -50%);
  padding: 20px;
  text-align: center;
}

footer {
  position: relative;
  background-color: black;
  z-index: 99;
  text-align: center;
  color: white;
  width: 100%;
  padding: 32px;
  margin-top: auto;
}

.footer {
  position: relative;
  background-color: black;
  z-index: 99;
  text-align: center;
  color: white;
  width: 100%;
  padding: 32px;
  margin-top: auto;
}

.footer a:hover {
  opacity: 0.8;
}

.footer-nav {
  font-size: 14px;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
  font-size: 12px;
}

.footer-nav ul li a {
  margin: 20px 20px;
  text-decoration: none;
  font-size: 12px;
  color: white;
}

.footer-bottom {
  font-size: 12px;
}

.fa-brands {
  color: white;
  width: 32px;
  font-size: 16px;
  padding: 16px;
}

.social-icons {
  display: flex;
  justify-content: center;
}

.social-icons a {
  text-decoration: none;
  padding: 16px;
  margin: 16px;
}

.social-icons a:hover {
  opacity: 1;
}

.main-content {
  background-image: url('/images/hypher-background.webp/');
    background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  height: 100vh;
}

.main-content-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  height: 100vh;
}

.homepage-h1 {
  font-size: 80px;
  color: rgb(255, 255, 255);
}

.homepage-p {
  font-size: 16px;
  color: rgb(255, 255, 255);
  max-width: 600px;
}

button {
  color: black; /* Or your preferred color like white or black */
  -webkit-text-fill-color: inherit; /* For iOS Safari */
}

.home-button {
  margin: 5px 10px;
  padding: 20px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.home-button:hover {
  opacity: 0.8;
  text-decoration: none;
}

.wrapper-homepage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  text-align: center;
}

.wrapper {
  position: relative;
  width: 100%;
  background-color: #f3f3f3;
  margin: 0 auto;
}

progress {
  border-radius: 2px;
  width: 100%;
  height: 10px;
  position: absolute;
  top: 0;
}

progress::-webkit-progress-bar {
  background-color: rgba(0, 0, 0, 0.1);
}

progress::-webkit-progress-value {
  background-color: #fff;
}

.timer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 16px;
  text-align: center;
}

.clock {
  margin-top: 48px;
  margin-bottom: 32px;
  font-size: 12rem;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: center;
}

.mode-button {
  font-size: 16px;
  height: 32px;
  cursor: pointer;
  box-shadow: none;
  font-weight: medium;
  color: #fff;
  border: 1px solid transparent;
  margin: 0px;
  border-radius: 4px;
  padding: 8px 16px;
  background: none;
}

.mode-button.active {
  border-color: #fff;
}

.main-button {
  cursor: pointer;
  font-size: 24px;
  height: 64px;
  text-transform: uppercase;
  color: black;
  width: 160px;
  background-color: white;
  margin: 24px;
  padding: 16px;
  border-radius: 48px;
  transition: color 0.5s ease-in-out 0s;
  border: 3px;
  border-style: solid;
  border-color: white;
}

.main-button:hover {
  opacity: 0.8;
}

.main-button.active {
  color: #ffffff;
  background-color: transparent;
  border: 3px;
  border-style: solid;
  border-color: white;
}

button:focus,
button:active {
  outline: none;
}

.hidden {
  display: none;
}

.playlist {
  position: relative;
  padding: 0px;
  margin: 0 auto;
  width: 100%;
  max-width: 640px;
  padding-bottom: 96px;
}

iframe {
  display: block;
  border-style: none;
  margin: 0 auto;
}

.faq {
  position: relative;
  padding: 64px 48px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  align-items: center;
}

/* Font Styles */

h1 {
  font-size: 48px;
  color: black;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
  font-weight: bold;
}

.h1-white {
  font-size: 48px;
  color: white;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
  font-weight: bold;
}

h2 {
  font-size: 32px;
  color: white;
  text-align: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.h2-black {
  color: black;
}

p,
ol {
  font-size: 16px;
  letter-spacing: 0.5px;
  line-height: 24px;
}

.p-white {
  color: white;
}

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  color: #333;
  margin-top: 5vh;
  margin-bottom: 5vh;
  padding: 0 3vw;
  overflow-y: auto;
}

.indent {
    padding-left: 2em;
}

/* new todo */

.app {
  height: 100vh;
}

.app-title {
  text-align: center;
  margin-bottom: 16px;
}

.todo-list-section {
  background-color: #1e1e1e;
}

.todo-list {
  list-style: none;
  margin-bottom: 16px;
}

.todo-item {
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.todo-item span {
  flex-grow: 1;
  margin-left: 10px;
  margin-right: 10px;
  font-size: 16px;
}

::placeholder {
  font-family: Rubik, Roboto, sans-serif;
}

.done span {
  text-decoration: line-through;
}

input[type="checkbox"] {
  display: none;
}

.dueDate-todo-list {
  font-family: Rubik;
  background-color: white;
  padding: 8px;
  margin-right: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.tick {
  width: 32px;
  height: 32px;
  border: 3px solid #808080;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.tick::before {
  content: "✓";
  font-size: 16px;
  display: none;
  color: #808080;
}

.done .tick::before {
  display: inline;
}

.todo-delete-icon {
  width: 0px;
  height: 0px;
}

.delete-todo {
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
}

.delete-todo svg {
  width: 32px;
  height: 32px;
  pointer-events: none;
  color: white;
}

form {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

input[type="text"] {
  width: 100%;
  padding: 16px;
  border-radius: 5px;
}

.empty-state {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: none;
}

.checklist-icon {
  margin-bottom: 24px;
}

.empty-state-title,
.empty-state-description {
  margin-bottom: 24px;
  color: white;
}

.todo-list:empty {
  display: none;
}

.todo-list:empty + .empty-state {
  display: flex;
}

.sk-ww-rss-feed {
  background-color: red;
}

.sortable-ghost {
  opacity: 0.4;
  background: #ddd;
}

/* case converter */

.case-converter textarea {
  width: 100%;
  max-width: 700px;
  height: 150px;
  padding: 1rem;
  box-sizing: border-box;
  font-size: 1rem;
}

#inputText {
  margin: auto;
  padding: 20px;
  border-radius: 5px;
  width: 600px;
  display: block;
}

#outputText {
  margin: 10px auto 80px auto;
  padding: 20px;
  border-radius: 5px;
  width: 600px;
  display: block;
}

#cc-button-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 1rem 0;
}

.cc-button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 50px;
  font-family: Rubik, Roboto, sans-serif;
}

.cc-button:hover {
  opacity: 0.8;
  text-decoration: none;
  cursor: pointer;
}

/* responsive web design */

@media (max-width: 800px) {
  .hide-on-mobile {
    display: none;
  }
  .menu-button {
    display: block;
  }

  .clock {
    font-size: 8rem;
  }
}

@media (max-width: 700px) {
  .footer-nav ul {
    flex-direction: column;
  }
  .footer-nav ul li {
    width: 100%;
    text-align: center;
    margin: 8px 0px;
  }
}

@media screen and (max-width: 640px) {
  .clock {
    font-size: 8rem;
  }

  .homepage-h1 {
    font-size: 3rem;
    padding: 0px auto;
  }

  .homepage-p {
    padding: 20px;
  }

  #case-converter {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    font-size: 1rem;
    height: 100vh;
  }

  #cc-button-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 1rem 0;
  }

  .cc-button {
    flex: 1 1 150px;
  }

  textarea {
    font-size: 0.9rem;
  }

  #inputText {
    width: 100%;
  }

  #outputText {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .sidebar {
    width: 60%;
  }

  .clock {
    font-size: 6rem;
  }
}
