html, body, .page {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    transition: all .8s cubic-bezier(0.54, 0.35, 0.29, 0.99);
    -webkit-transition: all .8s cubic-bezier(0.54, 0.35, 0.29, 0.99);
    -moz-transition: all .8s cubic-bezier(0.54, 0.35, 0.29, 0.99);
    -o-transition: all .8s cubic-bezier(0.54, 0.35, 0.29, 0.99);  
    color: #fff;
    overflow: hidden;
  }

.container {
    /* overflow: hidden; */
    /* container-type: inline-size;
    container-name: container; */
}

#menu {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    /* height: auto; */
    /* overflow: auto; */
}

#leaders-board-content {
    width: 100%;
    height: 100%;
    text-align: center;
    padding-right: 10%;
}


/* @media (max-width: 800px) {
.flex-item-right, .flex-item-left {
    flex: 100%;
}
} */

* {
    font-family: 'open sans', 'lato', 'helvetica', sans-serif;
}

.page {
    position: absolute;
}

#p1 {
    left: 0;
}

#p2, #p3, #p4, #p5, #p6, #p7, #p8 {
    left: 200%;
}

#p1 { background: darkslateblue; }
#p2 { background: tomato; }
#p3 { background: gold; }
#p4 { background: deeppink; }
#p5 { background: rgb(58, 150, 55); }
#p6 { background: rgb(121, 70, 218); }
#p7 { background: rgb(255, 2, 255); }
#p8 { background: rgb(168, 123, 250); }


#t2:target #p2,
#t3:target #p3,
#t4:target #p4,
#t5:target #p5,
#t6:target #p6,
#t7:target #p7,
#t8:target #p8 {
    transform: translateX(-190%);
    -webkit-transform: translateX(-190%);
    -moz-transform: translateX(-190%);
    -o-transform: translateX(-190%);
    transition-delay: .4s !important;
}

#t1:target #p1 {
    /* color: #FFFFFF;
    text-align: center;
    visibility: visible;
    opacity: 1;
    transition: opacity 20s linear; */
    /* transition: opacity 3s ease-in-out;
    opacity: 0; */
    /* transition-delay: .9s !important; */
}

#t1:target #p1,
#t2:target #p1, 
#t3:target #p1,
#t4:target #p1,
#t5:target #p1,
#t6:target #p1,
#t7:target #p1,
#t8:target #p1 {
    background: black;
}

#t2:target #p1 .icon, 
#t3:target #p1 .icon,
#t4:target #p1 .icon,
#t5:target #p1 .icon,
#t6:target #p1 .icon {    
/* -webkit-filter: blur(3px); */
    /* transform: translateX(10%) !important;
    -webkit-transform: translateX(10%) !important;
    -moz-transform: translateX(10%) !important;
    -o-transform: translateX(10%) !important; */
}


.icon {
    color: #fff;
    font-size: 32px;
    display: block;
}

ul .icon:hover {
    opacity: 0.5;
}

.page .icon .title {
    line-height: 2;
}

#t1:target ul .icon,
#t2:target ul .icon,
#t3:target ul .icon,
#t4:target ul .icon,
#t5:target ul .icon,
#t6:target ul .icon,
#t7:target ul .icon,
#t8:target ul .icon {
    transform: scale(.9);
    -webkit-transform: scale(.9);
    -moz-transform: scale(.9);
    -o-transform: scale(.9);
    transition-delay: .25s;
}

#t1:target #one,
#t2:target #two,
#t3:target #three,
#t4:target #four,
#t5:target #five,
#t6:target #six,
#t7:target #seven,
#t8:target #eight {
    transform: scale(2.5) !important;
    -webkit-transform: scale(2.5) !important;
    -moz-transform: scale(2.5) !important;
    -o-transform: scale(2.5) !important;
}

ul {
    position: fixed;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    /* margin: auto; */
    height: 280px;
    width: 10%;
    padding: 0;
    text-align: center;
}

#menu .icon {
    margin: 30px 0;
    transition: all .5s ease-out !important;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
}

a {
    text-decoration: none;
}

.title, .hint {
    display: block;
}

.title {
    font-size: 38px;
}

.hint {
    font-size: 53px;
}

#p4 .hint {
    display: inherit !important;
}

.hint a {
    color: yellow;
    transition: all 250ms ease-out;
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
}

.hint a:hover {
    color: #FFF;
}

.line-trough {
    text-decoration: line-through;
}

.page .icon {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10%;
    left: 0;
    width: 270px;
    height: 170px;
    margin: auto;
    text-align: center;
    font-size: 80px;
    line-height: 1.3;
    transform: translateX(360%);
    -webkit-transform: translateX(360%);
    -moz-transform: translateX(360%);
    -o-transform: translateX(360%);
    transition: all .5s cubic-bezier(.25, 1, .5, 1.25);
    -webkit-transition: all .5s cubic-bezier(.25, 1, .5, 1.25);
    -moz-transition: all .5s cubic-bezier(.25, 1, .5, 1.25);
    -o-transition: all .5s cubic-bezier(.25, 1, .5, 1.25);
}

.page#p1 .icon {
    height: 220px;
}

.page#p1 .icon {
    transform: translateX(10%) !important;
}

#t2:target .page#p2 .icon,
#t3:target .page#p3 .icon,
#t4:target .page#p4 .icon,
#t5:target .page#p5 .icon,
#t6:target .page#p6 .icon,
#t7:target .page#p7 .icon,
#t8:target .page#p8 .icon {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
    -moz-transform: translateX(0) !important;
    -o-transform: translateX(0) !important;
    transition-delay: 1s;
}

#loading-animation {
    /* text-align: center; */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    margin: 5vh auto;
}

.loader-animation {
    border: 10px solid #f3f3f3;
    border-radius: 50%;
    border-top: 10px solid rgb(199, 199, 212);
    border-bottom: 10px solid rgb(255, 255, 255);
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
  }

  .btn-max-height {
    /* height: 30px; */
  }
  
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

@media (max-height: 600px) {
    #t1:target ul .icon,
    #t2:target ul .icon,
    #t3:target ul .icon,
    #t4:target ul .icon,
    #t5:target ul .icon,
    #t6:target ul .icon,
    #t7:target ul .icon,
    #t8:target ul .icon  {
        transform: scale(.8);
        -webkit-transform: scale(.8);
        -moz-transform: scale(.8);
        -o-transform: scale(.8);
    }

    #t1:target #one,
    #t2:target #two,
    #t3:target #three,
    #t4:target #four,
    #t5:target #five,
    #t6:target #six,
    #t7:target #seven,
    #t8:target #eight {
    transform: scale(1.5) !important;
    -webkit-transform: scale(1.5) !important;
    -moz-transform: scale(1.5) !important;
    -o-transform: scale(1.5) !important;
    }

    #menu .icon {
        margin: 20px 0;
    }
    
    .page {
        overflow: auto;
    }
}

@media (max-height: 500px) {
    #t1:target ul .icon,
    #t2:target ul .icon,
    #t3:target ul .icon,
    #t4:target ul .icon,
    #t5:target ul .icon,
    #t6:target ul .icon,
    #t7:target ul .icon,
    #t8:target ul .icon  {
        transform: scale(.7);
        -webkit-transform: scale(.7);
        -moz-transform: scale(.7);
        -o-transform: scale(.7);
    }

    #t1:target #one,
    #t2:target #two,
    #t3:target #three,
    #t4:target #four,
    #t5:target #five,
    #t6:target #six,
    #t7:target #seven,
    #t8:target #eight {
    transform: scale(1.4) !important;
    -webkit-transform: scale(1.4) !important;
    -moz-transform: scale(1.4) !important;
    -o-transform: scale(1.4) !important;
    }

    #menu .icon {
        margin:15px 0;
    }

    .page {
        overflow: auto;
    }
}

@media (max-height: 400px) {
    #t1:target ul .icon,
    #t2:target ul .icon,
    #t3:target ul .icon,
    #t4:target ul .icon,
    #t5:target ul .icon,
    #t6:target ul .icon,
    #t7:target ul .icon,
    #t8:target ul .icon  {
        transform: scale(.6);
        -webkit-transform: scale(.6);
        -moz-transform: scale(.6);
        -o-transform: scale(.6);
    }

    #t1:target #one,
    #t2:target #two,
    #t3:target #three,
    #t4:target #four,
    #t5:target #five,
    #t6:target #six,
    #t7:target #seven,
    #t8:target #eight {
    transform: scale(1.2) !important;
    -webkit-transform: scale(1.2) !important;
    -moz-transform: scale(1.2) !important;
    -o-transform: scale(1.2) !important;
    }

    #menu .icon {
        margin: 10px 0;
    }
}

@media (max-height: 300px) {
    #t1:target ul .icon,
    #t2:target ul .icon,
    #t3:target ul .icon,
    #t4:target ul .icon,
    #t5:target ul .icon,
    #t6:target ul .icon,
    #t7:target ul .icon,
    #t8:target ul .icon  {
        transform: scale(.4);
        -webkit-transform: scale(.4);
        -moz-transform: scale(.4);
        -o-transform: scale(.4);
    }

    #t1:target #one,
    #t2:target #two,
    #t3:target #three,
    #t4:target #four,
    #t5:target #five,
    #t6:target #six,
    #t7:target #seven,
    #t8:target #eight {
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    -moz-transform: scale(1) !important;
    -o-transform: scale(1) !important;
    }

    #menu {
        overflow: auto;
    }

    #menu .icon {
        margin: 0;
    }
}

@media (max-width: 1920px) {
    @media (min-height: 601px) {
        .page {
            overflow: auto;
        }
    }
}

@media only screen and (orientation: portrait) {
    .page {
        overflow: auto;
    }
}