:root {
  --primary-color: rgb(186, 73, 73);
  --secondary-color: hsl(357, 74%, 67%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  overflow: hidden;
  background-color: var(--primary-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s all;
}

.container {
  text-align: center;
  max-width: 600px;
  width: 90%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 1rem;
}
.mode {
  display: none;
}

.mode.active {
  display: block;
}

h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
  @media only screen and (max-width: 500px) {
    font-size: 1.6rem;
  }
}

p {
  color: #fff;
  font-size: 10rem;
  margin-bottom: 2rem;
  font-weight: 600;
  @media only screen and (max-width: 500px) {
    font-size: 5.5rem;
    transform: scale(1.3);
  }
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 3rem;

  @media only screen and (max-width: 500px) {
    flex-direction: column;
  }
}

.modes-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  @media only screen and (max-width: 500px) {
    align-items: start;
    gap: 1.5rem;
    flex-direction: column;
  }
}

.mode-item button {
  font-size: 1rem;
  padding: 1.2rem;
  border-radius: 1rem;
  border: none;
  line-height: 1.7;
  outline: none;
  background-color: rgba(233, 116, 116, 0.425);
  backdrop-filter: blur(5px);
  box-shadow: 0px 6px 0px hsl(0, 1%, 85%);
  font-weight: 600;
  color: white;
  border: 2px solid white;
  transition: 0.1s all ease;

  @media only screen and (max-width: 500px) {
    font-size: 0.8rem;
    padding: 1rem;
    display: block;
    width: 100%;
  }
}
.mode-item {
  @media only screen and (max-width: 500px) {
    width: 100%;
  }
}

.mode-item button.active {
  transform: translateY(6px);
  box-shadow: none;
}

.buttons-container button {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--primary-color);
  background: #fff;
  box-shadow: 0px 6px 0px hsl(358, 0%, 92%);
  border-radius: 5px;
}

.start.active,
.reset:active {
  transform: translateY(6px);
  box-shadow: none;
}
