/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 2em;
  line-height: 1.4;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}
@font-face {
  font-family: "CyberSloth";
  src: url("CyberSloth.ttf") format("truetype")
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
.header {
  margin-block-start: 0.0em;
  margin-block-end: 0.0em;
  font-size: 1.6em;
}
.smalldoot {
  width: 2em;
  display: block;
  margin: auto;
}
.flipped {
  transform: scale(-100%, 100%);
}
.doot {
  width: 10em;
  display: block;
  margin: auto;
  max-width: 80%;
}
.inlineLuuranki {
  display: inline-block;
  height: 1.4em;
  margin-bottom: -1em;
  margin-top: -1em;
}
body {
  background-color: #050505;
  color: white;
  width: 100vw;
  font-family: CyberSloth;
  text-rendering: optimizeSpeed;
  font-smooth: never;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: none;
  margin: 0;
  padding: 0;
}

.highlight{
  color: #40c8c7;
}
.highlight2{
  color: #7fb8cc;
}
.star{
  display: inline-block;
  height: 1.8em;
  margin-right: -0.5em;
  margin-left: -0.1em;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  .imageHolder{
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .chatHolder {
    width: 60%;
  }
  .chatbox{
    width: 100%;
    height: 11em;
    .chat_output{
      background-color: #090909;
      background-image: url("/img/misc/corner.svg");
      background-size: cover;
      border-radius: 1em;
      background-position: 100px bottom;
      background-repeat: no-repeat;
      height: 9em;
      position: relative;
      overflow: hidden;
      #chat_output {
        position: absolute;
        left: 0.3em;
        right: 0.3em;
        bottom: 0.2em;
        min-height: 90%;
        font-size: 0.8em;
        .chat_status_message {
          line-height: 0.95;
          font-size: 0.8em;
          color: #b5b5b5;
          & > span:first-child{
            font-size: 0.8em;
            color: #777777;
          }
        }

        .chat_message {
          font-size: 0.8em;
          text-align: left;
          .timestamp {
            display: inline-block;
            color: #2f0e0d;
            font-size: 0.8em;
            width: 70px;
            text-align: center;
          }
          & > span {
            color: #777777;
          }
          .chatName {
            color: #ffcd71;
          }
          .chatNameL {
            color: #40c8c7;
          }
          .chatMessage {
            color: #ffffff;
            display: inline-block;
          }
        }
      }
    }
    #chat_input{
      border-radius: 1em;
      background-color: #090909;
      height: 1.5em;
      margin-top: 0.4em;
      display: flex;
      flex-direction: row;
      justify-content: center;
      gap: 0.5em;
      padding: 0.2em
    }
    .chat_wait{
        & > span:first-child{
          animation: dotdotdot 3s -3s linear infinite;
        }
        & > span:nth-child(2){
          animation: dotdotdot 3s -2.5s linear infinite;
        }
        & > span:nth-child(3){
          animation: dotdotdot 3s -2s linear infinite;
        }

    }
    .chat_button {
      background-color: #222222;
      font-size: 0.6em;
      line-height: 2;
      padding: 0 0.8em;
      border-radius: 0.8em;

    }
    .chat_button:hover {
      background-color: #40c8c7;
      color: black;

    }
  }

}

@keyframes dotdotdot {
 0% {
   color: #e8e8e8;
 }
 30% {
   color: #e8e8e8;
 }
 40% {
   color: #000000;
 }
 99% {
   color: #000000;
 }
}

.container {
  background-color: black;
  margin: auto;
  width: 960px;
  max-width: 96vw;
  padding: 0.5em;
  text-align: center;
}

img {
  max-width: 100%;
}

.friends {
  display: grid;
  padding: 0.5em;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;

  & > div {
    padding: 0.5em;

    .friend {
      aspect-ratio: 1.1;
      width: 100%;
      background-color: #090909;
      background-image: url("/img/misc/corner.svg");
      background-size: cover;
      border-radius: 2em;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-content: center;

      .logoL {
        width: 90%;
      }

      .logoM {
        width: 75%;
      }
    }

    & > a:hover {
      .friend {
        background-color: #131313;

        img {
          filter: saturate(140%);
        }

      }
    }
  }
}
.subText{
  font-size: 0.5em;
  line-height: 1;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}
@media only screen and (max-width: 600px) {
  .row {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    .imageHolder {
      padding-top: 0.5em;
      width: 300px;
      max-width: 80%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .chatHolder {
      width: 100%;
    }
  }
  .friends {
    padding: 0.25em;
    & > div {
    padding: 0.25em;
     .friend {
       border-radius: 1em;
     }
    }
   }
}
/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

