body, form{
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

*{
  font-family: "Comic Sans MS", "Comic Sans", sans-serif !important;
}

.spinbox {
  width: 100%;
  max-width: 300px;
  padding: 18px;
  font-size: 2rem;
  text-align: center;
  border-radius: 12px;
  border: 2px solid #ccc;
  user-select: none;
  touch-action: none;
  background: #fff;
}

#rectangly {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 20px;
  object-fit: fill;
  z-index: 2;
}

body::before{
  content: "";
  position: fixed;
  width: 100vw;
  height: 20px;
  background: black;
  left: 50%;
  bottom:0;
  transform: translate(-50%);
  z-index: 1;
}

.vswitch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 60px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: red;
  -webkit-transition: .4s;
  transition: .4s;
}

.vswitch .slider{
  background-color: black;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  /* background-color: white; */
  -webkit-transition: .4s;
  transition: .4s;
  background-image: url(images/rollo.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.vswitch .slider:before {
  background-image: url(images/blocky.png);
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

.vswitch input:checked + .slider {
  background-color: #21f348;
}

.vswitch input:focus + .slider {
  box-shadow: 0 0 1px #21f348;
}

.vswitch input:checked + .slider:before {
  -webkit-transform: translateY(-26px);
  -ms-transform: translateY(-26px);
  transform: translateY(-26px);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px) rotate(360deg);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

/* .slider.round:before {
  border-radius: 50%;
} */

#continue, .continue, .previous{
    width: 150px;
    height: 50px;
}

.rating-container {
  width: 100%;
  max-width: 320px;
  /* margin: 40px auto; */
  font-family: system-ui, sans-serif;
}

.rating-bar {
  position: relative;
  height: 45px;
  background: #e5e7eb;
  border-radius: 999px;
  /* overflow: hidden; */
  touch-action: none; /* IMPORTANT for sliding on mobile */
}

.rating-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, calc(-50% - 0px));
  width: 70px;
  height: 70px;
  background-image: url(images/coney.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); */
  pointer-events: none;
  -webkit-user-drag: none;
}

.rating-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, orange, orangered);
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

.rating-value {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #374151;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

:root {
  --hue: 223;
  --bg: hsl(var(--hue),90%,90%);
  --fg: hsl(var(--hue),90%,10%);
  --primary: hsl(var(--hue),90%,50%);
  --trans-dur: 0.3s;
  --trans-timing: cubic-bezier(0.65,0,0.35,1);
  font-size: calc(16px + (24 - 16) * (100vw - 320px) / (2560 - 320));
}
label,
input, label > span, body {
  color: var(--fg);
  font: 1em/1.5 "DM Sans", sans-serif;
}
label,
input[type="radio"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
main > form > label, label > form {
  background-color: hsla(0,0%,100%,0);
  border-radius: 0.75em;
  display: flex;
  align-items: center;
  padding: 0.7em 0.5em;
  transition: background-color var(--trans-dur);
}
input[type="radio"] {
  background-color: hsl(0,0%,100%);
  border-radius: 50%;
  box-shadow:
    0 0 0 0.0625em hsl(var(--hue),90%,80%),
    0 0.125em 0.125em 0.0625em hsla(var(--hue),90%,10%,0.3);
  flex-shrink: 0;
  margin-inline-end: 1em;
  outline: transparent;
  position: relative;
  width: 1.5em;
  height: 1.5em;
  transition:
    background-color var(--trans-dur),
    box-shadow var(--trans-dur);
  -webkit-appearance: none;
  appearance: none;
}
input[type="radio"]:before,
input[type="radio"]:after {
  border-radius: 50%;
  content: "";
  display: block;
  position: absolute;
  transform: scale(0);
  transition: transform var(--trans-dur) var(--trans-timing);
}
input[type="radio"]:before {
  box-shadow:
    0 0 0 0.5em var(--primary) inset,
    0 0 0 0.0625em var(--primary);
  top: -0.0625em;
  left: -0.0625em;
  width: calc(100% + 0.125em);
  height: calc(100% + 0.125em);
}
input[type="radio"]:after {
  background-color: hsl(0,0%,100%);
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
}
input[type="radio"]:checked:before,
input[type="radio"]:checked:after {
  transform: scale(1);
}
label:has(input[type="radio"]:checked),
label:has(input[type="radio"]:not(:checked)):hover {
  background-color: hsla(0,0%,100%,0.5);
}
.selection {
  border-radius: 0.75em;
  box-shadow: 0 0 0 0.125em var(--primary) inset;
  display: none;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4em;
  transition: transform var(--trans-dur) var(--trans-timing);
}
label:has(input[type="radio"]:checked) ~ .selection {
  animation: fade-in var(--trans-dur) var(--trans-timing);
  display: inherit;
}
label:nth-of-type(1):has(input[type="radio"]:checked) ~ .selection {
  transform: translateY(-30%);
}
label:nth-of-type(2):has(input[type="radio"]:checked) ~ .selection {
  transform: translateY(50%);
}
label:nth-of-type(3):has(input[type="radio"]:checked) ~ .selection {
  transform: translateY(130%);
}
label:nth-of-type(4):has(input[type="radio"]:checked) ~ .selection {
  transform: translateY(210%);
}
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
form{
  position: relative;
}

.settings {
  width: 200px;
  font-family: system-ui, sans-serif;
}

.settings input{
  width: calc(100% - 8px);
}

.settings summary {
  cursor: pointer;
  padding: 10px;
  background: #f2f2f2;
  border-radius: 6px;
  list-style: none;
  font-weight: 600;
}

.settings summary::-webkit-details-marker {
  display: none; /* removes default arrow */
}

.settings[open] summary {
  background: #e0e0e0;
}

.settings-panel {
  margin-top: 8px;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.settings-panel label {
  display: block;
  margin-bottom: 8px;
}
