/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* fadeanim*/
.riddle_input{
  width: 90%;
  border-radius: 10px;;
  color: rgba(185, 185, 185, 0.8);
  background-color: rgba(255, 255, 255, 0.6);
  text-align: center;
}
    
input[type=text] {
      width: 30%;
      height:5.312208760484623vh;
      color: #000;
      background-color: rgba(255, 255, 255, 0.6);
      text-align: center;
      -webkit-transition: width 0.15s ease-in-out;
      transition: width 0.15s ease-in-out;
}
input[type=text]:focus {
      width: 50%;
}

  
input{
      padding: 0.9319664492078286vh;
      color: #000;
}
.fade-out {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in {
  opacity: 1 !important;
  animation: fadeInAnim 0.7s ease-in-out;
}
@keyframes fadeInAnim {
  from { opacity: 0; }
  to { opacity: 1; }
}

.archive_fade-out {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.archive_fade-in {
  opacity: 0;
  animation: archiveFadeIn 0.25s forwards;
}
@keyframes archiveFadeIn {
  to { opacity: 1; }
}
.bottom_left_scroll{
  position: fixed;
  bottom: 0;
}
.top_spacer_div, .bottom_spacer_div {
  position: fixed;
  left: 0;
  width: 100vw;
  height: 1vh;
  display: flex;
  flex-direction: row;
  z-index: 2;
  pointer-events: none;
  background: transparent;
  justify-content: center;
}

.left_spacer_div, .right_spacer_div {
  position: fixed;
  top: 0;
  width: 2vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}
.left_spacer_div { left: 0vw; }
.right_spacer_div { right: 2vw; }


.border-line {
  height: 2px;
  align-self: flex-end;
  margin: 0;
  box-sizing: border-box;
  width: calc(94vw / 10);
  background: transparent;
  opacity: 1;
}
.border-line.active {
  background: black;
}

.border-line-vert {
  width: 2px;
  align-self: flex-end;
  margin: 0;
  box-sizing: border-box;
  height: var(--line-height, 14.28vh);
  background: transparent;
  opacity: 1;
}
.border-line-vert.active {
  background: black;
}

/* blink anim, */
@keyframes blink-slow {
  0% { background: black; }
  90% { background: black; }
  91% { background: rgba(255, 255, 255, 0.1); }
  100% { background: rgba(255, 255, 255, 0.1); }
}
@keyframes blink-fast {
  0% { background: black; }
  90.9% { background: black; }
  91% { background: rgba(255, 255, 255, 0.1); }
  100% { background: rgba(255, 255, 255, 0.1); }
}

.top_spacer_div .border-line:nth-child(2n),
.bottom_spacer_div .border-line:nth-child(2n),
.bottom_pill_spacer_div .border-line:nth-child(2n) {
  background: black;
  animation: blink-slow 5.3s infinite;
}
.top_spacer_div .border-line:nth-child(4n),
.bottom_spacer_div .border-line:nth-child(4n),
.bottom_pill_spacer_div .border-line:nth-child(4n) {
  background: black;
  animation: blink-fast 1.1s infinite;
}

.top_spacer_div .border-line:not(:nth-child(2n)),
.bottom_spacer_div .border-line:not(:nth-child(2n)),
.bottom_pill_spacer_div .border-line:not(:nth-child(2n)) {
  background: transparent;
  animation: none;
}

.left_spacer_div .border-line-vert:nth-child(2n),
.right_spacer_div .border-line-vert:nth-child(2n) {
  background: black;
  animation: blink-slow 5.3s infinite;
}
.left_spacer_div .border-line-vert:nth-child(4n),
.right_spacer_div .border-line-vert:nth-child(4n) {
  background: black;
  animation: blink-fast 1.1s infinite;
}

.left_spacer_div .border-line-vert:not(:nth-child(2n)),
.right_spacer_div .border-line-vert:not(:nth-child(2n)) {
  background: transparent;
  animation: none;
}

/* 16:9-16-10 kijelzo*/
@media screen and (min-width: 600px) {
.telefon{
  display: none;
}

#desktopvideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  background: black;
}

.ideiglenes{
  position: fixed;
  display: flex;
  justify-content: center;
  top:0;
  right: 20vw;
  height: 7.5vh;
  z-index: 10;
  width: 30vw;
  border: 0.8vh rgb(194, 4, 4) solid;
  background-color: aqua;
}
.ideiglenes img{
  width: 2vw;
}

.mainlogo_text {
    height: 8vh;
}
.mainlogo_saw {
    height: 8vh;
}
.top_trapez{
    top: 0;
    position: fixed;
    right: 2vw;
    height: 10vh;
    z-index: 10;
}
.music_player{
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 4vw;
    max-height: 8vh;
    width: 20vh;
    z-index: 10;

}
.music_player_top{
  display: flex;
  justify-content: space-around;
  max-height: 4vh;
}
.music_player_bottom{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    max-height: 4vh;
    height: 4vh;
}
.music_player_bottom marquee {
  height: 50%;
  width: 70%;
}
.music_player_bottom input[type="range"] {
    height: 50%;
    width: 80%;
    color: #575353; /* slightly szurke */
    accent-color: #575353;
}
.music_control{
    height: 4vh;;
}
.toggle_button{
    background: rgba(0, 0, 0, 0.0);
    border: 0;
}
.left_side_section{
    position: fixed;
    top: 11vh;
    left: 3vw;
    width: 47.3vw;
    height: 85vh;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1); 
    color: black;
    padding: 10px;
    box-sizing: border-box;
    border-right: 0.3vh solid black;
    border-radius: 2vh;
}
.right_side_section{
    position: fixed;
    top: 11vh;
    right: 2.5vw;
    width: 47.3vw;
    height: 85vh;
    display: flex;;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1); 
    color: black; 
    padding: 10px; 
    box-sizing: border-box;
    border-left: 0.3vh solid black;
    border-radius: 2vh;
}
.left_pills {
  width: 90%;
  padding: 5%;
  max-height: 40%;
  display: flex;
  flex-direction: column;
  gap: 2vh;
  box-sizing: border-box;
    height: 50%;
    justify-content: space-between;
}

.left_pills img {
    height: 10vh;
    max-width: 90%;
    transition: height 0.2s, max-width 0.2s;
}
.left_pills .rules_pill {
  align-self: flex-start;
}
.left_pills .archive_pill {
  align-self: center;
}
.left_pills img:not(.rules_pill):not(.archive_pill) {
  align-self: flex-end;
}
.next_event{
    font-size: 3vh;
    font-weight: bold;
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translate(-50%, -50%);
    width: 90%;
}
.riddle_title{
    font-size: 3vh;
}
.bottom_left_scroll{
    height: 3vh;
    width: 50%;
}
.top_content_div{
    position: fixed;
    left: 3vw;
    width: 94vw;
    height: 9vh;
    z-index: 2;
    background: transparent;
}

.top_spacer_div { top: 9vh; }
.bottom_spacer_div { bottom: 3vh }

  .archive_left{
    align-items: center;
  }
  .archive_left_back{
    background-color: rgba(0, 0, 0, 0.5);
    width: 80%;
    height: 60%;
    z-index: 10;
    border-radius: 5%;

  }

}

/* telefon*/
@media screen and (max-width: 600px) {
  .desktop{
    display: none;
  }
  #telefonvideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    background: black;
  }
  .telefon_top_overlay{
    position: fixed;
    top: 0.5vh;
    width: 100%;
    z-index: 2;
    background: transparent;
    display: flex;
    justify-content: center;

  }
  .mainlogo_text {
    height: 7vh;
  }
  .top_spacer_div { top: 7vh; }
  .bottom_spacer_div { bottom: 3vh }
  .bottom_pill_spacer_div { 
    bottom: 12vh;
    position: fixed;
    left: 0;
    width: 100vw;
    height: 1vh;
    display: flex;
    flex-direction: row;
    z-index: 2;
    pointer-events: none;
    background: transparent;
    justify-content: center;
  }

  .bottom_left_scroll{
    height: 3vh;
    width: 100%;
  }
  .telefon_bottom_pills{
    position: fixed;
    bottom: 4vh;
    width: 100%;
    height: 8vh;
    z-index: 1;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .telefon_bottom_pills img{
    height: 10vh;
  }
  .telefon_top_pills{
    position: fixed;
    top: 8vh;
    left: 5vw;
    width: 91vw;
    height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .telefon_top_pills .top_row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }
  .telefon_top_pills .bottom_row{
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
  }
  .telefon_top_pills img{
    height: 5vh;
  }
  .telefon_top_pills.hidden{
    display: none;
  }
  .telefon_section{
    position: fixed;
    top: 20vh;
    left: 5%;
    width: 90vw;
    height: 55vh;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1); 
    padding: 10px; 
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5vh;
  }
  .telefon_riddle{
    height: 65vh;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    font-size: medium;
  }
  .telefon_riddle img{
    height: 8vh;
    width: auto;
  }
  input[type=text] {
    width: 50% !important;
  }
  input[type=text]:focus {
    width: 70% !important;
  }
  .riddle_input {
    width: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 10px;
    border-radius: 10px;
  }
  .riddle_input:focus {
    width: 70%;
  }
}
