body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8px;
    margin: auto;
    min-height: 100vh;
    background-image: url('../images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

section {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
    text-align: center;
}

#tracker-section {
    flex: 0 1 410px;
    max-width: 410px;
}

#stages-section {
    flex: 1 1 500px;
    max-width: 800px;
}

.timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  background-color: #95D9D9;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  width: 260px;
  height: 260px;
}

.timer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  background-color: #95D9D9;
  border-radius: 50%;
  box-shadow: inset 0px 2px 4px 8px rgb(0 0 0 / 0.05);
  width: 200px;
  height: 200px;
}

#timer {
  font-size: 34px;
  margin: 0;
}

.time-left {
  display: none;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  color: #FECB57;
  font-style: italic;
  font-weight: bold;
}

#time-left {
  margin: 0;
}

button{
  padding: 10px 20px;
  margin: 10px;
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
  background-color: #FECB57;
  font-size: 16px;
  cursor: pointer;
  outline: 0;
  transition: background-color 0.5s ease;
}

button:hover {
  background-color: #95D9D9;
}

button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px auto;
  width: min-content;
}

.duration {
  width: 100%;
  padding: 10px 20px;
  background-color: #F5F8FE;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
}

.duration input {
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
  padding: 10px;
  width: 40px;
  text-align: center;
}

.duration input:focus, 
.duration input:hover, 
.duration input:active {
  outline-color: #95D9D9;
  cursor: pointer;
}

.duration input:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.start-date {
  width: 100%;
  padding: 10px 20px;
  background-color: #F5F8FE;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
}

.start-date input {
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
  padding: 10px;
  text-align: center;
}

.start-date input:focus, 
.start-date input:hover, 
.start-date input:active {
  outline-color: #95D9D9;
  cursor: pointer;
}

.start-date input:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.end-date {
  width: 100%;
  padding: 10px 20px;
  background-color: #F5F8FE;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
}

.end-date input {
  border: 0;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
  padding: 10px;
  text-align: center;
}

.end-date input:focus, 
.end-date input:hover, 
.end-date input:active {
  outline-color: #95D9D9;
  cursor: pointer;
}

.end-date input:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.stages-container {
  display: flex;
}

.level {
  width: 16px;
  background-color: #F5F8FE;
  border-radius: 6px;
}

ul {
  width: 100%;
  list-style-type: upper-roman;
  margin: 0;
  text-align: left;
}

li {
  width: 100%;
}

li h3 {
  margin: 0;
  font-size: 16px;
  color: #FC9A2F;
}

li.stage-not-started h3 {
  color: #FECB57;
}

li.stage-in-progress h3 {
  color: #95D9D9;
}

li.stage-completed h3 {
  color: #d3d3d3;
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    #tracker-section, #stages-section {
        flex-basis: auto;
        width: calc(100% - 80px);
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    section {
        padding: 15px;
        margin: 10px;
        width: calc(100% - 50px);
    }

    #tracker-section, #stages-section {
        width: calc(100% - 50px);
    }

    .timer {
        width: 220px;
        height: 220px;
    }

    .timer-inner {
        width: 180px;
        height: 180px;
    }

    #timer {
        font-size: 30px;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .stages-container {
        flex-direction: column;
    }

    ul {
        list-style-position: inside;
        padding-left: 0;
    }

    li h3 {
        font-size: 15px;
    }
}
