/* .type = independent thing
   #type = inherets traits from parent
   @type = asset?
*/

:root { /* to get the color just type var(--color) */
  --color1:#150F0F; /*DARKEST*/
  --color2:#221918;
  --color3:#2C221F;
  --color4:#423229;
  --color5:#58493D;
  --color6:#8D7357;
  --color7:#BCAA9B;
  --color8:#F5DEAD;
  --color9:#FFF9BC; /*BRIGHTEST*/
  --border-size:3px;
  --border-radius:4px;
  
  --ribbonanim-length: 12s;
  --ribbonanim-percent: 85%;
}

/* FONTS */
@font-face {
    font-family: "Coolvetica"; 
    src: url("../../fonts/coolvetica rg.ttf") format("truetype");
}
@font-face {
    font-family: "Toyzarux"; 
    src: url("../../fonts/TOYZARUX.ttf") format("truetype");
}
@font-face {
    font-family: "PopMagic"; 
    src: url("../../fonts/GAU_pop_magic.TTF") format("truetype");
}

/* EVERYTHING ELSE */

html { /* FIREFOX SCROLLBARS */
  scrollbar-color: var(--color5) var(--color7);
}
html::-webkit-scrollbar { /* OTHER SCROLLBARS */
  background-color: var(--color7);
}
html::-webkit-scrollbar-thumb {
  background-color: var(--color5);
}
body {
  background-color: var(--color1);
  background-image: url("images/checker-dark.png");
  background-size: 100px;
  
  font-family: Coolvetica, Verdana, sans-serif;
  color: var(--color5);
  font-size: 1.3rem;
}
::selection {
  background-color: var(--color7);
  color: var(--color9);
}
p {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}
a {
  text-decoration-style: dashed;
  text-decoration-color: var(--color6);
  
  color: var(--color6);
}
s {
  opacity: 0.6;
}
ul {
  list-style-type: square;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0.4rem;
  
  color: var(--color6);
}
li {
  margin-bottom: 0.6rem;
}
textarea {
  display: block;
  padding: 3px;
  
  background-color: var(--color7);
  color: var(--color2);
  
  border-style: solid;
  border-color: var(--color5);
  border-radius: var(--border-radius);
}
header {
  margin-bottom: 0.4rem;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
}
p:first-of-type, h1:first-of-type, h2:first-of-type, h3:first-of-type, h4:first-of-type, h5:first-of-type, h6:first-of-type {
  margin-top: 0;
}
footer {
  height: auto;
  width: 85%;
  margin: auto;
  margin-top: 0.6rem;
  
  font-family: Coolvetica, Verdana, sans-serif;
  font-size: 1rem;
  text-align: center;
  color: var(--color6);
}
footer p {
  margin-bottom: 5px;
}
button {
  min-width: 32px;
  padding: 3px;
  margin-top: var(--border-radius);
  margin-bottom: calc(var(--border-radius) * 2);
  
  background-color: var(--color5);
  
  font-family: inherit;
  font-size: inherit;
  color: var(--color8);
  
  border: 0;
  border-style: solid;
  border-color: var(--color3);
  border-radius: var(--border-radius);
  border-bottom-width: var(--border-size);
  outline: none;
  
  cursor: pointer;
}
button:hover {
  background-color: var(--color6);
  border-color: var(--color5);
  color: var(--color9);
}
button:active {
  margin-top: calc((var(--border-radius) * 2) - 1px);
  margin-bottom: calc(var(--border-radius) * 2);
  border-bottom-width: 0;
}
a button {
  width: 100%;
}
blockquote, #statuscafe-content {
  border-left: var(--border-size) solid var(--color6);
  padding-left: 10px;
}
.flex {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: center;
  flex-flow: row wrap;
  gap: 0.8rem;
}
.flex>div {
  width: 100%;
  flex-grow: 1;
  flex-shrink: 1;
}
.growshrink, .flex>a {
  flex-grow: 1;
  flex-shrink: 1;
}

.banner {
  height: auto;
  width: auto;
  margin-top: clamp(16px, 4vw, 30px);
  margin-bottom: clamp(16px, 4vw, 30px);
  padding: clamp(16px, 4vw, 30px);
  
  background-color: var(--color4);
  background-image: url("images/checker-mid.png");
  background-size: 100px;
  
  font-family: PopMagic, Copperplate, fantasy;
  font-size: clamp(1.3em, 4vw, 3em);
  text-align: center;
  color: var(--color8);
  
  border: 0;
  border-style: solid;
  border-top-width: var(--border-size);
  border-bottom-width: var(--border-size);
  border-color: var(--color7);
}
.pagetitle {
  height: 40px;
  width: auto;
  padding-top: 20px;
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 15px;
  
  background-color: var(--color8);
  background-image: url("images/checker-trans.png");
  background-size: 40px;
  background-position-y: 20px;
  background-repeat: repeat-x;
  background-clip: padding-box;
  
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
}
.title {
  height: 130%;
  width: auto;
  padding-left: 15px;
  margin-top: -10px !important;
  float: right;
  
  display: inline-block;
  
  background-color: var(--color8);
  
  font-family: Toyzarux, Verdana, sans-serif;
  font-size: 30px;
  text-align: center;
  text-transform: uppercase;
}
.pagebody {
  background-color: var(--color8);
  background-image: none;
  
  padding: 20px;
  padding-top: 0;
  margin-top: 0;
}
.pagebody img {
  border: 0px;
  border-top-width: var(--border-size);
  border-bottom-width: var(--border-size);
  border-style: solid;
  border-color: var(--color5);
}
.ribbon {
  height: auto;
  width: auto;
  margin-top: 0.4rem;
  margin-bottom: 25px;
  padding:5px;
  
  text-align: center;
  
  background-color: var(--color7);
  
  border: 0px;
  border-top-width: var(--border-size);
  border-bottom-width: var(--border-size);
  border-style: solid;
  border-color: var(--color5);
  
  overflow-x: hidden;
}
#ribbontext {/*
  -moz-animation: ribbonscroll var(--ribbonanim-length) linear infinite;
  -webkit-animation: ribbonscroll var(--ribbonanim-length) linear infinite;
  animation: ribbonscroll var(--ribbonanim-length) linear infinite;*/
  margin-bottom: 0;
}
#songInfo {
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--color6);
}
.tag {
  padding: 3px;
  
  background-color: var(--color5);
  color: var(--color8);
  
  border-radius: var(--border-radius);
}
.light, #statuscafe-username, #statuscafe-username a {
  background-color: var(--color6);
  color: var(--color8);
  text-decoration-color: var(--color8);
}
.lighter {
  background-color: var(--color7);
  color: var(--color9);
}
#section {
  padding: 0px;
  
  border: var(--border-size);
  border-style: solid;
  border-radius: 4px;
}
.centertext {
  text-align: center;
}
.container {
  height: calc(((100vh - clamp(1.3em, 4vmax, 3em)) - 230px));
  width: 85%;
  margin: auto;
  
  background-color: var(--color7);
  
  border: 0;
  border-style: solid;
  border-top-width: var(--border-size);
  border-bottom-width: var(--border-size);
  border-color: var(--color9);
  
  overflow: hidden;
  
  align-items: stretch;
  align-content: stretch;
  gap: 0 !important;
  
  z-index: 69;
}
.navbar {
  order: 1;
  flex-basis: 250px;
  flex-grow: 1;
  
  padding: 0.5rem;
  
  background-color: var(--color7);
  
  font-family: PopMagic, Copperplate, fantasy;
  font-size: 2rem;
  
  gap: 0;
  justify-content: flex-start;
}
.navbar a {
  color: var(--color4);
}
.navbar a:hover {
  color: var(--color6);
}
.navbar ::selection {
  background-color: var(--color6);
}
#mainframe {
  order: 2;
  flex-grow: 9999;
  flex-basis: 400px;
  
  border: none;
}

@media screen and (max-width: 850px) { /* MOBILE */
  body {
    font-size: 1.2rem;
  }
  .flex {
    gap: 0.5rem;
  }
  .container {
    width: 100%;
    
    flex-flow: column;
    align-content: flex-start;
  }
  #mainframe {
    flex-basis: auto;
  }
  .navbar {
    flex-basis: auto;
    gap: 0.5rem 1rem;
    justify-content: center;
    margin: auto;
    
    font-size: 1.6rem;
  }
  .navbar>a {
    flex-grow: 0;
  }
}

/* PAGE SPECIFIC STUFF */
.about-buttons {
  gap: 5px;
}
.aboutbuttons>a, .sitebutton a, .listbutton a {
  flex-grow: 0;
}
.about-short {
  order: 1;
  flex-basis: 220px;
  height: auto;
  
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
}
.bullet {
  padding-left: 20px;
}
.bullet ~ p {
  padding-left: 40px;
}
.bullet li {
  margin-bottom: 5px;
}
.extras>div, .webrings>div {
  width: auto;
}
#fanlists {
  order: 2;
  flex-basis: calc(88px*2);
}
#latest, #latest-video {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
#latest-video {
  aspect-ratio: 16/9;
}
.listbutton, .sitebutton {
  gap: 5px 0;
  padding-bottom: 10px;
}
.listbutton img {
  max-height: 50px;
  max-width: 50px;
}
#sites {
  order: 3;
  flex-basis: calc(88px*6);
}
#statuscafe-username {
  border-bottom-left-radius: 0;
}
#statuscafe-content {
  padding-top: 5px;
  padding-bottom: 5px;
}
.sitebutton img, .listbutton img {
  display: block;
  margin: auto;
}
.sitebutton img {
  max-height: 31px;
  max-width: 88px;
}
.workicon {
  height: 150px;
  width: 150px;
  margin: auto;
  display: block;
  
  border-style: none !important;
  
  object-fit: none;
}
#va {object-position: 0 0;}
#va:hover {object-position: -150px 0;}
#write {object-position: 0 -150px;}
#write:hover {object-position: -150px -150px;}
#art {object-position: 0 -300px;}
#art:hover {object-position: -150px -300px;}
#code {object-position: 0 -450px;}
#code:hover {object-position: -150px -450px;}

#higuys img {
  max-height: 169px;
  height: 100%;
  max-width: 300px;
  width: 100%;
  
  flex-basis: 250px;
  flex-grow: 1;
  flex-shrink: 1;
}

/*WEBRING STYLING*/
.webrings {
  gap: 5px;
  padding-bottom: 10px;
}

/*CUSTOM STYLING*/
.ringTitle {
  margin: auto;
  
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  
  color: var(--color8);
  font-family: "PopMagic";
  font-size: 1em;
  text-align: center;
}
.ringTitle:hover {
  background-color: var(--color6);
  color: var(--color9);
}
.leftButton {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.innerButton {
  border-radius: 0;
}
.rightButton {
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
/*AUTISTS ONLINE*/
#autiring .webring-prev img { 
  border: 0;
}
#autiring .webring-next img {
  border: 0;
}