/* ############################ */
/* #         general          # */
/* ############################ */
/* #region */

html {
  font-size: 100%;
  overflow-x: hidden;
  overflow-y: scroll; /* Adding the ability to scroll */
}
/* Hiding scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
  display: none;
}

html, body {
  background-color: var(--ghblack);
  margin: 0px;
  padding: 0px;
  height: 100%;
  width: 100%;
  
  overscroll-behavior: none;
  touch-action: manipulation;
}
body.quiz {
  touch-action: none;
}

p,h1,h2,h3,h4,h5,li { /* default font */
  font-family: sans-serif;
  color: var(--vlightgrey);
}
p {
  line-height: 1.25;
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 2rem;
  }
}
.a-quiz-that {
  letter-spacing: 3px;
  font-size: 2rem;
  color: var(--lightgrey);
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 3rem;
  }
}
.no-data {
  font-size: 1.25rem;
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 2rem;
  }
  color: var(--lightgrey);
}

.alt-font {
  font-family: 'Courier New', monospace;
}

h1 {
  margin-top: 0;
  font-size: 3rem;
  text-align: center;
  display: block;
  text-decoration: none;
}
a {
  color: inherit;
  text-decoration: inherit;
}

.content-container {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.width-restriction {
  width: 75vw;
  max-width: 775px;
}

.vertical-centre {
  margin: 0;
  position: relative;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
.vertical-align {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

#preloader_load {
  background: #111;
  background-size: 100%;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 100;
}

#statement-text {
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 65px;
  }
}
#statement-number {
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 32.5px;
  }
}

.draggablebtn {
  background-color: var(--ghblack);
  font-family: 'Montserrat', sans-serif;
  border: 3px solid var(--lightgrey);
  color: var(--vlightgrey);
  text-align: center;
  text-decoration: none;
  cursor: pointer;

  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    font-size: 50px;
    border-radius: 30px;
    padding: 10px;

  }
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 75px;
    border-radius: 45px;
    padding: 15px;
  }
}

#Drag-div {
  float: center;
  margin: auto;
  border: 3px solid var(--lightgrey);

  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    width: 66%;
    border-radius: 30px;
  }
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    width: 72.5%;
    border-radius: 45px;
  }
}

#tick {
  margin-right: 3%;
  display:inline-block;
  color: #c35a5c;
  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    font-size: 80px;
  }
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 120px;
  }
}
#x {
  margin-left: 3%;
  display:inline-block;
  color: #6db26c;
  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    font-size: 60px;
  }
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 90px;
  }
}

.centre {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* #endregion */
/* ############################ */
/* #       gif related        # */
/* ############################ */
/* #region */

.gif-mask {
  background: linear-gradient(#01040977, #01040988, #bbbbbbaa, var(--lightgrey));
  position: relative;
  z-index: 1;
  width: 100%;
  height: 300%;
  max-height: 3000px;
}
img.gif {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 300%;
  max-height: 3000px;
}

/* #endregion */
/* ############################ */
/* #       quad related       # */
/* ############################ */
/* #region */
.compass-bg {
  background-image: url('resources/compass-no-grid.png');
  background-size: auto 125%; /* Ensure the image covers the whole background */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat; /* Prevent the background image from repeating */

  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    padding-top: 5vh;
    margin-top: -5vh;
    padding-bottom: 5vh;
    margin-bottom: -5vh;
  }
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    padding-top: 5vw;
    margin-top: -5vw;
    padding-bottom: 5vw;
    margin-bottom: -5vw;
  }

}
.vertspace {
  display: block;
}
.quadcolumn {
  position: relative;
  transition: transform .6s, filter .3s;
  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height aka desktop*/
    width: 20vh;
  }
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width aka mobile*/
    width: 22.5vw;
  }
}
@media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
  .quadcolumn:hover {
    transform: scale(1.05);
  }
}

@media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
  @keyframes glowRedAnimation {
    0% {
      filter: drop-shadow(0 0 0.75rem var(--polred));
    }
    50% {
      filter: drop-shadow(-1rem -1rem 3rem var(--polred));
    }
    100% {
      filter: drop-shadow(0 0 0.75rem var(--polred));
    }
  }
  .glowRed {
    animation: glowRedAnimation 4s infinite;
  }
}
@media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
  .glowRed {
    filter: drop-shadow(0 0 0.75rem var(--polred));
  }
  .glowRed:hover {
    z-index:10;
    filter: drop-shadow(-0.25rem -0.25rem 2.5rem var(--polred));
  }
}

@media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
  @keyframes glowBlueAnimation {
    0% {
      filter: drop-shadow(0 0 0.75rem var(--polblue));
    }
    50% {
      filter: drop-shadow(1rem -1rem 3rem var(--polblue));
    }
    100% {
      filter: drop-shadow(0 0 0.75rem var(--polblue));
    }
  }
  .glowBlue {
    animation: glowBlueAnimation 4s infinite;
  }
}
@media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
  .glowBlue {
    filter: drop-shadow(0 0 0.75rem var(--polblue));
  }
  .glowBlue:hover {
    z-index:10;
    filter: drop-shadow(0.25rem -0.25rem 2.5rem var(--polblue));
  }
}

@media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
  @keyframes glowYellowAnimation {
    0% {
      filter: drop-shadow(0 0 0.75rem var(--polyellow));
    }
    50% {
      filter: drop-shadow(1rem 1rem 3rem var(--polyellow));
    }
    100% {
      filter: drop-shadow(0 0 0.75rem var(--polyellow));
    }
  }
  .glowYellow {
    animation: glowYellowAnimation 4s infinite;
  }
}
@media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
  .glowYellow {
    filter: drop-shadow(0 0 0.75rem var(--polyellow));
  }
  .glowYellow:hover {
    z-index:10;
    filter: drop-shadow(0.25rem 0.25rem 2.5rem var(--polyellow));
  }
}

@media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
  @keyframes glowGreenAnimation {
    0% {
      filter: drop-shadow(0 0 0.5rem var(--polgreen));
    }
    50% {
      filter: drop-shadow(-1rem 1rem 3rem var(--polgreen));
    }
    100% {
      filter: drop-shadow(0 0 0.5rem var(--polgreen));
    }
  }
  .glowGreen {
    animation: glowGreenAnimation 4s infinite;
  }
}
@media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
  .glowGreen {
    filter: drop-shadow(0 0 0.75rem var(--polgreen));
  }
  .glowGreen:hover {
    z-index:10;
    filter: drop-shadow(-0.25rem 0.25rem 2.5rem var(--polgreen));
  }
}

/* .topleft-glow {
  filter: drop-shadow(0 0 0.75rem var(--polred));
}
.topleft-glow:hover {
  z-index:10;
  filter: drop-shadow(0 0 1.5rem var(--polred));
}
.topright-glow {
  filter: drop-shadow(0 0 0.75rem var(--polblue));
}
.topright-glow:hover {
  z-index:10;
  filter: drop-shadow(0 0 1.5rem var(--polblue));
}
.botleft-glow {
  filter: drop-shadow(0 0 0.75rem var(--polgreen));
}
.botleft-glow:hover {
  z-index:10;
  filter: drop-shadow(0 0 1.5rem var(--polgreen));
}
.botright-glow {
  filter: drop-shadow(0 0 0.75rem var(--polyellow));
}
.botright-glow:hover {
  z-index:10;
  filter: drop-shadow(0 0 1.5rem var(--polyellow));
} */

/* #endregion */
/* ############################ */
/* #         buttons          # */
/* ############################ */
/* #region */

.button {
  font-family: 'Montserrat', sans-serif;
  color: var(--buttontext);
  background-color: var(--ghblack);
  text-decoration: none;
  cursor: pointer;

  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    border: 3px solid var(--buttonborder);
    border-radius: 10px;
    padding: 15px;
    font-size:2.75rem;
    letter-spacing: 5px;
    
  }
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    border: 4.5px solid var(--buttonborder);
    border-radius: 15px;
    padding: 22.5px;
    font-size:4.125rem;
    letter-spacing: 7.5px;
  }
}

.button-small {
  letter-spacing: 2.5px;
  font-family: 'Montserrat', sans-serif;
  border: 3px solid var(--buttonborder);
  border-radius: 5px;
  color: var(--buttontext);
  background-color: var(--ghblack);
  padding: 7.5px;
  text-decoration: none;
  font-size:1.5rem;
  cursor: pointer;
}

.highlight:hover, .highlight:focus {
  color: var(--vvlightgrey);
  border-color: var(--vvlightgrey);
}

/* #endregion */
/* ############################ */
/* #         fade fx          # */
/* ############################ */
/* #region */

.fade-in {
  animation: fadeIn 2s;
}

.fade-in-slow {
  animation: fadeIn 5s;
}

@keyframes fadeIn {
  0% { opacity: 0.25; }
  100% { opacity: 1; }
}
@-moz-keyframes fadeIn {
  0% { opacity: 0.25; }
  100% { opacity: 1; }
}
@-webkit-keyframes fadeIn {
  0% { opacity: 0.25; }
  100% { opacity: 1; }
}
@-o-keyframes fadeIn {
  0% { opacity: 0.25; }
  100% { opacity: 1; }
}
@-ms-keyframes fadeIn {
  0% { opacity: 0.25; }
  100% { opacity: 1; }
}

/* #endregion */
/* ############################ */
/* #         colours          # */
/* ############################ */
/* #region */

:root {
  --polredfaded:#c35a5c;
  --polbluefaded:#3782c0;
  --polgreenfaded:#6db26c;
  --polyellowfaded:#acaa4f;
  
  --polred:#ff5d60;
  --polblue:#4a90e2;
  --polgreen:#66ff66;
  --polyellow:#ffdd57;
  
  --ghblack:#010409;
  --vdarkgrey:#222222;
  --darkgrey:#333333;
  --lightgrey:#bbbbbb;
  --vlightgrey:#dddddd;
  --vvlightgrey:#eeeeee;

  --buttontext:var(--vlightgrey);
  --buttonborder:var(--lightgrey);
}

/* #endregion */
/* ############################ */
/* #         tab box          # */
/* ############################ */
/* #region */

/* Style the tab */
.tab {
  overflow: hidden;
  border-bottom: 2px solid var(--lightgrey);
}
.dark {
  border-bottom: 2px solid var(--ghblack);
}
.darkifdesktop {
  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    border-bottom: 2px solid var(--ghblack);
  }
}

/* Style the buttons that are used to open the tab content */
.tab button {
  font-size: 1.75rem;
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 2.25rem;
  }
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  color: var(--lightgrey);
  background-color: inherit;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}
.dark button {
  color: var(--ghblack);
}
.darkifdesktop button {
  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    color: var(--ghblack);
  }
}


/* Change background color of buttons on hover */
.tab button:hover {
  background-color: var(--vlightgrey);
  color: var(--ghblack);
}
.dark button:hover {
  background-color: var(--ghblack);
  color: var(--vlightgrey);
}
.darkifdesktop button:hover {
  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    background-color: var(--ghblack);
    color: var(--vlightgrey);
  }
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: var(--vlightgrey);
  color: var(--ghblack);
}
.dark button.active {
  background-color: var(--ghblack);
  color: var(--vlightgrey);
}
.darkifdesktop button.active {
  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    background-color: var(--ghblack);
    color: var(--vlightgrey);
  }
}

/* Style the tab content */
.tabcontent1, .tabcontent2, .tabcontent3 {
  display: none;
  padding-top: 48px;
  border-top: none;
}

.tabcontent1, .tabcontent2, .tabcontent3 p {
  font-size: 1.75rem;
}

.tab-bg-dark {
  background-color: #ffffff56;
  padding-left: 4%;
  padding-right: 4%;
}
.tab-bg-darkifdesktop {
  @media (min-aspect-ratio: 1/1) { /* Viewport width is greater than viewport height */
    background-color: #ffffff56;
    padding-left: 4%;
    padding-right: 4%;
  }
}

/* #endregion */
/* ############################ */
/* #         console          # */
/* ############################ */
/* #region */

.console-container {
  font-size:1.25em;
  margin-left: 20vw;
  margin-right: 20vw;
  @media (max-aspect-ratio: 1/1) { /* Viewport height is greater than viewport width */
    font-size: 2rem;
    margin-left: 15vw;
    margin-right: 15vw;
  }
  font-family: 'Courier New', monospace;
  float: left;
  margin-top: -10px;
  position: relative;
  display:block;
  color: var(--vlightgrey);
  left:0;
}
.console-underscore {
  display:inline-block;
  position:relative;
  top:-0.14em;
  left:10px;
}
.hidden {
  opacity:0;
}

/* #endregion */
/* ############################ */
/* #         results          # */
/* ############################ */
/* #region */

/* #endregion */