/* Fonts */

@font-face {
  font-family: GT America Regular;
  src: url(/assets/fonts/GT\ America\ Regular.ttf);
}

@font-face {
  font-family: GT America Bold;
  src: url(/assets/fonts/GT\ America\ Bold.ttf);
}

@font-face {
  font-family: GT America Light;
  src: url(/assets/fonts/GT\ America\ Light.ttf);
}


@font-face {
  font-family: Space Mono;
  src: url(/assets/fonts/SpaceMono-Regular.ttf);
}


/* Main Styles */

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}

body {
  font-family: GT America Regular;
  background-color: #EAEAEA;
  overflow: hidden;
}

p {
  font-family: GT America Light;
  color: #101010;
}

button {
  color: #EAEAEA;
  border-radius: 25px;
  font-family: GT America Regular;
  font-size: 16px;
  padding: 2px 6px;
  background-color: #101010;
}

/* Scroll Bar */

/* width */
::-webkit-scrollbar {
  width: 8px;
  border-radius: 20px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #eaeaea; 
  border-radius: 20px;
  border: solid 1px #a3a3a3;
  margin-bottom: 25px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #a3a3a3;
  border-radius: 20px; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3; 
}

/* Content Styles */

.loading-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  opacity: 0;
}

.header {
  position: relative;
  top: 0px;
  display: none;
  justify-content: space-between;
  width: 100vw;
  padding: 25px;
  align-items: center;
  height: 84px;
  opacity: 0;
}

.filter-button {
  color: #101010;
  border-radius: 25px;
  font-family: GT America Regular;
  font-size: 15px;
  padding: 5px 14px;
  background-color: #EAEAEA;
  border: #10101033 solid 1px;
  cursor: pointer;

}

.filter-button:hover {
  background-color: #101010;
  color: #EAEAEA;
  
}

.close-button {
  color: #eaeaea;
  border-radius: 25px;
  font-family: GT America Regular;
  font-size: 15px;
  padding: 4px 14px;
  background-color: #101010;
  border: #10101033 solid 1px;
  cursor: pointer;
}

#close-article, #close-audio {
  opacity: 0;
  display: none;
}

.close-button:hover {
  color: #101010;
  background-color: #eaeaea;
  border: #101010 solid 1px;
}

.filter-button svg {
  vertical-align: middle;
  margin-right: 6px;
  width: 16px;
}

.close-button svg {
  vertical-align: middle;
  margin-right: 6px;
  width: 18px;
}

.feed {
  display: flex;
  width: 100vw;
  height: calc(100vh - 86px - 42px);
  gap: 10px;
  padding: 0 25px 25px;
  justify-content: space-between;
  opacity: 0;
}

.column-one, .column-two, .column-three, .column-four {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: space-between;
}

.column-one {
  flex-basis: 28%;
}

.column-two {
  flex-basis: 44%;
}

.column-three {
  flex-basis: 27%;
}

.feed-article {
  border: solid 1px #10101033;
  border-radius: 12px;
  padding: 10px;
  color: #101010;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.feed-article:hover {
  outline: solid 3px #101010;
  cursor: pointer;
}

.hover {
  outline: solid 3px #101010;
}

.image-article {
  border-radius: 6px;
  margin-bottom: 4px;
}

.two .image-article {
  background-image: url(/assets/img/davos.jpg);
  height: 100%;
  background-position: center;
  background-size: cover;
}

.three .image-article {
  background-image: url(/assets/img/web3.png);
  height: 100%;
  background-position: center;
  background-size: cover;
}

.six .image-article {
  background-image: url(/assets/img/supsi-maind.jpg);
  height: 100%;
  background-position: center;
  background-size: cover;
}

.feed-article-title {
  color: #101010;
  line-height: 1;
  font-family: GT America Bold;
  margin-bottom: 4px;
  }

.feed-article.one .feed-article-title {
  font-size: 18px;
}

.feed-article.two .feed-article-title {
  font-size: 20px;
}

.feed-article.three .feed-article-title {
  font-size: 28px;
}

.feed-article.four .feed-article-title {
  font-size: 17px;
}

.feed-article.five .feed-article-title {
  font-size: 20px;
}

.feed-article.six .feed-article-title {
  font-size: 21px;
}

.feed-article.one p{
  font-size: 16px;
}

.feed-article.two {
  flex-basis: 100%;
}

.feed-article.two p{
  font-size: 16px;
}

.feed-article.three {
  flex-basis: 90%;
}

.feed-article.three p{
  font-size: 16px;
}

.feed-article.four {
  flex-basis: 10%;
}

.feed-article.four p{
  font-size: 16px;
}

.feed-article.five p{
  font-size: 16px;
}

.feed-article.six {
  flex-basis: 100%;
}

.features {
  display: flex;
  font-size: 12px;
  gap: 6px;
  opacity: 0.7;
  font-family: GT America Light;
  letter-spacing: 0.3px;
  align-items: baseline;
}

.article .features {
  display: flex;
  font-size: 16px;
  gap: 8px;
  opacity: 0.7;
  font-family: GT America Light;
  letter-spacing: 0.8px;
  align-items: baseline;
}

.features svg{
  width: 15px;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -1px;
}

.article-page {
  align-content: normal;
  display: none;
  opacity: 0;
  width: 100vw;
  height: calc(100vh - 86px);
  gap: 10px;
  padding: 0 25px;
  justify-content: space-between;
}

.article {
  flex-basis: 65%;
  overflow-y: auto;
  padding-right: 40px;
}

.article-title {
  font-size: 40px;
  font-family: GT America Bold;
}

.article-title-audio {
  max-width: 50%;
  text-align: center;
  font-size: 38px;
  font-family: GT America Bold;
}

.article p {
  font-size: 18px;
  margin-bottom: 1em;
}

.article .image-article {
  max-width: 100%;
  height: 350px;
  margin-bottom: 2px;
}

.image-caption {
  margin-bottom: 1em;
  opacity: 0.5;
}

.modes {
  display: flex;
  flex-direction: column;
  flex-basis: 35%;
  align-items: center;
  justify-content: space-around;
}
.mode-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: solid 1px #10101033;
  border-radius: 12px;
  height: 110px;
  width: 110px;
}

.mode-button:hover {
  outline: solid 3px #101010;
  cursor: pointer;
}

.mode-selection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}
  
.mode-button.listen { grid-area: 1 / 1 / 2 / 2; }
.mode-button.read { grid-area: 1 / 2 / 2 / 3; }
.mode-button.bookmark { grid-area: 2 / 1 / 3 / 2; }
.mode-button.share { grid-area: 2 / 2 / 3 / 3; }

.QR {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  gap: 10px;
}

.read-page {
  display: none;
  width: 100vw;
  height: calc(100vh - 86px);
  gap: 16px;
  padding: 16px 180px 96px;
  justify-content: space-between;
  opacity: 0;
  flex-direction: column;
}

.read-page svg {
  width: 40px;
}

.flashing, .highlighting {
  display: flex;
  border: solid 1px #10101033;
  border-radius: 12px;
  height: 100%;
  width: 100%;
  align-items: center;
    
}

.flashing:hover, .highlighting:hover {
  outline: solid 3px #101010;
  cursor: pointer;
}

.flashing-title, .highlighting-title {
  display: flex;
  flex-direction: column;
  flex-basis: 25%;
  align-items: center;
  font-family: 'GT America Bold';
  color: #101010;
  font-size: 24px;
  text-align: center;
  border-right: solid 1px #10101033;
  height: 100%;
  justify-content: center;
}


.flashing p, .highlighting p {
  padding: 0 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  border-right: solid 1px #10101033;
  height: 100%;
  flex-basis: 50%;
}

.flashing-preview, .highlighting-preview {
  margin: 0 auto;
}

.highlighting-preview {
  width: 180px;
}

.flashing-text-preview {
  display: none;
}

.flashing-page, .highlighting-page, .audio-page {
  display: none;
  width: 100vw;
  height: calc(100vh - 126px);
  gap: 10px;
  padding: 0 25px;
  justify-content: space-between;
  opacity: 0;
}


.mode-content {
  flex-basis: 65%;
  overflow-y: hidden;
  padding-right: 40px;
  border: #10101033 solid 1px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.mode-content-highlight {
  flex-basis: 65%;
  overflow-y: hidden;
  border: #10101033 solid 1px;
  border-radius: 10px;
  padding: 20px;
}

.highlighting-page .article-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.flashing-page .mode-content {
  justify-content: center;
  gap: 20px;
}

.opacity-p {
  opacity: 0.2;
  text-align: left;
  position: absolute;
  width: calc(65vw - 80px);
}
#paragraph {
  position: absolute;
  text-align: left;
  width: calc(65vw - 80px);
}

.highlighting-preview-text span {
  opacity: 0.2;
  transition: opacity 500ms;
}

.mode-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mode-content p {
  width: 60%;
}

.mode-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  flex-basis: 35%;
}

.mode-instructions p{
  max-width: 40%;
}

.instructions-title {
  font-size: 32px;
  font-family: 'GT America Bold';
}

.hand-gesture-instructions {
  display: flex;
  justify-content: space-evenly;
  gap: 50px;
}

.instruction-gesture {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.highlighting-page .hand-gesture-instructions {
  flex-wrap: wrap;
  max-width: 66%;
  gap: 50px;
  justify-content: center;
}

.play-pause-highlight, .restart-highlight {
  opacity: 0;
}



/* Marquee styles */
.marquee {
  --gap: 1rem;
  position: absolute;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  font-family: Space Mono;
  color: #EAEAEA;
  background: #101010;
  padding: 8px;
  font-size: 18px;
  top: 100%;
  left: 0;
  opacity: 0;
  height: 40px;
  
}

.marquee__content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll 60s linear infinite;
}

.marquee ul, .marquee__content ul {
  list-style-type: none;
}

/* Flashing Reader styles */

.reading-speed-controls, #speed-wrapper {
  display: none;
}

/* .reading-speed-controls {
  display: flex;
  gap: 10px;
  background-color: transparent;
}

.reading-speed-controls button {
  padding: 6px 12px;
  background-color: transparent;
  border-color: #101010;
  color: #101010;
} */


#reader-wrapper {
  border: 1px solid black;
  border-left: 0;
  border-right: 0;
  font-size: 20px;
  width: 200px;
  height: 50px;
  margin: 20px auto;
  text-align: center;
}
#mark {
  border-left: 1px solid black;
  height: 10px;
  width: 1px;
  position: relative;
  float: left;
  left: 49%;
}
#reader {
  position: relative;
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0);
  top: 13px;
}
#reader b {
  color: red;
  font-weight: normal;
}
#speed-wrapper {
  width: 250px;
  margin: 10px auto;
}
#link {
  text-align: center;
}

#text {
  margin: 20px auto;
  width: 300px;
  height: 200px;
  display: none;
}
#start, #stop, #restart {
  margin: 0 auto;
  display: block;
}

/* Highligthing Reading Styles */

#highlightingTextContainer {
  margin: 0 auto;
  text-align: justify;
  font-size: 20px;
  line-height: 30px;
}


#highlightingText{
  width: 100%;
  font-size: 18px;
  padding: 25px;
  opacity: 0.9;
}

.highlighted {
  color: #101010;
  background-color: #10101033;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}



.input_video {
  display: none;
}

.cursor {
  display: block;
  height: 15px;
  width: 15px;
  position: absolute;
  left: 0;
  top: 0;
  border: 1px solid #101010;
  box-shadow: 0px 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  transition: transform 0.2s;
  background-color: #101010;
  z-index: 99999;
  pointer-events: all;
}

.debug {
  display: none;
}

/* Responsive Styles */

@media screen and (max-width: 480px) {
  .feed {
    flex-direction: column;
  }
  .article-page {
    flex-direction: column;
  }
  .marquee {
    display: none;
  }
}
