code {
  border-radius: 4px;
  color: white;
  background-color: black;
  padding: 2px;
  font-size: 105%;
}

code#channel {
  color: white;
  background-color: #5865f2;
  padding: 2px;
  font-size: 105%;
}

html, body {
  overscroll-behavior-y: none;
}

body{
  margin: 0px;
  font-family: 'Roboto', sans-serif;
  padding-bottom: 50px;
  min-height: 100vh;
  box-sizing: border-box;
}
::placeholder {
  opacity: 0.7;
}


/*.rotate {
  transition: transform 0.3s ease-in-out;
}*/

/* Clean main text container */
.description-card {
  margin: auto;
  margin-top: -5px;
  margin-bottom: 15px;
  width: 45%;
  display: block;
  position: relative;
  text-align: center;
  z-index: 10;
  padding: 8px;
}



#copyright {
  font-size: 17px;
  text-align: center;
  font-weight: bolder;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  margin-top: 40px;
  font-family: 'Share Tech Mono';
}

#instructionContainer {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  text-align: center;
}

#instructions {
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.span{
  margin: 0;
  width: 100%;
  display: block;
  position: relative;
  text-align: center;
  font-size: 19px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  z-index: 10;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.centerContainer{
  width: 30%; /* was 35*/
  margin-left: auto;
  margin-right: auto;
}

.button {
  white-space: nowrap;
  border-radius: 15px;
  z-index: 3;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 90px; /* was 100px*/
  margin: auto;
  /*margin-left: 7px;
  margin-right: 7px;*/
  text-align: center;
  font-size: 22px;
  font-family: 'Roboto', sans-serif;
  border: 2.5px solid black;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 0 5px;
/*  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);*/
}

.button span {
  font-size: clamp(10px, 4vw, 22px);
}

/*.moveable + .moveable{
  margin-top: 7px;
}*/

.moveable{
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 5px;
  transition: transform 0.3s;
}
.moveable.moved {
  transform: translate(5px, -5px);
}

.moveable.hovered-large.moved {
  transform: translate(5px, -5px) scale(1.2);
}

.moveable.hovered-large {
  transform: scale(1.2);
  transition: transform 17s cubic-bezier(0.05, 0.8, 0.1, 1);
}

#dirtyrag-parent.hovered-large .button {
  box-shadow: 0 0 25px 3px rgba(255, 255, 255, 0.7);
  transition: box-shadow 5s cubic-bezier(0.05, 0.8, 0.1, 1);
}

/*.button:not(.ignore-jiggly):hover {
  transform: translate(5px, -5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid black;
}*/

#messagebox{
  position: relative;
  width: 100%;
  padding: 10px 0;
  background-color: Black;
  color: White;
  z-index: 10;
  text-align: center;
  text-transform: uppercase;
  min-height: calc(1ch + 10px);
  font-family: 'Share Tech Mono', monospace;
}

.noDoc{
  width: 100%;
}

.current{
  width: 20%;
  min-width: 80px;
  height: auto;
  position: absolute;
  top:0px;
  right:0px;
  transform: translate(30%, -30%) rotate(25deg);
  z-index: 100;
  pointer-events: none;
}

#b1 {
  background-color: #FFC09F;
  color: Black;
}
#b2 {
  background-color: #ffef9b;
  color: Black;
}
#b3 {
  background-color: #ffe1a7;
  color: Black;
}
#b4 {
  background-color: #ff928a;
  color: Black;
}
#b5 {
  background-color: #adedbf;
  color: Black;
}
#b6 {
  background-color: #b0c8ff;
  color: Black;
}
#b7 {
  background-color: #C8C2EA;
  color: Black;
}
#b8 {
  background-color: #e8c2ff;
  color: Black;
}
#b9 {
  background-color: #9eceff;
  color: Black;
}
#b10 {
  background-color: #d6ae85;
  color: Black;
}
#b11 {
  background-color: #242424;
  color: White;
}
#b11:hover span {
animation: rainbow-w 0.3s ease-in-out forwards;
}
#b12{
  background-color: #a6e0b4;
  color: Black;
}

#nonProject{
  margin-top:40px;
  display: flex;
  gap: 8px;
  width: 100%;
}

#nonProject * button {  /* all children of nonProject*/
/*  flex: 1;*/
  height: 60px;
  font-size: 20px;
  width: 100%;
  background-color: #e9e9e9;
  color: Black;
}

.docs{
  background-color: #efefef;
  color: Black;
  width: 20%;
  min-width: 90px;
}

#submit {
  margin-top: 30px;
  background-color: #000000;
  color: White;
  border-color: #ffffff;
  width: 10%;
  min-width: 150px;
  height: 60px;
  min-height: 7%;
}
#comp-counter-container{
  display: inline-block;
  font-size: 26px;
  margin: auto;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  font-weight: 700;
  font-family: 'Andika', sans-serif;
  line-height: 1.2;
  word-spacing: +0.5ch;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}
#comp-counter-back{
  width: fit-content;
  block-size: fit-content;
  height: auto;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border-radius: 12px;
  padding: 8px 16px;
  display: inline-block;
  margin: 0 8px;
  box-shadow: 0 3px 10px rgba(238, 90, 82, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
#comp-counter-text{
  color: White;
  font-size: 32px;
  position: relative;
  display: inline-block;
  height: auto;
  text-align: center;
  margin: auto;
  width: auto;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.timer {
  z-index: 10;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
#timer{
  margin-top: -20px;
}
#timer-hint{
  margin-top: -5px;
}

.button:hover span {
display: inline-block;
animation: rainbow-b 0.3s ease-in-out forwards;
}

#submit:hover span {
display: inline-block;
animation: rainbow-w 0.3s ease-in-out forwards;
}

/*#b7:hover span {
display: inline-block;
animation: rainbow-w 0.3s ease-in-out forwards;
}*/


#inputform {
  border-radius: 12px;
  display: block;
  position: relative;
  margin: auto;
  padding: 16px 20px;
  width: 100%;
  max-width: 450px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

#inputform:focus {
  outline: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

#inputform::placeholder {
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
}

.jiggly {
  transition: transform 0.3s;
  z-index: 100;
  animation: jiggle 0.4s ease-in-out 1;
  animation-fill-mode: forwards;
}

.increase-children-z-index > * {
  z-index: 100;
  position: relative;
}

/* Ensure this z-index is higher than other elements on your page */
.increase-children-z-index {
  z-index: 99;
  position: relative;
}

@keyframes jiggle {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

@keyframes rainbow-w {
  0%, 100% {
    color: #ffffff;
  }
  8.5%, 58.5% {
    color: #ff0;
  }
  16.5%, 66.5% {
    color: #0f0;
  }
  24.5%, 74.5% {
    color: #0ff;
  }
  32.5%, 82.5% {
    color: #00f;
  }
  41%, 91% {
    color: #f0f;
  }
}

@keyframes rainbow-b {
  0% {
    color: #f00;
  }
  17% {
    color: #ff0;
  }
  33% {
    color: #0f0;
  }
  49% {
    color: #0ff;
  }
  65% {
    color: #00f;
  }
  82% {
    color: #f0f;
  }
  100% {
    color: #000;
  }
}

.logo{
  border-radius: 15px;
  z-index: 3;
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 35px;
  border: 5px solid black;
  width: 7%;
  height: auto;
}

@media (max-width: 1300px) {
  .centerContainer{
      width: 50%;
    }
}

@media (max-width: 800px) {
  .centerContainer{
      width: 80%;
    }
}

@media (max-width: 768px) {
  .description-card {
    padding: 20px;
    width: 80%;
  }
  
  .centerContainer{
    width: 80%;
  }

  #instructionContainer {
      width: 80%;
      margin-left: auto;
      margin-right: auto;
      align-items: center;
      text-align: center;
  }

  #instructions {
    margin: 15px;
    line-height: 1;
  }
  .logo{
    margin-top: 15px;
    margin-bottom: 15px;
    width: 20%;
  }
  .button{
    font-size: 18px;
    height: 80px;
  }
  #nonProject * button {  /* all children of nonProject*/
    font-size: 15px;
  }

  #nonProject {
    flex-wrap: wrap;
  }

  #nonProject .moveable {
    width: calc(50% - 4px); /* 50% minus half the gap */
  }

  #timer{
    margin-top: -5px;
  }
  #timer-hint{
    margin-top: 0px;
  }
  #comp-counter-container{
    margin-bottom: 10px;
    word-spacing: +0.2ch;
    font-size: 22px;
    padding: 15px;
  }
  #comp-counter-back{
    display: block;
    margin: 8px auto;
  }
  #comp-counter-text {
    font-size: 28px;
  }
  #inputform {
    width: 80%;
  }
  .span{
    width: 100%;
    letter-spacing: -1.5px;
    font-size: 18px;
  }
  #submit {
    width: 80%;
  }

  #copyright {
    font-size: 14px;
  }
}

#background-fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 1s ease-out;
  pointer-events: none;
  z-index: 99;
}

