body{
    background-color: #37ab7e;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}
.wrapper{
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-auto-rows: auto 1fr auto auto auto auto;
    grid-template-areas: 
    "hd    hd    hd    hd     hd      hd      hd      hd      hd"
    "sd    sd    sd    sd     main    main    main    main    main"
    "main2 main2 main2 main2  main2   main2   main2   main2   main2"
    "maint maint maint maint  maint   maint   maint   maint   maint"
    "main3 main3 main3 main3  main3   main3   main3   main3   main3"
    "main4 main4 main4 main4  main4   main4   main4   main4   main4"
    "main5 main5 main5 main5  main5   main5   main5   main5   main5"
    "ft    ft    ft    ft     ft      ft      ft      ft      ft";
    height: 100%;
    width: 100%;
    position: relative;
}
.wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(47, 168, 121, 0.7);
    z-index: 2;
}
.front-page .wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('Background29.jpg') no-repeat center center;
    background-size: contain;
    max-height: 100vh;
    width: 100%;
    z-index: 1;
}
.header {
    grid-area: hd;
    position: relative;
    padding: 10px;
    height: 120px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-background{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #5dac98;
    z-index: 0;
}
.header-image {
    position: absolute;
    top: 10px;
    height: 80px;
    z-index: 1;
}
.header-image.left {
    height: calc(100% - 20px);
    max-height: 100px;
    left: 50px;
    transform: translateX(calc(80% - 30px));
    border: 2mm solid whitesmoke;
    border-radius: 15px;
}
.header-image.right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 80px;
    border-radius: 180px;
    margin-right: 20px;
}
nav {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
nav a {
    margin: 0 10px;
    text-decoration: none;
    color: black;
    background-color: #fdd515;
    border-radius: 12px;
    font-size: 30px;
    padding: 10px 20px;
    display: inline-block;
    cursor: pointer;
}
nav a:hover{
    color: white;
}
nav a:active{
    color: orange;
}
.footer {
    grid-area: ft;
    margin-top: -50px;
    z-index: 2;
    align-self: end;
    width: 100%;
    position: relative;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
}
[class*="ft"] {
    grid-row-start: -1;
    margin-top: auto;
    align-self: end;
}
.footer .logo-footer {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    margin-left: 20px;
    object-fit: contain;
    border-radius: 180px;
}
#p4 {
    margin: 0;
    font-size: 16px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}
.content{
    grid-area: main;
    position: relative;
    z-index: 3;
}
.sidebar {
    grid-area: sd;
    position: relative;
    z-index: 3;
}
.content2{
    grid-area: main2;
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    height: auto;
    width: 100%;
}
.contentt{
    grid-area: maint;
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
}
#p2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
    font-size: 40px;
    text-align: center;
    padding: 10px;
    position: relative;
    margin: 0 auto 20px auto;
    width: 95%;
    z-index: 6;
}
.content3{
    grid-area: main3;
    position: relative;
    z-index: 5;
    background-color: white;
    height: 300px;
    width: 800px;
    border-radius: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    margin-bottom: -100px;
}
#ipad {
    background: transparent;
    height: 85%;
    position: relative;
    display: flex;
    justify-content: left;
    align-items: center;
    margin-right: 20px;
    padding: 20px;
    z-index: 6;
}
#greenbox {
    background: #5dac98;
    height: 85%;
    position: relative;
    display: flex;
    justify-content: right;
    align-items: center;
    margin-right: 20px;
    padding: 20px;
    border-radius: 15px;
    z-index: 5;
}
#p3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
    font-size: 30px;
    text-align: justify;
    display: flex;
    justify-content: right;
    padding: 10px;
    position: relative;
    margin-left: 20px;
    width: 95%;
    max-width: 600px;
    z-index: 6;
}
* {
    box-sizing: border-box;
}

h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
    border: none;
    font-size: 1cm;
    text-align: center;
}
h2 {
    color: black;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2cm;
    text-align: center;
}

#div1{
    width: 400px;
    height: 400px;
    border: none;
    padding: 30px;
    margin: auto;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}
#p1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
    font-size: 30px;
    text-align: justify;
    padding: 10px;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 12px solid white;
    background-color: #5dac98;
    border-radius: 15px;
    width: 100%;
    z-index: 2;    
}
#heroes{
    background: transparent;
    height: 700px;
    width: 700px;
    left: 0px;
    top: 0px;
    position: absolute;
    z-index: 4;
}
#mountains{
    background: transparent;
    height: 900px;
    width: 900px;
    right: 0px;
    top: 0px;
    position: absolute;
    z-index: 3;
}
#text {
    background: transparent;
    height: 200px;
    width: 600px;
    position: absolute;
    left: 0px;
    bottom: -100px;
    z-index: 5;
}
#potion {
    background: transparent;
    height: 300px;
    width: 1500px;
    right: 20px;
    top: 0px;
    position: relative;
    z-index: 7;
}
#download {
    background-color: #fdd515 ;
    height: auto;
    width: auto;
    padding: 10px 20px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border-radius: 12px;
    font-size: 30px;
    text-decoration: none;
    color: black;
    display: inline-block;
    cursor: pointer;
    z-index: 8;
}
#happy {
    background: none;
    height: 150px;
    width: 150px;
    position: absolute;
    top: 80%;
    left: 30%;
    border-radius: 180px;
    z-index: 9;
}
.tree {
    grid-area: main2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #092319;
    gap: 20px;
    align-items: center;
    z-index: 4;
    z-index: 5;
    margin-top: -100px;
}
.tree img {
    width: 100%;
    height: auto;
    margin-top: -200px;
}
#p5 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: whitesmoke;
    font-size: 20px;
    text-align: justify;
    display: flex;
    justify-content: center;
    margin-left: -200px;
    padding: 20px;
    position: relative;
    width: 95%;
    z-index: 6;
}
.hero-section {
    grid-area: main2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
    margin-top: -200px;
    z-index: 4;
}
.villain-section {
    grid-area: maint;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
    z-index: 4;
}
.miniboss-section {
    grid-area: main3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
    z-index: 4;
}
.orc-section {
    grid-area: main4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
    z-index: 4;
}
.friend-section {
    grid-area: main5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
    z-index: 4;  
}
.char-image {
    width: 80%;
    height: auto;
    object-fit: contain;
    padding: 20px;
    margin: 20px auto;
    border-radius: 15px;
    background-color: white;
    overflow: hidden;
    border: 1px solid white;
}
.char-text {
    padding: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
    font-size: 20px;
    text-align: justify;
    display: block;
    margin: 0 auto;
    width: 80%;
}
#home {
    grid-area: main2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    z-index: 4;
    margin-top: -300px;
}
#intro {
    grid-area: maint;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    z-index: 4;
}
#world1 {
    grid-area: main3;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0px;
    align-items: center;
    z-index: 4;
    margin-bottom: -100px;
}
#infinitystone {
    grid-area: main4;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0px;
    align-items: center;
    z-index: 4;
    margin-top: -100px;
    margin-bottom: -100px;
}
#world2 {
    grid-area: main5;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0px;
    align-items: center;
    z-index: 4;
    margin-top: -100px;
}
.story-image {
    width: 80%;
    height: auto;
    object-fit: contain;
    padding: 20px;
    margin: 20px auto;
    border-radius: 15px;
    background-color: white;
    overflow: hidden;
    border: 1px solid transparent;
}
.story-text {
    padding: 20px;
    margin: 20px auto;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
    font-size: 20px;
    text-align: justify;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
}
.story-image2 {
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    padding: 20px;
    margin: 100px auto;
    background-color: white;
    overflow: hidden;
    border: 1px solid transparent;
}
#story-hero {
    border-radius: 360px;
}
.story-text2 {
    padding: 20px;
    margin: 100px auto;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
    font-size: 20px;
    text-align: justify;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;   
}
#footer{
    position: relative;
    font-size: 10px;
    background-color: #5dac98;
    height: 100px;
    z-index: 5;
    margin-top: 200px;
    clear: both;
}
#p4 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
    font-size: 15px;
    text-align: justify;
    display: flex;
    justify-content: left;
    padding: 20px;
    position: relative;
    margin-left: 20px;
}
