:root {
    --shadow-color: 0deg 0% 63%;
    --shadow-elevation-high:
    0.7px 0.8px 1.2px hsl(var(--shadow-color) / 0.34),
    3.8px 4.6px 6.7px -0.4px hsl(var(--shadow-color) / 0.34),
    7.2px 8.5px 12.5px -0.7px hsl(var(--shadow-color) / 0.34),
    11.8px 14px 20.6px -1.1px hsl(var(--shadow-color) / 0.34),
    18.8px 22.3px 32.8px -1.4px hsl(var(--shadow-color) / 0.34),
    29.4px 34.8px 51.3px -1.8px hsl(var(--shadow-color) / 0.34),
    44.7px 53px 78px -2.1px hsl(var(--shadow-color) / 0.34),
    65.8px 78px 114.8px -2.5px hsl(var(--shadow-color) / 0.34);
}
#converter {
    position: relative;
}
#converter-settings {
    box-shadow: var(--shadow-elevation-high);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 33px;
    z-index: 2;
    margin: 0;     
    max-width: none; 
}
.converter-settings-placeholder {
    height: 130px; 
}
#converter-container {
    background-color: #00cfc1;
    box-shadow: var(--shadow-elevation-high);
    border: 3px solid #00B8AB;
    outline: 3px solid #00cfc1;
    border-radius: 25px;
    padding: 40px 20px 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    z-index: 1;
    position: relative;
}
#converter-body {
    background-color: #00cfc1;
    border-radius: 20px;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: row;
    gap: 40px;
}
#converter-body .temperature-unit {
    background: #FFF;
    border: 3px solid #00B8AB;
    outline: 3px solid #00cfc1;
    box-shadow: rgba(0,0,0,0.275) 0px 0px 25px 0px;
    padding: 20px;
    border-radius: 15px;
    flex: 1 1 0;
    min-height: 100px;
    min-width: 0;
    position: relative;
    font-size: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
#converter-body .temperature-unit:focus-within {
    outline: 3px solid #EDD892;
}
#converter-body .temperature-unit .unit-input {
    color: #444;
    flex: 1;
    justify-content: center;
    align-items: center;
    display: flex;
}
#converter-body .temperature-unit .unit-input:focus {
    color: #222;
    outline: none;
}
#converter-body .temperature-unit .unit-symbol {
    user-select: none;
    color: #444;
}
#converter-body .temperature-unit:focus-within .unit-symbol {
    color: #222;
}
#converter-settings {
    background-color: #222;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    color: #FFF;
    padding: 30px 20px 30px 20px;
    max-width: 700px;
    margin: -20px auto 0 auto;
    z-index: 2;
}
#rounding-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}
#rounding-toggle .option {
    flex: 1;
    user-select: none;
    transition: color 0.4s ease;
}
#rounding-toggle .option:first-child {
    text-align: right;
}
#rounding-toggle .option:last-child {
    text-align: left;
    color: #888;
}
#rounding-toggle:has(input:checked) .option:first-child {
    color: #888;
}
#rounding-toggle:has(input:checked) .option:last-child {
    color: #FFF;
}
#rounding-toggle .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  #rounding-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  #rounding-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFF;
    -webkit-transition: .4s;
    transition: .4s;
    outline: 3px solid #444;
  }
  #rounding-toggle .slider:before {
    position: absolute;
    content: "";
    height: 23px;
    width: 23px;
    left: 3px;
    bottom: 2.5px;
    background-color: #D60E0A;
    -webkit-transition: .4s;
    transition: .4s;
    border: 3px solid #EA0F0B;
  }
  #rounding-toggle .switch:hover .slider:before {
    background-color: #EA0F0B;
  }
  #rounding-toggle input:checked + .slider:before {
    -webkit-transform: translateX(25px);
    -ms-transform: translateX(25px);
    transform: translateX(25px);
  }
  #rounding-toggle .slider.round {
    border-radius: 34px;
  }
  #rounding-toggle .slider.round:before {
    border-radius: 50%;
  }
@media screen and (max-width: 825px) {
    #converter-container {
        max-width: 90vw;
    }
    #converter-settings {
        max-width: 70vw;
    }
    #converter-body {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
}