@font-face {
    font-family: "anaregular";
    src: url("ana-webfont.woff2") format("woff2"),
        url("ana-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Coconat-BoldExt";
    src: url("Coconat-BoldExt.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*First page */
html {
    width: 100%;
    height: 100vh;
    
}

body {
    width: 100%;
    height: 100%;
}


.container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;

}

.backimg {
    width: 100%;
    height: auto;
    position: absolute;
    top: 26%;
}

#back {
    width: 100%;
    height: auto;
}

#front {
    width: 100%;
}

.center {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 30% 46% 75%;
    justify-items: center;
    align-items: center;
    position: absolute;
    top: 33%;
    right: 3%;
}

.center a {
    width: 25%;
    text-decoration: none;
}

#fr {
    width: 100%;
}

.center h1 {
    font-size: 0.9rem;
    color: #fff;
    font-family: "anaregular";
    text-align: center;
}

.center h2 {
    font-family: "anaregular";
    font-size: 0.8rem;
    color: #fff;
}

.center h1:hover {
    font-size: 0.9rem;
    color: #fff;
    font-family: "Coconat-BoldExt";
    text-align: center;
}

.center h2:hover {
    font-family: "Coconat-BoldExt";
    font-size: 0.8rem;
    color: #fff;
}

@media only screen and (min-width: 400px) {
    .center {
        top: 35%
    }
}

@media only screen and (min-width: 515px) {
    .center {
        top: 38%
    }
    .center h1 {
        font-size: 1.2rem;
        color: #fff;
        font-family: "anaregular";
        text-align: center;
    }
    
    .center h2 {
        font-family: "anaregular";
        font-size: 1rem;
        color: #fff;
    }
}

@media only screen and (min-width: 642px) {
    .center {
        top: 43%
    }
}

@media only screen and (min-width: 788px) {
    .backimg {
        top: 26%
    }
    .center h1 {
        font-size: 1.4rem;
        color: #fff;
        font-family: "anaregular";
        text-align: center;
    }
    
    .center h2 {
        font-family: "anaregular";
        font-size: 1.2rem;
        color: #fff;
    }
    .center h1:hover {
        font-size: 1.4rem;
        color: #fff;
        font-family: "Coconat-BoldExt";
        text-align: center;
    }
    
    .center h2:hover {
        font-family: "Coconat-BoldExt";
        font-size: 1.2rem;
        color: #fff;
    }

    .center {
        top: 41%
    }
}

@media only screen and (min-width: 952px) {
    .backimg {
        top: 14%
    }

    .center {
        top: 34%
    }
}

@media only screen and (min-width: 1200px) {
    .backimg {
        top: 8%
    }

    .center {
        top: 41%
    }
    .center h1 {
        font-size: 1.6rem;
        color: #fff;
        font-family: "anaregular";
        text-align: center;
    }
    
    .center h2 {
        font-family: "anaregular";
        font-size: 1.3rem;
        color: #fff;
    }
}

@media only screen and (min-width: 1300px) {
    #back {
        width: 85%;
        height: auto;
        position: absolute;
        left: 7%;
    }

    .backimg {
        top: 5%
    }

    .center {
        top: 40%
    }

    .center a {
        width: 19%;
    }
}

@media only screen and (min-width: 1700px) {
    #back {
        width: 68%;
        height: auto;
        position: absolute;
        left: 15%;
    }
    .center {
        top: 35%;
    }
    .center a {
        width: 16%;
    }
}

@media only screen and (min-width: 1700px) {
    .center {
        top: 36%;
    }
    .center h1 {
        font-size: 2.1rem;
        color: #fff;
        font-family: "anaregular";
        text-align: center;
    }
    
    .center h2 {
        font-family: "anaregular";
        font-size: 1.9rem;
        color: #fff;
    }
}

.instruction {
    position: absolute;
    top: 1%;
    left: 1%;
}

/*second page*/

.game_rules {
    width: 100%;
    height: 90%;
    padding-top: 5%;
    display: grid;
    grid-template-areas:
        "header header header"
        "content content content"
        "footer footer footer";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 33.33% 33.33% 33.33%;
    justify-items: center;
    align-items: center;
}

.rule_a {
    grid-column: 1/1;
    grid-row: 1/1;
    justify-items: start;
}

.rule_b {
    grid-column: 2/2;
    grid-row: 2/2;
    justify-items: center;
}

.rule_c {
    grid-column: 3/3;
    grid-row: 3/3;
    justify-items: end;
}

.game_rules img {
    width: 100%;
    height: auto;
}

@media only screen and (max-width: 700px) {
    .game_rules {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-content: center;
        align-items: center;
        grid-template-areas: none;
    }
    .rule_a{
        grid-column: 1;
        display: grid;
        justify-items: center;
    }
    .rule_b{
        grid-column: 1;
        display: grid;
        justify-items: center;
    }
    .rule_c{
        grid-column: 1;
        display: grid;
        justify-items: center;
    }
    .game_rules img {
        width: 60%;
    }
}

.text_a {
    display: grid;
    justify-items: start;
    align-items: start;
    height: fit-content;
    font-family: 'anaregular';
    font-weight: normal;
    font-style: normal;

}

.text_a h1:hover {
    font-family: 'Coconat-BoldExt';
}

.text_a p:hover {
    font-family: 'Coconat-BoldExt';
}

.text_a h1,
p {
    font-family: 'anaregular';
    font-weight: normal;
    font-style: normal;
}

.text_b {
    display: grid;
    justify-items: end;
    align-items: end;
    width: 100%;
    height: fit-content;
    font-family: 'anaregular';
    font-weight: normal;
    font-style: normal;

}

.text_b p:hover {
    font-family: 'Coconat-BoldExt';
}

.text_b p {
    width: 33.33%;
    height: auto;
    font-family: 'anaregular';
    font-weight: normal;
    font-style: normal;
}

#b {
    background-color: #000;
}

#b:hover {
    background-color: #000000;
    -webkit-transition: background-color 1000ms linear;
    -ms-transition: background-color 1000ms linear;
    transition: background-color 1000ms linear;
}

.content {
    padding: 1% 12% 0 14%;
    margin: 0 5% 0 5%;
}

#popup {
    display: block;
    position: absolute;
    top: 3%;
    right: 14%;
    padding: 3%;
    color: #fff;
    background-color: #5e09cd;
    font-family: 'Coconat-BoldExt';
    border-radius: 25px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#exh {
    font-family: 'Coconat-BoldExt';
    font-size: 1.1rem;
    text-decoration: none;
    list-style-type: none;
    font-weight: 300;
    padding: 5px;
    margin-bottom: 5px;
}

#exp {
    font-family: 'Coconat-BoldExt';
    font-size: 0.8rem;
    padding:5px;
}

/*Collection page*/
.collection {
    background-color: #000; 
    display: grid;
    justify-items: center;
    align-items: center;
    padding: 2%;
    
}

.collection_header {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    width: 100%;
}

.collection_header h1 {
    color: #fff;
    font-family: 'Coconat-BoldExt';
    margin-bottom: 5%;
    text-align: center;
}

.creatures {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    justify-items: center;
}

.creatures a {
    color: #fff;
    text-decoration: none;
    width: 100%;
}


.creature {
    width: 90%;
}

.creatures_card {
    display: grid;
    grid-template-columns: 1fr;
    border: 3px solid #240249;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    background-color: rgb(53, 53, 53);
    color: #fff;
    padding: 2%;
    width: 100%;
    height: 370px;
    margin-bottom: 10%;
}


.card_row {
    display: grid;
    width: 90%;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
}

.creatures_card img {
    width: 50%;
    height: auto;
}



.creatures_card h1 {
    font-family: 'Coconat-BoldExt';
    font-size: 1rem;
}

.creatures_card p {
    font-family: 'Coconat-BoldExt';
    font-size: 0.7rem;
}
@media only screen and (max-width: 1200px) {
    .creatures {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        justify-items: center;
    }
}
@media only screen and (max-width: 600px) {
    .creatures {
        grid-template-columns: 1fr;
    }
}


/*about page*/
.container_about{
    margin: 0 5% 0 5%;
   
}
.text_about {
    display: grid;
    grid-template-columns: 1fr;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding: 5%;
}

.text_about h3 {
    text-align: center;
    font-family: 'anaregular';
    padding: 1% 0 1% 0;
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.text_about h3:hover {
    font-family: 'Coconat-BoldExt';
}

.text_about p {
    font-family: 'anaregular';
    padding: 1%;
    font-size: 1rem;
    margin-bottom: 10px;
}

.text_about p:hover {
    font-family: 'Coconat-BoldExt';
}

#bcbtn img {
    width: 100px;


}

@media only screen and (max-width: 1300px) {
    .text_about {
        display: grid;
        grid-template-columns: 1fr;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        padding: 5%;
    }
}
@media only screen and (max-width: 600px) {
    .text_about {
        display: grid;
        grid-template-columns: 1fr;
        width: 90%;
        margin-left: 0;
        margin-right: 0;
        padding: 5%;
    }
    .container_about{
        margin: 0;
    }
}
.qr_contain {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    align-content: center;
    padding: 5%;
}

.qr {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    padding: 5%;

    

}

.qr img {
    width: 250px;
    height: auto;
}
.bck {
    display: grid;
    justify-content: start;
    align-content: center;
}
.bck img {
    margin-bottom: 15%;
}


/* side nav*/
.sidenav {
   height: 100%;
   width: 50px;
   position: fixed;
   z-index: 1;
   top: 0;
   left: 0;
   background-color: rgb(26, 26, 26);
   overflow-x: hidden;
   transition: 0.5s;
   padding-top: 60px;
}

.sidenav ul {
   display: grid;
   grid-template-columns: 1fr;
   padding: 0; 
}

.sidenav ul li a{
   display: grid;
   grid-template-columns: 1fr;
   justify-items: center;
   align-items: center;
   padding: 5% 10% 5% 10%;
   font-family: 'Coconat-BoldExt';
}
.sidenav img {
    width: 100%;
    height: auto;
}

.sidenav ul li ul li {
   display: grid;
   grid-template-columns: 1fr;
   justify-items: center;
   align-items: center;
   padding: 5% 10%;
   font-family: 'Coconat-BoldExt';
   color: #fff;
}

.material-symbols-outlined {
   margin: 16px 0;
}

.sidenav ul li a p {
   display: none;
   color: #fff;
}

.sidenav a {
   text-decoration: none;
   color: #fff;
   display: block;
   transition: 0.3s;
}

.sidenav a:hover {
   text-decoration: underline;
}

.sidenav .navbtn {
   position: absolute;
   top: 0;
   right: 0;
   font-size: 36px;
   margin-left: 100px;
   color: #fff;
   background-color: rgb(26, 26, 26);
   border: 0;
   cursor: pointer;
}


.sidenav ul li {
   font-size: 1rem;
   list-style-type: none;
}
.sidenav p {
    font-family: 'Coconat-BoldExt';
}

.nav {
   width: 100%;
   height: 50px;
   position: fixed;
   top: 0;
   background-color: #1b1b1b;
   color: #fff;
   display: grid;
   grid-template-columns: 1fr;
   align-items: center;
}
.nav ul {
   width: 100%;
   height: 50px;
   display: grid;
   justify-items: end;
   grid-template-columns: 1fr 1fr;
}
.nav li {
   display: grid;
   justify-items: end;
   align-items: center;
   grid-template-columns: 1fr 1fr;
} 
.nav li:first-of-type {
   display: grid;
   justify-items: end;
   align-items: center;
   grid-template-columns: 1fr;
   width: 100%;
   height: 50px;
}

.nav h1 {
   width: 100%;
   height: 50px;
   padding-left: 75px;
   display: grid;
   align-items: center;
}



/*Side bar open*/
.open .sidenav {
   width: 250px;
}

.open .sidenav .navbtn {
   transform: rotate(180deg);
} 

.open .sidenav ul li a {
   grid-template-columns: 25% 75%;
   justify-items: start;
}

.open .sidenav ul li a p {
   display: block;
   padding-left: 10px;
}

.open .sidenav ul li ul li {
   grid-template-columns: 25% 75%;
   justify-items: start;
}



/*Media*/

@media screen and (max-height: 450px) {
   .sidenav {
       padding-top: 15px;
   }

   .sidenav a {
       font-size: 18px;
   }
}

.portal_link {
    display: grid;
    justify-content: center;
    align-content: center;
    width: 100%;
    height: 100%;
}

.portal_link a {
    display: grid;
    justify-items: center;
    align-items: center;
    position: absolute;
    top: 1%;
    right: 1%;
    text-decoration: none;
}

.bckfwd {
    display: grid;
    grid-template-columns: 1fr 1fr;

}


.bckfwd a:last-of-type {
    justify-items: end;
    display: grid;
}


/*locations*/
.locations {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-content: center;
    background-color: #000;
}

.loc_row {
   
    width: 70%;
    display: flex;
    justify-content: start;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    align-items: center;
    background-color: #1a1a1a;
    border: 3px solid #5e09cd;
    margin-bottom: 5%;
    border-radius: 25px;
}

.loc_row ul {
    display: grid;
    grid-template-columns: 30% 70%;
    width: 100%;
    height: auto;
    align-items: center;
}
.loc_row ul li {
    justify-content: start;
    align-items: center;
    padding: 3%;
    width: 100%;
    list-style-type: none;
}

.loc_row ul li p {
    font-family: 'Coconat-BoldExt';
    color: #fff;
}

.loc_row ul li img {
    width: 100px;
    height: auto;
}

#dets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
#dets p {
    padding: 2%;
}

@media only screen and (max-width: 1000px) {
    #dets {
        display: grid;
        grid-template-columns: 1fr;
    
    }
    .loc_row ul {
        grid-template-columns: 1fr 1fr;
    }
    #dets p {
        text-align: center;
    }
}

@media only screen and (max-width: 500px) {
    #dets p {
        font-size: 0.7rem;
    }
    .loc_row ul {
        grid-template-columns: 30% 1fr;
    }


}

.message {
    z-index: 15;
    width: 100%;
    position: absolute;
    bottom: 100%;
    color: black;
    text-align: center;
    display: grid;
    align-items: center;
    justify-items: center;
    background-color: black;
    padding-bottom: 23px;
}
.message p {
    font-family: 'Coconat-BoldExt';
    background-color: black;
    color: #fff;
    padding: 9%;
    font-size: 0.9rem;
}
.message a button {
    padding: 5px;
    width: 100%;
    border-radius: 5px;
    color: #fff;
    background-color: #5e09cd;
    font-family: 'Coconat-BoldExt';
    height: 100%;
}


.congrats {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    margin: 0 0 5% 0;
    width: 80%;
}

.congrats img {
    width: 100%;
    height: auto;
}

.congrats h1 {
    font-family: 'Coconat-BoldExt';
    color: #fff;
    font-size: 1.5rem;
}


video {
    width: 100%;
    max-height: 100%;
}