html {
  scroll-behavior: smooth;
}

section:target {
  padding-top: 30px;
  margin-top: -30px;
}

#container {
  text-align: justify;
  font-family: Verdana, Helvetica, sans-serif;
  margin: 0 auto;
  width: 95%;
  padding: 10px;
}

/* Apply dark mode by default */
body, body h1, body h2, body h3, input, textarea {
  color: #ffffff;
  background-color: #333333;
}

#contact-form input, #contact-form textarea {
  border: 2px solid #ffffff;
}

h4 {
  color: white;
}

#dark-mode button {
  border: none;
  background-color: #333333;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  margin-top: 60px;
  border-radius: 10px;
}

#dark-mode button:hover {
  background-color: grey;
  cursor: pointer;
}

#container #dark-mode button {
  background-color: #ffffff;
}

#container #dark-mode button:hover {
  background-color: lightgrey;
}

#title {
  margin-top: 65px;
}

#title h1 {
  font-size: 52px;
  text-align: left;
}

h1, h2, #menu, button, footer span {
  font-family: sans-serif;
  letter-spacing: 2px;
  font-weight: normal;
}

h2 {
  font-size: 27px;
}

#menu {
  position: fixed;
  top: 12px;
  left: 0px;
}

#menu ul {
  display: flex;
  margin: 0;
  padding-inline-start: 0px;
}

#menu li {
  list-style: none;
  text-indent: 0;
  opacity: 1;
  transition: opacity 1.5s;
}

#menu li a {
  text-decoration: none;
  padding: 10px;
  color: #333333;
  font-weight: bold;
  background-color: lightgreen;
  border-right: 3px solid #ffffff;
}

#menu li.hidden-link {
  opacity: 0;
}

#menu li a {
  border-right-color: #333333;
}

#contact-form input {
  height: 20px;
}

#contact-form input, #contact-form button, #contact-form textarea {
  display: block;
  margin-bottom: 5px;
  padding: 10px;
  border: 2px solid #333333;
  border-radius: 4px;
}

button#send-btn {
  padding: 10px 40px;
  margin-left: 168px;
  font-size: 22px;
  font-weight: bold;
  color: #333333;
  background-color: lightgreen;
  border: 0px none transparent;
  border-radius: 15px;
}

button#send-btn:hover, #go-to-top:hover, #menu li a:hover {
  background-color: #76c294;
}

#menu li.active a {
  background-color: coral;
}

hr {
  height: 4px;
  background-color: orange;
  border: 0 none;
}

footer p {
  margin-bottom: 10px;
}

@media screen and (min-width: 750px) {
  #container {
    width: 750px;
  }

  #menu {
    margin: 0 59%;
  }

  #dark-mode {
    width: 750px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@charset "UTF-8";
* {
  box-sizing: inherit;
  font-family: inherit;
  font-size: inherit;
}

:root {
  --backgroundColor: #000;
  --borderWidth: 2px;
  --gradient: linear-gradient(to bottom right,
  	hsl(0deg, 100%, 60%),
  	hsl(120deg, 100%, 60%),
  	hsl(240deg, 100%, 60%),
  	hsl(360deg, 100%, 60%),
  	hsl(240deg, 100%, 60%),
  	hsl(120deg, 100%, 60%),
  	hsl(0deg, 100%, 60%),
  	hsl(120deg, 100%, 60%),
  	hsl(240deg, 100%, 60%),
  	hsl(360deg, 100%, 60%),
  	hsl(240deg, 100%, 60%),
  	hsl(120deg, 100%, 60%),
  	hsl(0deg, 100%, 60%)
  );
}

.card {
  padding: 1rem;
  border: solid var(--borderWidth) transparent;
  border-radius: 1rem;
  position: relative;
  background-color: var(--backgroundColor);
  box-sizing: border-box;
}

.card::after, .card::before {
  content: "";
  display: block;
  position: absolute;
  top: calc(var(--borderWidth) * -1);
  left: calc(var(--borderWidth) * -1);
  right: calc(var(--borderWidth) * -1);
  bottom: calc(var(--borderWidth) * -1);
  margin: calc(var(--borderWidth) * -1);
  border-radius: inherit;
  background-image: var(--gradient);
  background-size: 200% 200%;
  background-position: top left;
  animation: roll 4s infinite linear;
}

.card::after {
  z-index: -1;
}

.card::before {
  z-index: -2;
  filter: blur(2rem);
  opacity: 0.7;
}

.card p {
  margin: 0;
  color: transparent;
  display: block;
  padding: 2vmin;
  text-align: justify;
  text-overflow: ellipsis;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: var(--gradient);
  background-size: 200% 200%;
  background-position: top left;
  animation: roll 4s infinite linear;
  white-space: pre-wrap;
}

@keyframes roll {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}
