/*! 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: 1em;
  line-height: 1.4;
}

/*
 * 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;
}

/*
 * 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;
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/*Non-boiler-plate CSS*/

/*Set the size of the entire document for positioning and reset the margins.*/
html {
  height: 100%;
  margin: 0;
}

/*Set the size of the main body for positioning and reset the margins.*/
body {
  height: 100%;
  margin: 0;
  background-color: black;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#background-primary, #background-hidden {
  width: 100vw;
  height: 100vh;
  position: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -100;
  opacity: 50%;
  filter: blur(4px);

  /*Background Animation Testing*/
  /*animation: testbg 120s linear 0s 1;*/
}

#main-container {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;

  /*Flex Container*/
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;

  overflow: auto;
}

#banner {
  /*Image of the banner*/
  /*Scaling and Positioning*/
  width: 50%;
  height: auto;

  /*Styling*/
  background-color: #e10b80;
  border: #b30765 2px solid;
  border-radius: 18px;
  margin-top: 8px;
  margin-bottom: 8px;
  opacity: 70%;
  box-shadow: 0px 14px 20px black;

  transition: transform 0.1s linear;
  transition: all 0.2s ease;
}

#banner:hover {
  transform: scale(1.05, 1.05);
  cursor: pointer;
}

#banner:active {
  transition: transform 0.05s linear;
  -o-transition: transform 0.05s linear;
  -moz-transition: transform 0.05s linear;
  -webkit-transition: transform 0.05s linear;
  transform: scale(0.95, 0.95);
}

/*Main content div containing all buttons*/
#content {
  /*Scaling and Positioning*/
  width: 100%;
  text-align: center;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;

  /*Styling
  background-color: rgba(225, 11, 128, 0.15);
  border: #b30765 2px solid;
  border-radius: 4px;
  text-align: center;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  position: relative;
  overflow: hidden;
  */
}

#description-header {
  font-size: 0.9rem !important;
  text-wrap-mode: nowrap;

  transition: all 0.4s ease;

  animation: pulse 2s ease-in-out 0s infinite alternate; 
}

#button-list {
  list-style: none;
  list-style-position: outside;
  padding: none;

  /*Flex Container for centering*/
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;

  margin-right: 0;
  padding-top: 0;
  visibility: visible;

  transition: margin-right 0.2s linear, visibility 0.2s linear; 
}

.slide-left-anim {
  margin-right: 150vw !important;
  visibility: hidden !important;
}

#config {
  position: absolute;
  height: 48px;
  left: 100.1%;
  top: -2px;
  aspect-ratio: 1;
  box-shadow: 2px 2px 8px black;

  background-image: url('/img/Buttons/SettingsCog.png');
  background-size: 82% auto;
  background-repeat: no-repeat;
  background-position: 60% 50%;

  border-top: #fab7d8 2px solid;
  border-bottom: #fab7d8 2px solid;
  border-right: #fab7d8 2px solid;
  border-radius: 4px;

  /*Browser Support haha*/
  transition: all 0.1s linear;
  /*Position above nav-bar.*/
  z-index: 10000;

  background-color: rgba(228, 97, 151, 0.65);
}

#config:hover {
  transform: scale(1.05, 1.05);
  -o-transform: scale(1.05, 1.05);
  -moz-transform: scale(1.05, 1.05);
  -webkit-transform: scale(1.05, 1.05);
  -ms-transform: scale(1.05, 1.05);
  cursor: pointer;
}

#nav-bar {
  border-radius: 4px;
  position: absolute;
  top: 18px;
  left: -202px;
  width: 200px;
  min-width: 200px;
  max-height: 75vh;
  height: 75vh;

  z-index: 2000;

  /*Animation*/
  visibility: visible;

  display: flex;
  justify-content: center;

  transition: left 0.1s linear, visibility 0.1s linear;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-left: 0;
}

.nav-open-anim {

  /*
  min-height: 75vh !important;
  */
  left: -1px !important;
  visibility: visible !important;
}

footer {
  width: 100%;
  text-align: center;
}

/*Class Styling*/
.button-element {
  width: 300px;
  max-width: 300px;
  max-height: 60px;
  height: 60px;

  /*Styling*/
  text-align: right;
  line-height: 38px;
  font-size: 2rem;

  /*Browser Support haha*/
  transition: transform 0.1s linear;
  -o-transition: transform 0.1s linear;
  -moz-transition: transform 0.1s linear;
  -webkit-transition: transform 0.1s linear;

  /*Positioning (Spacing)*/
  margin-bottom: 24px;
  position: relative;
}

.button-element:hover {
  /*Browser Support haha*/
  transform: scale(1.05, 1.05);
  cursor: pointer;
}

.button-element:active {
  transition: transform 0.05s linear;
  -o-transition: transform 0.05s linear;
  -moz-transition: transform 0.05s linear;
  -webkit-transition: transform 0.05s linear;
  transform: scale(0.95, 0.95);
}

/*This is for the text inside of the buttons.*/
.button-element > span:not(.button-description) {
  opacity: 85%;
}

.panel-style {
  background-color: rgba(228, 97, 151, 0.65);
  border: #fab7d8 2px solid;
  border-radius: 12px;

  box-shadow: 4px 10px 20px black;
}

.config-panel {
  background-color: rgba(228, 97, 151, 0.65);
  border: #fab7d8 2px solid;
  border-radius: 12px;

  box-shadow: 4px 10px 20px black;
}

#option-reset-data {
  position:inherit;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 60px;

  width: 90%;
  max-width: 300px;
  max-height: 60px;
  height: 55px;
  font-size: 1.4rem;
  line-height: 24px;

  /*Browser Support haha*/
  transition: transform 0.1s linear;
  -o-transition: transform 0.1s linear;
  -moz-transition: transform 0.1s linear;
  -webkit-transition: transform 0.1s linear;

  /*Positioning (Spacing)*/
  margin-bottom: 24px;
  box-shadow: 2px 5px 10px black;
}

#option-reset-data:hover {
  /*Browser Support haha*/
  transform: scale(1.05, 1.05);
  cursor: pointer;
}

#option-reset-data:active {
  transition: transform 0.05s linear;
  -o-transition: transform 0.05s linear;
  -moz-transition: transform 0.05s linear;
  -webkit-transition: transform 0.05s linear;
  transform: scale(0.95, 0.95);
}

/*Resize the button descriptions appropriately.*/
.button-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 184, 0.8);
}

/*Give the button text some padding.*/
.button-element > span {
  padding-right: 10px;
}

/*Parent element of the sprite responsible for showing the background*/
.button-icon-container {
  position: absolute; /* Position relative to .button-element */
  top: 49%; /* Align it to the middle */
  left: -36px;

  /*Transform*/
  transform: translateY(-50%); /*Center vertically relative to parent*/
  
  width: 100px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  background-image: url('/img/Buttons/SIF-Item-Container.png');
  

  /*Show under sprite*/
  z-index: 8;
}

/*Element inside of the sprite container responsible for showing the icon.*/
.button-icon-sprite {
  position: absolute; /* Position relative to .button-element */
  left: 0;
  top: 0;

  width: 100px;
  height: 100px;
  background-size: 90% auto;
  background-repeat: no-repeat;
  background-position: center;

  /* Creates ugly artifact on hover. Can be fixed by disabling box-shadow on hover of surrounding elements.
  border-radius: 16px;
  box-shadow: 4px 10px 20px black;
  */

  /*Show above container*/
  z-index: 10;
  /*
  border-color: #b30765;
  background-color: rgba(225, 11, 128, 0.3);
  border: #b30765 2px solid;
  border-radius: 25%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  */
}

.llfont {
  font-family: "schoolidol";
  color: rgb(220, 220, 220);
  text-shadow: 3px 3px 2px black;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
}

#loading-text {
  left: 50%;
  top: 40%;
  position: absolute;
  font-size: 7em;
  transform: translate(-50%, -50%);
}

/*When in portrait mode, scale the page so that the main content page covers majority of the screen.*/
@media screen and (orientation: portrait) {
  #banner {
    width: 90%;
    max-width: 250px;
  }
  .button-element {
    width: 90%;
    max-width: 300px;
    max-height: 60px;
    height: 55px;
  }
  #description-header {
    font-size: 0.6rem !important;
  }
  .button-element {
    font-size: 1.4rem;
    line-height: 24px;
  }
  .button-description {
    font-size: 0.68rem;
  }
  .button-icon-container {
    width: 76px;
    height: 76px;
    top: 49%; /* Align it to the middle */
    left: -8px;
  }
  .button-icon-sprite {
    width: 76px;
    height: 76px;
  }
  #nav-bar {
    left: -202px;/*Small adjustment is required for portrait mode.*/
    top: 18px;
    width: 200px;
    min-width: 200px;
    max-height: 75vh;
    height: 75vh;
  }
  .slide-left-anim {
    margin-right: 200vw !important;
    visibility: hidden !important;
  }
}

/*When in landscape mode, scale the page so that the main content page covers only some of the screen; leaving the sides untouched.*/
@media screen and (orientation: landscape) {
  #main-container {
    /*Flex Container*/
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  #content {
    width: 60%;
    max-width: 1000px;

    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #banner {
    display: block;
    width: 50%;
    max-width: 350px;
    margin-top: 8px;
  }

  .button-element {
    width: 50%;
    max-width: 600px;
    min-width: 400px;
    max-height: 80px;
    height: 80px;
  }
  #description-header {
    font-size: 1.2rem !important;
  }
}

/*When screen height is at 1000px or less special scaling needs to occur on the banner to keep it in view.*/
@media screen and (max-height: 1000px) {
  #banner {
    width: 80%;
  }
}

/*Prevent description text from wrapping/overflowing.*/
@media screen and (max-width: 1400px) and (orientation: landscape) {
  .button-description {
    font-size:0.9rem;
  }
  .slide-left-anim {
    margin-right: 200vw !important;
    visibility: hidden !important;
  }
}

/*Load the alternative free-to-use School Idol Project font.*/
@font-face {
  font-family: "schoolidol";
  src: url("/fonts/Jura-Bold.ttf");
}

/*Animations*/
@keyframes pulse {
  0% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1.1, 1.1);
  }
  0% {
    transform: scale(1, 1);
  }
}

/*
@keyframes testbg {
  0% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(2, 2);
  }
}
*/