:root {
  --body-bg: #fff;
  --text-color: #181818;
  --section-bg: #fdfdfd;
  --border-color: #cfcfcf;
  --c-blue: rgb(53, 56, 231);
}
@media (prefers-color-scheme: dark) {
  :root {
    --body-bg: #181818;
    --section-bg: #1a1a1a;
    --text-color: rgb(250, 250, 250);
    --border-color: #535353;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  min-height: 100vh;
  /* min-height: 100dvh; */
}
body {
  background: radial-gradient(
    rgba(53, 56, 231, 0.25) 5%,
    transparent 30%,
    transparent 100%
  );
  background-position: -50vw -400px;
  background-repeat: no-repeat;
  background-size: 200% 800px;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--body-bg);
  color: var(--text-color);
  font-size: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
h1 {
  font-size: 1.8em;
  text-align: center;
  padding: 1em;
  padding-top: 4em;
}
a,
a:visited {
  text-align: center;
  color: var(--text-color);
  text-decoration: none;
}
a:hover {
  color: var(--c-blue);
  transition: color 200ms cubic-bezier(0.165, 0.84, 0.44, 1);
}
.section-group {
  display: flex;
  padding: 30px;
  gap: 4em;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px;
}
.section-wrapper {
  padding: 1px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}
.section-border {
  background-color: var(--border-color);
  background: linear-gradient(
    transparent 40%,
    var(--border-color),
    transparent 60%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  animation: bganimation 4000ms linear infinite;
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
}
@keyframes bganimation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
section {
  min-width: 300px;
  min-height: 300px;
  position: relative;
  z-index: 1;
  background-color: var(--section-bg);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  text-align: center;
  justify-self: flex-end;
  padding: 1em;
}
