@import url('./modal.css');

@font-face {
  font-family: 'Rubik';
  src: url('../assets/font/Rubik-VariableFont_wght.ttf');
}

@font-face {
  font-family: 'segments';
  src: url('../assets/font/Segment.ttf');
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Rubik', sans-serif;
}

:root {
  --primary: #007991;
  --white: #fff;
}

body {
  background: linear-gradient(370deg, #390099, #007991 55%, #38ada9);
  font-size: clamp(0.4em, calc(0.5em + 1vw), 1.1em);
}

ul {
  list-style: none;
}

input,
button {
  outline: none;
  border: none;
}

main {
  width: 100%;
  height: 100vh;
  flex-direction: column;
  row-gap: 20px;
}

.flex, i{
  display: flex;
  align-items: center;
  justify-content: center;
}

.error {
  align-items: center;
  background-color: var(--white);
  color: var(--primary);
  padding: 6px 28px;
  border-radius: 4px;
  font-size: 1em;
  gap: 12px;
  font-weight: 500;
  display: none;
}

.error i {
  font-size: 1.4em;
}

.form-timer {
  flex-direction: column;
  row-gap: 24px;
}

.form-timer .inputs {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.1fr 1fr 0.1fr 1fr;
  gap: 8px;
  justify-content: center;
}

.inputs :is(input, h2) {
  border-radius: 12px;
  padding: 24px 20px;
  font-size: 6.5em;
  width: 4ch;
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: 'segments';
  font-weight: 500;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.form-timer .numbers {
  display: none;
}

.form-timer .names{
  grid-template-columns: repeat(3, 1fr);
}

.inputs h1 {
  align-self: center;
  text-align: center;
  font-weight: 400;
  font-size: 1.2em;
  margin-bottom: -12px;
  color: var(--white);
}

.form-timer .buttons {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.separator {
  flex-direction: column;
  row-gap: 12px;
}

.separator li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--white);
}

.buttons button {
  width: max-content;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1.8em;
  color: var(--primary);
}

.disable {
  display: none !important;
}

.active {
  display: flex !important;
}

.active-numbers {
  display: grid !important;
}

.alarm-animation {
  background-size: 400% 400%;

  animation: color 1s ease infinite;
}

@keyframes color {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

@media screen and (max-width: 700px) {
  .form-timer .inputs:not(.names){
    grid-template-columns: 1fr;
  }
}
