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

body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   min-height: 100vh;
   background: linear-gradient(135deg, #00D4FF 0%, #001014 100%);
}

nav {
   width: 3rem;
   height: 3rem;
   background: #001014;
   margin: 10px;
   border-radius: 100%;
   aspect-ratio: 1;
   display: flex;
   justify-content: center;
   align-items: center;
   color: white;
   font-size: 1.5rem;
   padding: 10px;
   position: fixed;
   top: 0;
   right: 0;
   z-index: 1000;
   transition: all 300ms;

   &:hover {
      background: #0ea5e9;
      /* color: #001014; */
   }
}

main {
   justify-content: center;
   align-items: center;
   background: white;
   padding: 25px;
   border-radius: 16px;
   box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
   width: 350px;
   min-width: fit-content;
   display: flex;
   flex-direction: column;
   gap: 15px;
}

.tittle {
   font-size: 2rem;
   text-align: center !important;
}

#display {
   font-size: 1.5rem;
   background: #f8f9fa;
   user-select: all;
   background: grey;
   font-weight: bold;
   color: #333;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #f8f9fa;
   border-radius: 0.5rem;
   border: 3px solid #e9ecef;
   width: 100%;
   padding: 10px 0;
}

button {
   padding: 12px 24px;
   font-size: 1.1em;
   cursor: pointer;
   border-radius: 8px;
   outline: 0;
   border: none;
   color: white;
   transition: all 0.3s ease-in-out, transform 0.2s ease;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   background: linear-gradient(135deg, #00D4FF 0%, #00BFFF 100%);

   &:hover {
      transform: translateY(-2px);
      background: linear-gradient(135deg, #00BFFF 0%, #001014 100%);
   }
}

input[type="number"] {
   height: 2.5rem;
   color: black;
   background: #fbfdff;
   border-radius: 8px;
   padding: 10px;
   margin: 5px;
   border: 2px solid #00bfff33;
   /* text-align: center; */
   margin-bottom: 10px;
   font-size: 1em;
   outline: none;

   &:hover {
      border: 2px solid #00bfff65;
   }
}


.option-container {
   display: grid;
   grid-template-columns: auto auto;
   justify-content: space-between;
   gap: 16px;
   width: 90%;
}

/* for toggle */

.toggle-container {
   display: flex;
   justify-content: end;
   width: max;
}

.toggle-label {
   position: relative;
   cursor: pointer;
}

.toggle-peer {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border-width: 0;
}

.toggle-div {
   width: 32px;
   height: 18px;
   background-color: rgba(128, 128, 128, 0.315);
   border-radius: 30px;
   transition: all 300ms;
}

.toggle-peer:checked~.toggle-div {
   background-color: #001014;
}

.toggle-peer:checked~.toggle-circle {
   transform: translateX(14px);
}

.toggle-peer:checked~.text-pm {
   display: inline;
}

.toggle-peer:checked~.text-am {
   display: none;
}

.toggle-circle {
   position: absolute;
   left: 2px;
   top: 2px;
   width: 14px;
   height: 14px;
   background-color: white;
   border-radius: 100%;
   transition: all 300ms ease-in-out;
}