@media screen and (orientation: portrait) {
    html {
      transform: rotate(90deg);
      transform-origin: right top;
      width: 100vh;
      height: 100vw;
      overflow-x: hidden;
      position: absolute;
      top: 100%;
      right: 0;
    }
 }

html, body{
    background-color: #000000;
    font-family: 'Heebo';
    overflow: hidden;
    margin: 0;
}
video{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;margin: 0;
    padding: 0;
    outline: none;
    border: none;
}
video::-webkit-media-controls-fullscreen-button {
    display: none;
}

#task-popup{
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    margin: 0;
    background: rgba(0,0,0,0);
    opacity: 0;
    display: none;
    overflow: auto;
    transition: opacity 300ms linear 0s;
    direction: rtl;
}

.taskDiv{
    border-radius: 3%;
    border-color: rgba(255,255,255,0.3);
    border-style: solid;
    direction: rtl;
    font-family: 'Heebo';
    background: rgba(0,0,0,0.5);
    font-size: 2.5vw;
    /*background-image: url(../img/pattern.jpg);*/
    overflow: hidden;
    color: white;
    position: fixed;
    height: 47vh;
    width: 40%;
    top: 8%;
    right: 0;
    margin-right: 27%;
    transition: opacity 300ms linear 0s;
    padding: 1% 3% 0% 3%;
}

.taskDiv h1 {
    margin-right: 15%;
}

.taskDiv p a {
    color: white;
}

#longtask {
    font-size: 2.3vw;
}

#longtitle {
    font-size: 4vw;
}

#close-popup {
    cursor: pointer;
}

.nexBTN2 {
    display: none;
}

.nexBTN1{
    background-color: #0099FF;
    display: block;
    outline: none;
    border: none;
    color: white;
    height: 11%;
    width: 39%;
    font-size: 2vh;
    cursor: pointer;
    transition: background-color 200ms linear 0s;
    position: absolute;
    text-align: center;
    margin-right: 23%;
    padding: 0 0% 3% 0;
    bottom: 5%;
    text-decoration: none;
    z-index: 40000000000000;
}

.nexBTN:hover{
    background-color: #7A489C;
    transition: background-color 150ms linear 0s;
}

.nexBTN p {
    width: 100%;
    margin-right: 7%;
    max-inline-size: fit-content;
    font-size: 2.7vh;
  }  

#moveVideos{
    position: fixed;
    height: 40%;
    width: 100%;
    bottom: 0;
    margin-right: 90%;
    background: rgba(0,0,0,.9);
    opacity: 0;
    display: none;
    overflow: auto;
    transition: opacity 300ms linear 0s;
    direction: rtl;
}

#lasttask {
    margin-right: -5%;
}

#moveVideos img{
    width: 90%;
    padding: 7%;
    transition: transform 300ms ease-out 0s;
}
#moveVideos img:hover{
    transform: scale(1.0005);
    transition: transform 200ms ease-out 0s;
}

#NowPlaying {
    background-color: rgba(0,153,255,.8);
}

#backBTN{
    position: fixed;
    width: 3vw;
    height: 4.5vh;
    background: none;
    border: none;
    outline: none;
    top: 1em;
    right: 1.5vw;
    color: rgba(255,255,255,0);
    font-size: 1.2vw;
    padding-right: 6vw;
    text-align: left;
    overflow: hidden;
    background-position-x: 97%;
    background-image: url(back.png);
    background-size: contain;
    background-repeat: no-repeat;
    transition: color 200ms linear 0s;
    cursor: pointer;
    filter: drop-shadow(2px 2px 4px black);

}
#backBTN:hover{
    color: rgba(255,255,255,1);
    transition: color 200ms linear 0s;
}
.vidDis{
    position: relative;
    color: #ffffff;
    text-shadow: 4px 4px 10px black;
    padding-bottom: 3%;
}
.vidDis h1, .vidDis p{
    width: 48%;
    right: 50%;
    direction: rtl;
}
.vidDis h1{
    margin-bottom: -2%;
    margin-top: -28%;
    font-size: 2.5vh;
    position: relative;
}
.vidDis p{
    font-size: 1.8vh;
    position: relative;
}
#questFrame{
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    display: none;
    opacity: 0;
    z-index: 11;
    outline: none;
    border: none;
    transition: right 300ms ease-in-out 0s;
}

#taskicon{
    height: 12%;
    float: right;
    padding-left: 2%;
    margin-top: 6%;
}



.grid {
    display: flex;
    flex-wrap: wrap;
    color: #ffffff;
  }
  
  .grid-cell {
    width: calc(95% / 5);
  }
  
  .grid a {
    transition: transform .3s; 
    position: relative; 
    padding-left: 1%;
    text-decoration: none;
    color: #ffffff;
    text-decoration: none;
    padding-bottom: 3%;
  }
  
  .grid a:hover {
    transition: transform .3s;
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);  
    transform: scale(1.1);
    z-index: 51;
  }

  .grid h1 {
      font-size: 2vh;
      padding-right: 6%;
      margin-top: -1%;
  }

  .grid p {
      position: relative;
      padding-right: 6%;
      font-size: 1.5vh;
      margin-top: -1%;
  }
  
  .grid img {
    background-size: 100%;
    border-radius: 2px;
  }

  @media only screen and (orientation: landscape) {
    .nexBTN1 {
        display: none;
    }

    .nexBTN2 {
        display: block;
        background-color: #0099FF;
        outline: none;
        border: none;
        color: white;
        height: 7%;
        width: 29%;
        font-size: 2.9vh;
        cursor: pointer;
        transition: background-color 200ms linear 0s;
        position: absolute;
        text-align: center;
        margin-right: 30%;
        padding: 0 0% 4% 0;
        bottom: 5%;
        text-decoration: none;    
    }

    #task-popup{
        position: fixed;
        height: 100%;
        width: 100%;
        top: 0;
        right: 0;
        margin: 0;
        background: rgba(0,0,0,0);
        opacity: 1;
        display: none;
        overflow: auto;
        transition: opacity 300ms linear 0s;
        direction: rtl;
    }    

    .taskDiv{
        direction: rtl;
        font-family: 'Heebo';
        background: rgba(0,0,0,0.9);
        font-size: 1.5vw;
        /*background-image: url(../img/pattern.jpg);*/
        overflow: hidden;
        color: white;
        position: fixed;
        height: 80vh;
        width: 40%;
        top: 8%;
        right: 0;
        padding: 1% 3% 0% 3%;
        transition: opacity 300ms linear 0s;
    }
    
    .taskDiv h1 {
        font-size: 2.2vw;
      }

      .taskDiv p {
        font-size: 1.5vw;
      }        

      .taskDiv #longtask {
        font-size: 1.2vw;
      }

      #longtitle {
        font-size: 2.2vw;
    }    

    #moveVideos{
        position: fixed;
        height: 40%;
        width: 100%;
        bottom: 0;
        margin-right: 90%;
        background: rgba(0,0,0,.9);
        opacity: 0;
        display: none;
        overflow: hidden;
        transition: opacity 300ms linear 0s;
        direction: rtl;
        padding-bottom: 1%;
    }    

}
