:root {
  --bg-grad-one: #d7f5ef;
  --bg-grad-two: #9480ff;
  --primary-color: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-grad-one: #a2d5c8;
    --bg-grad-two: #6a5bc9;
  }
}

html {
  color-scheme: dark light;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Ubuntu, Roboto, sans-serif;
  background: fixed linear-gradient(0deg, var(--bg-grad-one), var(--bg-grad-two));
  color: var(--primary-color);
  text-align: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header,
header a,
#controls,
input,
select,
section {
  margin: 10px;
  padding: 10px;
  border: 1px solid #000000;
  border-radius: 8px;
}

header a {
  display: block;
  width: 50%;
  text-decoration: none;
  margin: 10px auto;
  text-align: center;
  transition: color 0.3s ease-in-out;
}

header a:hover {
  color: dodgerblue;
}

header a span {
  font-weight: bold;
}

header img {
  border-radius: 50%;
  height: 200px;
  width: auto;
  margin-top: 20px;
  animation: floatAnimation 3s infinite;
}

@keyframes floatAnimation {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

h1 {
  background: linear-gradient(to right, #ff5555, #5555ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

header p {
  font-weight: bold;
}

input {
  width: 40vw;
  transition: width 0.4s ease-in-out;
  box-sizing: border-box;
  margin: 10px auto;
}

input:focus {
  width: calc(100vw - 40px);
}

select {
  cursor: pointer;
}

input:hover,
select:hover,
input:focus,
select:focus,
input:active,
select:active {
  border-color: royalblue;
}

main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

section {
  flex: 1;
  margin: 10px;
}

ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

ul:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

li {
  margin: 10px;
}

li a {
  text-decoration: none;
}

li img {
  height: 32px;
  width: auto;
  border-radius: 2px;
  transition: transform 0.3s ease-in-out;
}

li img:hover {
  transform: scale(1.2);
}

footer {
  font-size: small;
}