@font-face {
    font-family: "poppins";
    src: url("../font/Poppins.ttf") format("truetype");
}

@font-face {
    font-family: "poppinsBold";
    src: url("../font/Poppins-Bold.ttf") format("truetype");
}

body {
    background: white;
    background-image: radial-gradient(rgb(165, 165, 165) 1px, transparent 0);
    background-size: 40px 40px;
    background-position: 0px 0px;
    font-family: poppins;
}

footer {
    height: 50px;
    align-items: center;
    text-align: center;
}

footer div {
    display: inline-block;
    height: 50px;
    margin: 0 20px;
}

footer a {
    color: black;
    text-decoration: none;
}

.backA {
    text-decoration: underline;
    color: #242424;
    margin-bottom: 0;
}

#top {
    position: relative;
    height: 100vh;
}

@keyframes downIcon {
    0% {
        bottom: 20px;
    }
    50% {
        bottom: 30px;
    }
    100% {
        bottom: 20px;
    }
}

#top img {
    position: absolute;
    bottom: 20px;
    left: calc(50vw - 28px);
    height: 40px;
    opacity: 0.5;
    animation: downIcon 2s;
    animation-iteration-count: infinite;
}

#heading {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 7vw;
}

#heading h1 {
    font-size: 80px;
    margin: 0;
    font-weight: 700;
    font-family: poppins;
}

#heading h2 {
    margin: 10px 0 0 0;
    font-size: 25px;
}

@media (pointer:none), (pointer:coarse) {
    #heading h1 {
        font-size: 50px;
    }
    #heading h2 {
        font-size: 20px;
    }

    .appShowcase {
        margin: 50px 0 50px 0;
    }
    
    .appShowcase main {
        margin: 0 auto;
        background-color: rgb(27, 27, 27);
        min-height: 250px;
        border-radius: 30px;
        color: white;
        width: calc(100% - 50px);
        max-width: 600px;
        padding-bottom: 1px;
    }
    
    .leftImg {
        height: 150px;
        transform: scale(1.5);
        margin: 100px 0 0 calc(50% - 75px);
    }
    
    .rightImg {
        height: 150px;
        transform: scale(1.5);
        margin: 70px 0 0 calc(50% - 75px);
    }
    
    .appShowcase main img {
        width: 100px;
        margin: 20px 0 10px calc(50% - 50px);
        border-radius: 10px;
        box-shadow: 0 0 10px black;
    }
    
    .appShowcase main div {
        margin: 0 20px 20px 20px;
    }

    .appShowcase h1 {
        margin: 0;
        font-size: 35px;
    }

    .appShowcase p {
        margin: 0;
        font-size: 17px;
    }

    .appShowcase a {
        color: rgb(189, 189, 189);
        text-decoration-color: white;
    }
}

@media only screen and (max-width: 1000px) and (pointer:fine) { 
    .appShowcase {
        margin: 150px 0 150px 0;
    }
    
    .appShowcase main {
        margin: 0 auto;
        background-color: rgb(27, 27, 27);
        min-height: 250px;
        width: 35vw;
        border-radius: 30px;
        color: white;
        width: calc(100% - 190px);
    }
    
    .leftImg {
        height: 250px;
        transform: scale(1.5);
        margin: 100px auto 0 auto;
    }
    
    .rightImg {
        height: 250px;
        transform: scale(1.5);
        margin: 100px auto 0 auto;
    }
    
    .appShowcase main img {
        display: inline-block;
        width: 25%;
        margin: 50px 25px 50px 50px;
        border-radius: 10px;
        box-shadow: 0 0 10px black;
        float: left;
    }
    
    .appShowcase main div {
        float: left;
        display: inline-block;
        width: calc(100% - 275px);
    }

    .appShowcase h1 {
        margin: 40px 0 0 0;
        display: inline;
        float: left;
        font-size: 40px;
    }

    .appShowcase p {
        margin: 0 0 25px 0;
        display: inline-block;
        float: left;
        font-size: 18px;
    }

    .appShowcase a {
        color: rgb(189, 189, 189);
        text-decoration-color: white;
    }
}

@media only screen and (min-width: 1000px) and (pointer:fine) { 
    .appShowcase {
        position: relative;
        height: 250px;
        margin: 150px 0 150px 0;
    }

    .appShowcase main {
        position: absolute;
        background-color: rgb(27, 27, 27);
        min-height: 250px;
        width: 35vw;
        border-radius: 30px;
        color: white;
        min-width: 500px;
    }

    .leftMain {
        left: 10vw;
    }

    .rightMain {
        right: 10vw;
    }

    .leftImg {
        position: absolute;
        height: 100%;
        transform: scale(1.5);
        left: 20vw;
    }

    .rightImg {
        position: absolute;
        height: 100%;
        transform: scale(1.5);
        right: 20vw;
    }

    .appShowcase main img {
        display: inline-block;
        width: 25%;
        margin: 50px 25px 50px 50px;
        border-radius: 10px;
        box-shadow: 0 0 10px black;
        float: left;
    }

    .appShowcase main div {
        float: left;
        display: inline-block;
        width: calc(35vw - 15vw);
    }

    .appShowcase h1 {
        margin: 40px 0 0 0;
        display: inline;
        float: left;
        font-size: 40px;
    }

    .appShowcase p {
        margin: 0 25px 25px 0;
        display: inline-block;
        float: left;
        font-size: 18px;
    }

    .appShowcase a {
        color: rgb(189, 189, 189);
        text-decoration-color: white;
    }
}

#subMain {
    width: 1200px;
    max-width: calc(100% - 20px);
    margin: 180px auto 50px auto;
}

#subMain h1 {
    font-size: 2.5em;
}

.subFlex {
    display: flex;
    flex-wrap: wrap;
}

.subFlex img {
    flex: 0;
    margin: 0 auto 0 auto;
    min-width: 200px;
    height: fit-content;
    box-shadow: 0 0 10px #24242460;
    background-color: white;
    aspect-ratio: calc(210 / 297);
}

.subFlexCont {
    flex: 1;
    margin-left: 20px;
    /*min-width: fit-content;*/
}

#bookPreviewTitle {
    text-align: center;
    font-size: 3.5em;
    margin: 100px 50px 100px 50px;
}

#bookPreview {
    max-width: calc(100% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

#bookPreview img {
    flex-shrink: 1;
    max-width: calc(30%);
    width: 400px;
    transition: 0.5s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.473);
}

#bookPreview img[data-index="0"] {
    transform: translateX(40%) translateY(10%) rotate(-10deg);
    z-index: 10;
}

#bookPreview:hover img[data-index="0"] {
    transform: translateX(30%) translateY(15%) rotate(-15deg);
}

#bookPreview img[data-index="1"] {
    transform: translateY(0%);
    z-index: 9;
}

#bookPreview:hover img[data-index="1"] {
    transform: translateY(-5%);
}

#bookPreview img[data-index="2"] {
    transform: translateX(-40%) translateY(10%) rotate(10deg);
    z-index: 8;
}

#bookPreview:hover img[data-index="2"] {
    transform: translateX(-30%) translateY(15%) rotate(15deg);
}

#buyButtons {
    height: 70px;
    text-align: center;
}

.buyButton {
    padding: 20px;
    background-color: rgb(27, 27, 27);
    border-radius: 20px;
    display: inline-block;
    color: white;
    margin: 0 20px;
    text-decoration: underline;
}

.buyButton a {
    color: white;
}


.subFlex input {
    padding: 10px;
    font-family: poppinsBold;
    border-radius: 10px;
    border: #242424 1px solid;
    margin: 15px 0;
}

.subFlex select {
    padding: 10px;
    font-family: poppinsBold;
    border-radius: 10px;
    border: #242424 1px solid;
    margin: 15px 0;
    background-color: white;
}

.actionButton {
    padding: 10px;
    border-radius: 10px;
    border: #242424 1px solid;
    user-select: none;
    cursor: pointer;
    width: fit-content;
}

.actionButton:hover {
    background-color: #2424244d;
}

#appAd {
    background-color: #242424;
    border-radius: 20px;
    margin-top: 50px;
}

#appAd img {
    display: inline-block;
    height: 125px;
    margin: 15px 12.5px 15px 12.5px;
    border-radius: 10px;
}

#appAd p {
    color: white;
    vertical-align: top;
    width: calc(100% - 175px);
    display: inline-block;
    font-size: 1.2em;
}

#appAd a {
    color: white;
}