:root {
  font-size: 62.5%; /* 1rem = 10px */

  --color-primary: hsl(235, 35%, 19%);
  --color-secondary: hsl(358, 78%, 69%);
  --color-font: hsla(0, 0%, 100%, 0.902);

  --color-shadow: hsl(235, 36%, 35%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: var(--color-primary);
  font-size: 1.6rem;
  font-family: 'Open sans', sans-serif;
}

p,
i,
h1 {
  color: var(--color-font);
}

i {
  font-size: 3.2rem;
}

h1 {
  font-size: 3.2rem;
}

/* ==== CONTENT ==== */

/* ==== INITIAL PAGE*/

.initial-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.sub-text {
  font-size: 1.5em;
  margin-bottom: 40px;
}

.initial-page h1 {
  font-size: 3.2em;
  margin-top: 70px;
  margin-bottom: 70px;
}

.initial-page p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.initial-page input[type="number"] {
  font-size: 2rem;
  width: 140px;
  height: 50px;
  border: none;
  border-radius: 25px;
  text-align: center;
  margin-bottom: 20px;
}

.initial-page label {
  font-size: 1.2em;
  margin-bottom: 10px;
}

#start-timer-button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  width: 200px;
  height: 70px;
  border: none;
  border-radius: 25px;
  background-color: var(--color-secondary);
  margin-top: 20px;
  cursor: pointer;
}

#start-timer-button i {
  margin-right: 10px;
}

#start-timer-button p {
  margin: 0;
}

/* Remove arrows in the input boxes*/
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* ==== TIMER PANEL === */

section {
  display: none; 
  align-items: center;
  height: 100%;
}

.container {
  width: min(42.5rem, 100%);
  margin-inline: auto;
  padding-inline: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.painel{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  text-align: center;
  width: 20rem;
  margin-block: 5rem;
  padding: 1rem;
  border-radius: 10rem;
  -webkit-box-shadow: 0px 0px 15px 10px var(--color-shadow); 
  box-shadow: 0px 0px 15px 10px var(--color-shadow);
}

.painel #vertical-row {
  background-color: hsl(235, 35%, 31%);
  width: 2px;
  margin-left: 29px;
}

.painel p{
  opacity: .8;
  transition: 1s ease-in;
}

.painel p.active {
  opacity: 1;
  color: var(--color-secondary);
}

.timer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  -webkit-box-shadow: 0px 0px 15px 10px var(--color-shadow); 
  box-shadow: 0px 0px 15px 10px var(--color-shadow);
}

.circle{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background-color: var(--color-secondary);
  position: relative;
}

.circle::before{
  content: '';
  position: absolute;
  width: 95%;
  height: 95%;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.time {
  position: relative;
  display: flex;
  flex-direction: row;
}

.time p{
  font-size: 5.6rem;
}

.time p:nth-of-type(2){
  position: relative;
  top: -.5rem;
  margin-inline: 1rem;
}

.controls {
  margin-top: 3rem;
}

.controls button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.controls #reset {
  display: none;
}
