@font-face {
    font-family: 'Dalek';
    src: url('fonts/Dalek.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "Dalek", 'Courier New', Courier, monospace;
    background-color: black;
    color: white;
    margin: 0;
    text-shadow: 0.075em 0.075em 0.05em darkgrey;
}



h1 {
    font-size: clamp(1.2em, 4vw, 4em);
    width: 100%;
    background-color: black;
    padding: 0.5em;
    margin: 0;
    text-align: center;
}

h2 {
    font-size: clamp(0.5em, 5vw, 3em);
}

header {
    justify-items: center;
    width: 100%;
    margin: 4em auto;
}


main {
    justify-items: center;
}



article{
    justify-items: center;
    width: 100%;
}

#dalek-model {
    width: clamp(20em, 50vw, 110em);
    height: clamp(20em, 60vw, 80em);
    animation: hover 3s ease-in-out infinite;
}

@keyframes hover {
    0%   { transform: translateY(1.5em); }
    50%  { transform: translateY(-1.5em); }
    100% { transform: translateY(1.5em); }
}

@keyframes morph {
  0% {
			border-radius:  60% 40% 30% 70% / 60% 30% 70% 40%;
	} 
	
	50% {
			border-radius:  30% 60% 70% 40% / 50% 60% 30% 60%;
	}
  
	100% {
		border-radius:  60% 40% 30% 70% / 60% 30% 70% 40%;
	} 
}

@supports (border-radius: random(30%, 70%)) {
  @keyframes morph {
    0% {
      border-radius: random(30%, 70%) random(30%, 70%) random(30%, 70%) random(30%, 70%) / random(30%, 70%) random(30%, 70%) random(30%, 70%) random(30%, 70%);
    } 
    50% {
      border-radius: random(30%, 70%) random(30%, 70%) random(30%, 70%) random(30%, 70%) / random(30%, 70%) random(30%, 70%) random(30%, 70%) random(30%, 70%);
    }
    100% {
      border-radius: random(30%, 70%) random(30%, 70%) random(30%, 70%) random(30%, 70%) / random(30%, 70%) random(30%, 70%) random(30%, 70%) random(30%, 70%);
    } 
  }
}

@keyframes blink {
    0%   { transform: scale(0.95); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}

@keyframes pop {
    50% {
        transform: scale(1.5);
        color: red;
    }
    100% {
        transform: scale(1);
        color: white;
    }
}

.remote-control-model {
    width: 30em;
    height: 40em;
}

section {
    justify-items: center;
    width: 100%;
}

ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    padding: 0;
}

li {
    border-radius: 0.5em;
    padding: 1em;
    margin: 0.5em;
    font-size: 1.2em;
    animation-name: pop;
    animation-timeline: view(40% 0%);
    animation-duration: 1s;
    font-size: clamp(0.75em, 1vw, 1.5em);
}

li:nth-child(1) { animation-delay: .5s;}
li:nth-child(2) { animation-delay: 1s; }
li:nth-child(3) { animation-delay: 1.5s; }
li:nth-child(4) { animation-delay: 2s; }
li:nth-child(5) { animation-delay: 2.5s; }
li:nth-child(6) { animation-delay: 3s; }
li:nth-child(7) { animation-delay: 3.5s; }

.purchase-container {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-image: url(images/dalek-ship.webp);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

form {
    min-width: 20em;
    width: 30%;
    margin: 5em;
    padding: 1em;
    border: solid white;
    background-color: black;
}

#price {
    font-size: 4em;
    transform: rotate(-3deg);
    margin: auto;
}

input[type="submit"], button {
    font-family: inherit;
    padding: 1em 1.75em;
    margin: 1em auto;
    background-color: blue;
    color: white;
    border: white solid 2px;
    border-radius: 0.5em;
    font-size: clamp(1em, 1vw, 2em);
    font-family: 'Courier New', Courier, monospace;
}
button {
    animation: fadeRight;
}

.sound-box button {
    margin: 0.5em 0;
    text-align: left;
    align-self: flex-start;
}

input[type="submit"]:hover, button:hover {
    background-color: #000099;
    cursor: pointer;
}



fieldset{
    border-color: white;
    border-radius: 0.25em;
    display: flex;
    flex-direction: column;
}

legend {
    transform: rotate(-1deg);
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1em, 2vw, 3em);
}

.radio-box:focus-within{
    border-color: blue;
}

label {
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1em, 1vw, 1.5em);
}

div label {
    margin: auto;
    color: black;
}

.radio-box {
    width: 60%;
    margin: 1.5em auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#address-box {
    flex-direction: column;
}

input[type=text] {
    padding: 0.75em;
    border-radius: 1em;
    border: solid gray 2px;
    margin: 1em 0;
    font-size: clamp(1em, 1vw, 1.5em);
}

.radio-card {
  position: relative;
  border: 2px solid white;
  background-color: gray;
  border-radius: 8px;
  padding: 1.5em;
}

.radio-card:hover {
    background-color: rgb(82, 82, 82);
}

.radio-card:hover {
  border: 2px solid blue;

}

.radio-card::after {
  content: attr(data-label);
  display: block;
  visibility: hidden;
  white-space: nowrap;
}

.radio-card label {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-card input[type="radio"] {
  position: absolute;
  clip-path: polygon(0 0);
  width: 0;
  height: 0;
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: blue;
}


.controller-box {
    position: relative;
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: space-evenly;
    width: 100%;
}

.controller-box fieldset {
    border: none;
}

#node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

#node-lines line {
    stroke: white;
    stroke-width: 1.5;
    opacity: 0.6;
}

#node-lines circle {
  fill: white;
  filter: drop-shadow(0 0 4px white);
}


@keyframes move {
    from {
        transform: translateX(150%);
    }
    to {
        transform: translateX(calc(-100% + 100vw));
    }
}

#side-scroll {
    height: 300vh;
    overflow-x: clip;
}

.side-scroll-sticky {
    height: 100vh;
    width: 100vw;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.side-scroll-wrap {
    height: 100vh;
    width: max-content;
    will-change: transform;
    animation: linear move forwards;
    animation-timeline: scroll(root);
    animation-range: 0% 100%;
    display: flex;
    gap: 2em;
    padding: 5em;
    box-sizing: border-box;
    align-items: center;
}

.side-scroll-wrap img {
    width: clamp(10em, 30vw, 30em);
    height: auto;
    object-fit: contain;
    transform: rotate(1deg);
    animation: morph 5s ease-in-out infinite;
    outline: solid gray;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transition: all 1s ease-in-out;
    margin: 1em;
}

.side-scroll-wrap p {
    font-family: 'Courier New', Courier, monospace;
    transform: rotate(-1deg);
    width: 60vw;
    font-size: clamp(0.9em, 1.5vw, 2.3em);
    white-space: normal;
}

figure {
    justify-items: center;
}

figcaption {
    font-family: 'Courier New', Courier, monospace;
}

span {
    color: red;
    font-family: Dalek;
}

@media (max-width: 768px) {
    span {
        text-shadow: none;
    }
}

footer {
    width: 100%;
    margin: 2em 0;
    text-align: center;
}

footer a {
    color: lightgreen;
}

footer {
    width: 100%;
    margin: 2em 0;
    text-align: center;
}

footer a {
    color: lightgreen;
}
