nav {
    background-color: rgb(31, 34, 65);
    overflow: hidden;
  }
  
  nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-between;



    margin-top: 25px;
    margin-left: 300px;
    margin-right: 300px;
    margin-bottom: 10px;
  }
  
  nav li {
    float: left;
  }

  .size-class {
    font-size: 20px;
  }
  
  nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 10px 16px; /* adjust padding */
    text-decoration: none;
    border-radius: 25px; /* add rounded corners */
    transition: background-color 0.3s ease;

    font-weight: 500;
  }
  
  nav li a:hover {
    background-color: #ddd;
    color: black;
  }
  

:root {
    font-size: 62.5%; /* 1rem = 10px */

    --color-primary: rgb(31, 34, 65); 
    --color-secondary: rgb(238, 114, 118);  
    --color-font: rgb(255, 255, 255); 

    --color-shadow: rgb(57, 62, 121);             

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 90%;
    background-color: var(--color-primary);
    font-size: 1.6rem;
    font-family: 'Inter', sans-serif;
}

p,
i,
h1 {
    color: var(--color-font);
    font-weight: 500;
}

i {
    font-size: 3.2rem;
}

h1 {
    font-size: 3.2rem;
}

/* ==== CONTENT ==== */

section {
    display: flex;
    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: 1fr 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 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;
}