@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

html, body {
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}
* { -webkit-hyphens: auto; hyphens: auto; }
body {
  background-color: #161616;
  color: #f7f7f7;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.rainbow-glow {
  content: "";
  z-index: 1;
  filter: blur(20px);
  padding: 15px 0px;
  width: 100%;
  background-color: #9820ac;
  background: linear-gradient(267deg, #9400ff, #9820ac, #ff0084, #9820ac, #9400ff, #9820ac);
  background-size: 600% 600%;
  animation: loading 4s linear infinite;
}
.rainbow-box {
  content: "";
  margin-top: -30px;
  z-index: 2;
  padding: 15px 0px;
  width: 100%;
  background-color: #9820ac;
  background: linear-gradient(267deg, #9400ff, #9820ac, #ff0084, #9820ac, #9400ff, #9820ac);
  background-size: 600% 600%;
  animation: loading 4s linear infinite;
}
.container {
  margin: 3em;
}
@keyframes loading {
  0%    { background-position: 0%   50% }
  100%  { background-position: 100% 50% }
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 800 !important;
}

hr {
  color: rgba(255, 255, 255, 0); /* for safari compatibility */
  width: 75%;
  border: solid rgba(255, 255, 255, .2) 2px;
  height: 0px;
  margin: 1em 0em;
  border-radius: 2px;
}
h3 {
  margin: 0;
  padding: 0;
}
.homework, .news, .lessons, .classmates, .button {
  background: #fff1;
  color: #f7f7f7;
  padding: 1em;
  margin: 0.5em 0em;
  width: 80%;
  text-decoration: none;
  display: inline-block;
  border-radius: 1em;
  cursor: pointer;
  transition: 0.5s;
}
.homework:hover, .news:hover, .lessons:hover,
.classmates:hover, .button:hover {
  background: #fff2;
  font-size: 1.02em;
  box-shadow: 0px 0px 10px 10px #0005;
  transition: 0.5s;
}
summary {
  margin: 0;
  width: calc(100% - 32px) !important;
  background: #ffffff03;
}
.home {
  margin-bottom: -30px;
  font-weight: 800;
  z-index: 100000;
  color: #fff !important;
  position: relative;
}
.home * { text-decoration: none; z-index: 100000; color: #fff; }
details {
  padding: 0em 0.5em;
  margin: 0.5em 0em;
  border-radius: 1em;
  width: 90% !important;
  background: #ffffff05;
}
details[open] {
  padding-bottom: 0.5em;
}
details[open] summary {
  font-weight: 800 !important;
}

input, textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1.05em;
  margin: 0.25em 0em;
  width: 75vw;
}
input[type=text], textarea {
  border: solid #0000 0px;
  background: #161616;
  color: #f7f7f7;
  border-radius: 5px;
}
input[type=text] {
  font-size: 1.5em;
  font-weight: 800;
}
input[type=password], input[type=date] {
  border: solid #0000 0px;
  background: #1f1f1f;
  color: #f7f7f7;
  padding: 10px;
  border-radius: 15px;
}
textarea {
  resize: none;
  height: 25vh;
}
smalli {
  font-style: italic;
  font-size: 0.75em;
  color: #fff5;
}
input[type=submit] {
  border: solid #0000 0px;
  background: #fff1;
  padding: 10px 20px;
  color: #f7f7f7;
  border-radius: 10px;
  transition: 0.5s;
}
input[type=submit]:hover {
  background: #fff2;
  transition: 0.5s;
  cursor: pointer;
}

@media (prefers-color-scheme: light) {
  body {
    background-color: #fff;
    color: #333;
  }
  .homework, .news, .lessons, .classmates, .button {
    background: #f2f2f2;
    color: #333;
  }
  
  .homework:hover, .news:hover, .lessons:hover,
  .classmates:hover, .button:hover {
    background: #ebebeb;
    box-shadow: 0px 0px 10px 10px #0002;
  }
  hr {
    border: solid rgba(0, 0, 0, .2) 2px;
  }
  input[type=text], textarea {
    background: #fff;
    color: #333;
  }
  input[type=submit] { background: #0001; color: #333;}
  input[type=submit]:hover { background: #0002; }
  input[type=password], input[type=date] {
    color: #333;
    background: #f5f5f5;
  }
  details {
    background: #0001;
  }
  smalli {
    color: #0005;
  }
  summary {
    background: #00000005 !important;
  }
}