/* This is so messy lmao */

@font-face {
  font-family: "Aller";
  src: url("/fonts/Aller_Std_Rg.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  src: url("/fonts/Oswald-Regular.otf") format("truetype");
}

@font-face {
  font-family: "Oswald Bold";
  src: url("/fonts/Oswald-Bold.otf") format("truetype");
}

@font-face {
  font-family: "PT Serif";
  src: url("/fonts/PTSerif-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Seven Segment";
  src: url("/fonts/7segment.ttf") format("truetype");
}

@font-face {
  font-family: "Domine";
  src: url("/fonts/Domine-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Anonymous Pro";
  src: url("/fonts/AnonymousPro-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Franklin Gothic";
  src: url("/fonts/Franklin-Gothic-Regular.otf") format("truetype");
}

::selection, ::-moz-selection {
  color: white;
  background: #222;
}

.dark-mode *::selection, .dark-mode *::-moz-selection {
  color: black;
  background: #FFF;
}

html {
  background-image: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.25)), url("/img/Wallpapers/background blog.png");
  background-color: black;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-width: 100%;
  min-height: 100%;
  cursor: url(/img/cursor.png), auto;
}

body {
  margin: 0 auto;
  width: 1000px;
  min-height: 100vh;
  color: black;
  background-color: white;
  background-image: url("/img/page noise.png");
  background-repeat: repeat;
  font-family: Aller;
  padding: 15px 20px 100px;
  font-size: 20px;
  animation: none;
}

html.dark-mode body {
  box-shadow: 0 0 6px 6px #FFF2;
  color: #DDD;
  background-color: black;
  background-image: linear-gradient( rgba(0,0,0,.85), rgba(0,0,0,.85)), url("/img/page noise.png");
  background-repeat: repeat;
}

h1 {
  font-size: 45px;
  width: calc(100% - 30px);
  display: inline-block;
  margin: 0 -5px;
  color: white;
  background: black;
  padding: 5px 20px 10px;
  font-family: Oswald Bold;
  box-shadow: 2px 2px 3px 3px #0002;
  text-decoration: none;
  font-weight: normal;
}

.dark-mode h1 {
  background: #444;
}

h2 {
  background-image: repeating-linear-gradient(to right, #ab99ff, #ffa9fa, #ab99ff);
  width: calc(100% - 15px);
  font-size: 25pt;
  margin: 30px -10px 10px -5px;
  color: black;
  padding: 0 10px 5px;
  font-family: Franklin Gothic;
  display: inline-block;
  box-shadow: 2px 2px 3px 3px #0002;
  font-weight: normal;
}

li {
  margin: 10px 0; 
}

img {
  width: 100%;
  margin: auto;
}

img.pfp {
  width: 220px;
  float: right;
  border-radius: 50%;
  box-shadow: 0 0 6px #0005;
}

hr {
  border: 0;
  border-top: 2px solid black;
}

.dark-mode hr {
  border-top: 2px solid #DDD;
}

bold {
  font-weight: bold;
}

div.bgm {
  margin: 20px auto;
  width: min-content;
}

div.bgm p {
  font-size: 10pt;
  margin: 0;
  text-align: center;
}

div.links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}

div.links:not(:has(.return)) {
  font-size: 20pt; 
}

a, button,input[type=checkbox] {
  cursor: url("/img/cursor pointing.png"), auto; 
}

input[type=checkbox]
{
  -ms-transform: scale(1.5);
  -moz-transform: scale(1.5);
  -webkit-transform: scale(1.5);
  -o-transform: scale(1.5);
  transform: scale(1.5);
  margin: 10px;
  border: 1px solid black;
  accent-color: #444;
}

.active-rainbow input[type='checkbox'] {
  animation: checkbox-anim 40s linear infinite;
}

a:not(.normal) {
  background-image: repeating-linear-gradient(to right, #444, #222, #444);
  color: white;
  font-weight: normal;
  padding: 8px 10px;
  text-decoration: none;
  text-shadow: 0 0 5px #0008;
  box-shadow: 2px 2px 5px #0004;
  display: block;
  width: max-content;
  font-family: Oswald;
  letter-spacing: 1px;
}

a:not(.normal).return {
  transition: 0.05s;
}

a:not(.normal).return:hover {
  padding-top: 6px;
}

a:not(.normal):hover {
  background-image: repeating-linear-gradient(to right, #666, #444, #666);
}

a:not(.normal):not(.return):active {
  background-color: #222;
  transform: translate(1px, 1px);
  box-shadow: 0 0 5px #FFC;
  background-image: repeating-linear-gradient(to right, #FF8, #FFC, #FF8);
  color: black;
}

a:not(.normal).return:active {
  padding-top: 0;
  box-shadow: 0 0 5px #FFC;
  background-image: repeating-linear-gradient(to right, #FF8, #FFC, #FF8);
  color: black;
}

.forward::after {
  content: " ❯";
}

.return, div.links:has(.return) {
  margin: 0 -5px 0 10px;
  text-align: right;
  float: right;
}

.return::before {
  content: "❮ ";
}

code {
  background-color: #444;
  color: white;
  padding: 6px 8px;
  text-shadow: 0 0 5px #0008;
  box-shadow: 2px 2px 5px #0004;
  font-size: 16px; 
}

.active-rainbow code {
  background-image: repeating-linear-gradient(to right, #600, #660, #060, #066, #006, #606, #600, #660, #060, #066, #006, #606, #600);
  animation: rainbow 40s linear infinite;
  background-size: 180cm;
}

code.clock {
  position: relative;
  font-family: Seven Segment;
  font-size: 26pt;
  padding: 14px 12px 0;
  color: #FFFE;
  border-radius: 5px;
  box-sizing: border-box;
  text-shadow: none;
}
code.clock span.i {
  visibility: hidden;
}
code.clock span.x {
  color: #0003;
}
code.clock span.y {
  text-shadow: 0 0 10px #FFF8;
}
code.clock span.x, code.clock span.y {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-52%, -45%);
}

p:has(.clock) {
  margin: 60px 0 10px;
}

div.under-construction {
  background-image: repeating-linear-gradient(43deg, #EDE501, #EDE501 25px, #222 25px, #222 50px);
  font-size: 30pt;
  font-weight: bold;
  color: #222;
  text-align: center;
  width: 108%;
  transform: translate(-4%, 20px) skew(165deg, 2deg);
  margin: 50px 0 20px;
  height: 50pt;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 2px 2px 2px #0002;
}

div.under-construction .text {
  background-color: #EDE501;
  padding: 0 20px 0 15px;
  border-radius: 10pt;
  font-family: Marsh;
}

img.workshop-item {
  width: 8cm;
  margin: 0 0 20px 20px;
  display: inline-block;
  float: right;
}

div.mod {
  padding: 15px;
  background-color: #222;
  border-radius: 10px;
  color: white;
  overflow: auto;
}

.dark div.mod {
  background-color: black;
}

/*div.mod::selection, div.status::selection {
  color: black;
  background: white;
}

div.mod::-moz-selection, div.status::-moz-selection {
  color: black;
  background: white;
}*/

div.mod a img, div.mod img {
  margin: 15px;
}

.active-anims div.mod a img, .active-anims div.mod img {
  transition: transform .2s;
}

div.mod a:hover img {
  /*transform: scale(0.95) rotate(2deg);*/
  border: 15px solid #FF1;
  margin: 0;
}

.active-anims div.mod a:hover img {
  animation: highlight 1.5s ease-in-out infinite alternate; 
}

@keyframes highlight {
  from { border-color: #FFFF11FF; }
  to { border-color: #FFFF1188; } 
}

div.mod a:active img {
  /*transform: scale(0.9) rotate(3deg);*/
}

div.gallery {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 50%;
  float: left;
  margin: 0 20px 20px 0;
}

div.gallery img {
  max-width: 6cm;
  max-height: 6cm;
  width: auto;
  margin: 0;
}

div.write-up {
  display: inline;
}

div.write-up p {
  margin: 10px 0; 
}

div.status {
  background-color: black;
  color: white;
  border-radius: 10px;
  width: max-content;
  padding: 5px 20px 20px;
  margin: 0px 20px 20px 0;
  display: inline-block;
}

div.status img {
  width: 150px;
  -webkit-filter: drop-shadow(0 0 10px #FFF6);
  filter: drop-shadow(0 0 10px #FFF6);
  display: block;
}

div.status h2 {
  color: black;
}

div.status p {
  margin-bottom: 0; 
}

@keyframes checkbox-anim {
   0% { accent-color: #600; }
   16.66% { accent-color: #660; }
   33.33% { accent-color: #060; }
   50% { accent-color: #066; }
   66.66% { accent-color: #006; }
   83.33% { accent-color: #606; }
   100% { accent-color: #600; }
}

button {
  background-color: #666;
  color: white;
  font-weight: bold;
  padding: 8px 10px;
  text-decoration: none;
  text-shadow: 0 0 5px #0008;
  box-shadow: 2px 2px 5px #0004;
  display: block;
  width: max-content;
  border: none;
  font-family: Domine;
  font-size: 16pt;
}

.active-rainbow button {
  background: repeating-linear-gradient(to right, #A00, #AA0, #0A0, #0AA, #00A, #A0A, #A00, #AA0, #0A0, #0AA, #00A, #A0A, #A00);
  animation: rainbow 40s linear infinite;
  background-size: 180cm;
}

button:hover {
  background-color: #444; 
}

.active-rainbow button:hover {
  background-image: repeating-linear-gradient(to right, #900, #990, #090, #099, #009, #909, #900, #990, #090, #099, #009, #909, #900); 
}

button:active {
  background-color: #222;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 5px #0004;
}

.active-rainbow button:active {
  background-image: repeating-linear-gradient(to right, #600, #660, #060, #066, #006, #606, #600, #660, #060, #066, #006, #606, #600);
}

p.caption {
  font-style: italic;
  text-align: center;
  font-size: 12pt;
  margin-top: 5px;
}

div.button-container {
  display: flex;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}

.active-anims div.button-container a img {
  transition: 0.15s;
}

div.button-container a:hover img {
  transform: rotate(1deg) scale(1.5);
  z-index: 999;
}

div.button-container a:active img {
  transform: rotate(-1deg) scale(0.5);
  box-shadow: none;
  z-index: -1;
}

div.list-of-ocs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

a.oc {
  background: #222;
  border-radius: 10px;
  color: white;
  transform: rotate(1deg);
  text-decoration: none;
}

.active-anims a.oc {
  transition: 0.3s; 
}

.dark-mode a.oc {
  background: #333;
}

a.oc .overlay {
  background: linear-gradient(45deg, #FFF6, #FFFB, #FFF8, #FFFD, #FFFA, #FFFF);
  border-radius: 10px;
  opacity: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.active-anims a.oc overlay {
  transition: 0.3s; 
}

.active-anims a.oc:hover {
  transform: rotate(2deg); 
}

a.oc:hover .overlay {
  opacity: 0.4;
}

.active-anims a.oc:active {
  transform: rotate(4deg) scale(0.95);
}

a.oc:active .overlay {
  opacity: 0.9;
}

a.oc .padding {
   padding: 10px;
   left: 0;
   top: 0;
}

a.oc img {
  width: 175px;
  height: 175px;
  object-fit: cover;
  object-position: 0 0;
}

a.oc .oc-title {
  display: block;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  font-family: Anonymous Pro;
}

a.oc .code {
  display: block;
  font-size: 12px;
  margin-top: 10px;
}

a.oc .hole {
  background-image: url("/img/page noise.png");
  border-radius: 100%;
  width: 30px;
  height: 30px;
  display: block;
  margin: 10px auto 15px;
}

.dark-mode a.oc .hole {
  background-image: linear-gradient( rgba(0,0,0,.85), rgba(0,0,0,.85)), url("/img/page noise.png");
}

.oc-gallery {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

p.description {
  margin-top: 10px;
  font-size: 12pt;
}

.bgm:not(.visible-music .bgm) {
  display: none;
}

/* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

@media only screen and (max-width: 1056px) {
  
  html {
    background: none;
  }
  
  body {
    font-size: 16px;
    width: calc(100vw - 40px);
    border-radius: 0;
    animation: none;
    margin: 0;
    box-shadow: none;
    max-width: none;
    min-height: initial;
    padding: 20px;
  }
  
  h1 {
    font-size: 4vw;
    box-shadow: 0.2vw 0.2vw 0.3vw 0.3vw #0002;
    display: inline-block;
    padding: 10px;
  }

  h2 {
    font-size: 4vw;
    padding: 3px 6px;
  }
  
  div.gallery img {
    width: 100%;
  }
  
  div.mod a:hover img {
    border-width: 5px;
  }
  
  div.gallery, img.workshop-item {
    display: inline-block;
    margin-left: 30px;
    width: 35%;
  }
  
  img.pfp {
    width: 20%;
  }

  div.under-construction {
    width: 90%;
    transform: translate(0, 20px) skew(165deg, 2deg);
    margin: 50px auto 50px;
  }
  
  code {
    line-height: 50px; 
  }
}