:root {
    --main-color:#ff6500ff;
    --sub-color: rgb(174, 69, 0);
    --pearl: #FFFDF7;
    --offpearl: white;
    touch-action: pan-x pan-y;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
    height: 100%;
    overflow-y: hidden;
}

.desktop-layout {
    overflow-y: hidden;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.25;
    color:white;
    padding-bottom: 2px;
    font-weight: normal;
    font-size: 35px;
    z-index: 200;
    width: 500px;
    text-align: center;
}

.mobile h1 {
    font-size: 21.5px;
}

h2 {
    font-family: Georgia, "Times New Roman", serif;
    color:white;
    padding-bottom: 2px;
    font-weight: normal;
    font-size: 30px;
    z-index: 200;
    text-align: center;
    margin-top:0px!important;
    padding-top:0px!important;
}

h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    color:white;
    padding-bottom: 2px;
    font-weight: normal;
    font-size: 20px;
    z-index: 200;
    text-align: center;
    margin-top:0px!important;
    padding-top:0px!important;
}

h4 {
    width: 500px;
}

h5 {
    width: 600px;
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-10px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

.bounce {
  animation: bounce 0.4s ease;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-5px); }
  30%  { transform: translateX(5px); }
  45%  { transform: translateX(-3px); }
  60%  { transform: translateX(3px); }
  75%  { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.logo {
    width: 100px;
    height: auto;
    margin-top: 15vh; 
    display: block;
    margin: 0 auto;
    padding-top: 0px;
}


/* button stuff */

button {
  padding: 8px 16px 10px 16px;
  margin: 10px 0;
  font-weight: normal;
  font-size: 1.2em;
  border-radius: 16px;
  background: white;
  color: black;
  box-sizing: border-box;
  border: 2px solid var(--sub-color);
  border-bottom: 4px solid var(--sub-color);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  transition: transform 0.05s ease;
  transition: background-color 0.2s ease;
  transition: color 0.2s ease;
}

button.check {
    font-size: 1.4em;
}

button:active {
    transform: translateY(2px);
}


button.word:disabled {
  opacity: 0;
  cursor: default;
}

button.word:disabled:active {
  transform: translateY(1px);
}

@keyframes popIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.pop {
  animation: popIn 0.15s ease-out;
}

@keyframes popOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
}

.pop-out {
  animation: popOut 0.1s ease-in forwards;
}

.next, #check {
    bottom: 0;
    display: flex;
    align-content: right;
    justify-content: center;
    padding: 10px;
    margin-right:20px;
    z-index:100;
}


.mobile .check {
    background: rgb(255, 255, 255);
    font-size: 20px;
    width: 350px;
    display: none!important;
    /* color: white; */
}

.mobile .next, .mobile #check {
    display: none!important;
}

button.inaccessible {
    cursor: default;
}

button.inaccessible:active {
    border: 2px solid var(--sub-color);
    border-bottom: 4px solid var(--sub-color);
    pointer-events: none;
}

.hidden {
    display: none!important;
}


.mobile button {
    font-size: 0.95em;
    padding: 6px 12px 7px 12px;
    margin: 7px 0;
    border-radius: 13px;
}


/* for the footer */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background-color: var(--sub-color);
    padding: 20px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 10000000;
}

footer button {
  margin-top: 2px;
  margin-bottom: 0px;
}

.footer-left {
    justify-self: start;
}

.bottom-buttons {
    justify-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 700px;
    justify-content: center;
}

.footer-right {
    justify-self: end;
}

.mobile footer {
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile .bottom-buttons {
    gap: 6px!important;
}

.mobile footer button {
    margin: 0;
}


/* for the word gloss  */

.word-gloss {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.gloss {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 15px;
  font-size: 20px;

  padding: 8px 12px;
  background: var(--sub-color);
  color: rgb(255, 255, 255);
  border-radius: 8px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000000;
}

.mobile .gloss {
    font-size: 0.95em;
}

.gloss::after {
  content: "";
  position: absolute;
  top: 98%;
  left: 50%;
  transform: translateX(-50%);
  
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--sub-color);
}

.gloss.show {
  opacity: 1;
}


/* for the header */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--main-color);
    padding-top: 5px;
    padding-bottom: 60px;
    z-index: -3;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-left {
    position: absolute;
    left: 20px;
}

#heart {
    margin: 10px;
    height: 55px;
}


.mobile header {
    padding-top: 0px;
    padding-bottom: 3px;
    padding-left: 20px;
}

.mobile #heart {
    margin-top: 10px;
    margin-left: 0px;
    left: 8px;
    height: 35px;
}


/* for the horizontal flashcard layout */

#flashcard {
    max-width: 800px;
    width: fit-content;
    cursor: default;
}

#flashcard:active {
    transform: none!important;
}

#flashcard-sentence {
    display: inline-flex;
    flex-wrap: wrap;
    row-gap: 20px;
    column-gap: 0px;
    align-items: flex-start;
    flex-direction: row;
    margin-right: 0px!important;
    margin-left: 0px!important;
}

.flippy #flashcard-sentence {
    flex-direction: row-reverse!important;
}

.flashcard {
    border: 4px solid var(--sub-color);
    border-bottom: 10px solid var(--sub-color);
    display: flex;
    align-items: flex-start;
    justify-content: left;
    padding: 20px;
    gap: 2rem;
    z-index: 1000;
    margin-top: 5px;
    margin-bottom: 60px;
    border-radius: 0px !important;
    background-color: var(--pearl);
    flex-direction: row;
}

.flashcard.flippy {
    flex-direction: row-reverse!important;
}

.scroll {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--main-color);
  margin-top:140px;
}

.bottom-scroll {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--main-color)!important;
}

.sentence-section {
    background-color: var(--main-color)!important;
    vertical-align: top!important;
    padding-top: 0px!important;
    justify-content: top!important;
    margin-top: 0px!important;
    max-width: 600px;
}

.container {
    padding-left: 10px;
    padding-right: 10px;
    padding-top:0px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: left!important;
}

.bottom-scroll section {
    flex: 1;
    height: calc(100vh - 550px);
}

.speaker {
    height: 220px;
}

.flippy .speaker {
    transform: scaleX(-1)!important;
}

.speech {
    height: 55px;
    margin: 3px;
    cursor: pointer;
}

.flippy .speech {
    transform: scaleX(-1)!important;
}

.mobile #horizontal-layout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.mobile #flashcard {
    padding: 5px;
    max-width: 365px;
    gap: 0.5rem;
    border: 3px solid var(--sub-color);
    border-bottom: 7px solid var(--sub-color);
    margin-top: 50px;
}

.mobile .speaker {
    height: 140px;
}

.mobile .speech {
    height: 35px;
    margin: 2px;
}

.mobile #flashcard-sentence {
    row-gap: 8px;
}

.mobile .container {
    gap: 6px!important;
}

.mobile .sentence-section {
    max-width: 300px!important;
}

.mobile .scroll {
    margin-top: 50px;
}

.mobile .bottom-scroll section {
    flex: 1;
    height: calc(100vh);
}

.mobile .sentence-section {
    padding-top: 30px!important;
}


/* for the vertical flashcard layout */

.flippy #vertical-scroll{
    display: flex;
    flex-direction: row-reverse;
}

#vertical-flashcard-sentence {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 520px;
    row-gap: 4px;
    column-gap: 18px;
}

.flippy #vertical-flashcard-sentence {
    flex-wrap: wrap-reverse!important;
}

#vertical-scroll section {
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
}

.vertical-left-divide {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 400px;
}

#vertical-flashcard {
    padding-top:15px;
    padding-right:15px;
    padding-left:15px;
    flex-direction: row;
    gap:1.4rem;
    width: auto;
    display: flex;
    align-content: right;
    height: auto!important;
    margin-bottom: 0px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    cursor: default!important;
}

#vertical-flashcard:active {
    transform: none!important;
}

.vertical-speaker {
    height: 220px;
    align-self: flex-end;
    padding-bottom: 0px;
}

.flippy .vertical-speaker {
    transform: scaleX(-1)!important;
}

#vertical-flashcard-sentence .speech {
    height: auto;
    width: 55px;
    align-self: flex-end;
    margin-right: 0px;
    cursor: pointer;
}

#sentence-vertical {
    padding-top:40px;
    margin-top: 0; 
}

.mobile #vertical-layout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.mobile #vertical-scroll section {
    height: calc(100vh);
}


.mobile #vertical-flashcard {
    padding: 5px;
    gap: 0.5rem;
    border: 3px solid var(--sub-color);
    border-bottom: 7px solid var(--sub-color);
    margin-top: 45px;
    margin-left: 10px;
    margin-right: 10px;
}

.mobile .vertical-speaker {
    height: 140px;
}

.mobile #vertical-flashcard-sentence {
    row-gap: 2px;
    column-gap: 10px;
}

.mobile #vertical-flashcard-sentence .speech {
    width: 35px;
    margin: 1px;
    margin-right:0px;
}



/* for multi-choice questions */

#multichoice-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.multichoice-question {
    margin-top: 105px;
    flex: 1;
    background-color: var(--main-color);
    z-index: 90;
}

.multichoice-text {
    color: white;
    font-size: 25px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 40px;
    margin-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
}

.multichoice-text p {
    display: inline;
    margin: 0;
}

.multichoice-text i {
    display: inline; 
}

.multichoice-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.multichoice-image {
    height: 70px;
    max-width: 160px;
}

.multichoice-option {
    width: 200px;
    margin-top:0px;
    margin-bottom: 30px;
    height: 200px;
    border: 3px solid var(--sub-color);
    border-bottom: 7px solid var(--sub-color);
    border-radius: 0px!important;
    background-color: white;
    transition: background-color 0.07s;
}

.multichoice-option:disabled {
    cursor: default;
}

.multichoice-option:disabled:active {
    border-bottom: 7px solid var(--sub-color)!important;
}

.multichoice-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: var(--main-color);
    padding-bottom: 30px;
    min-height: 50px;
    z-index:100;
}

.mobile #multichoice-layout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.mobile .multichoice-question {
    margin-top: 70px;
}

.mobile .multichoice-text {
    font-size: 1em;
    margin-top:50px;
    gap: 7px;
}

.mobile .multichoice-options {
    gap: 20px;
}

.mobile .multichoice-image {
    height: 40px;
    max-width: 100px;
}

.mobile .multichoice-option {
    width: 140px;
    margin-top:0px;
    margin-bottom: 20px;
    height: 140px;
}


/* for match questions */

#match-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.match-question {
    margin-top: 80px;
    flex: 1;
    background-color: var(--main-color);
    padding-top: 80px;
}

.match-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.match-option {
    width: 230px;
    margin-top:0px;
    margin-bottom: 30px;
    height: 90px;
    border: 3px solid var(--sub-color);
    border-bottom: 7px solid var(--sub-color);
    border-radius: 0px!important;
    z-index: 10000;
    background-color: white;
    transition: background-color 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-option svg {
    height: 42px;
}

.selected  { 
    background: rgb(193, 238, 255)!important; 
}

.correctly-selected { 
    background: rgb(147, 255, 137)!important; 
}

.incorrectly-selected   { 
    background: #ffccae!important; 
}

.mobile #match-layout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.mobile .match-question {
    margin-top: 60px;
    flex: 1;
    background-color: var(--main-color);
    padding-top: 30px;
}

.mobile .match-option {
    width: 150px;
    height: 80px;
}

.mobile .match-option svg {
    height: 34px;
}


/* for the Isis sections */

#isis-layout {
    margin-top: 100px;
    height: 100vh;
    display: flex;
    flex-direction: column;  /* add this */
    background-color: var(--main-color);
    align-items: center;     /* optional: center horizontally */
}

#canvas {
    margin-top:10px;
    position: relative;
    background-color: white;
    border: 3px solid var(--sub-color);
    border-bottom: 8px solid var(--sub-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.rect {
    position: absolute;
    border: 2px solid var(--sub-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.bigImage {
    height: 70px;
    fill: black;
}

.isis-image {
    position: absolute;
    max-height: 50px;
    max-width: 50px;
}

.button-image {
    max-height: 30px;
    max-width: 30px;
}

.isis-button {
    height: 80px;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#isis img {
    /* margin-top: 50px; */
    margin-top: -150px;
    height: 350px;
    width: auto;
}

.isis-text {
    font-size: 25px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    margin-top:70px;
}

.accept-button {
    margin-top: 50px;
}