body, html {
    height: 99%;
}

#bg-page {
    background-image: url("../../images/stardew-valley-background-day.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /*
    background-color: aqua;
    background-image: url("../../images/Mr._Qi.png");
    background-size: auto 5000%;
    */
}

.div1 {
    position: absolute;
    min-width: 1000px;
    width: 90vw;
    max-width: 1250px;
    min-height: 625px;
    height: 81.5vh;
    max-height: 812.5px;
    top: 50%;   /* make the starting point of the container 50% from the top of its own container (the entire page - if uncontained) */ 
    left: 50%;
    transform: translate(-50%, -50%);   /* Translate the container by its own width and height. 50% effectively center it */
    outline: 6px ridge darkgoldenrod; 
    font-size: 0;
}

/* Top bar of the calculator. Should always be visible even if resized. */
.div2 {
    position: relative;
    display: block;
    width: 100%; /*percentage sizes are always based on the first parent container */
    height: calc(13% - 6px);
    background-color: #ffcb7b;
    border-bottom: 6px ridge darkgoldenrod;
}

/* Title space of top bar */
.div2_1 {
    position: absolute;
    width: 70%;
    height: 100%;
    display: inline-flex;
    align-items: center;
}

/* Reset, Load, Save space of top bar */
.div2_2 {
    position: relative;
    width: 30%;
    left: 70%;
    height: 100%;
    display: inline-flex;
    align-items: center;
}

/* Reset button container */
.div2_2_1 {
    position: absolute;
    display: inline-block;
    right: 0%;
    margin-right: 40%;
}

/* Container below top bar with all the user choices */
.div3 {
    position: relative;
    display: inline-block;
    width: calc(66% - 6px);
    height: 87%;
    border-right: 6px ridge darkgoldenrod;
    background-color: rgb(81, 4, 109);
}

/* User choices for Weapon, Gem Forging, Innate Enchantment */
.div3_1 {
    position: absolute;
    background-color: #ffcb7b;
    width: 43%;
    height: 86%;
    top: 7%;
    bottom: 7%;
    left: 5%;
    outline: 6px ridge darkgoldenrod;
}

.div3_1_1 {
    position: relative;
    height: 87.5px;
}

.div3_1_2 {
    position: relative;
    height: 50px;
}

.div3_1_3 {
    position: relative;
    height: 50px;
}

/* User choices for Rings */
.div3_2 {
    position: absolute;
    width: 43%;
    height: 25%;
    top: 7%;
    left: 52%;
    background-color: #ffcb7b;
    outline: 6px ridge darkgoldenrod;
}

.div3_2_1 {
    position: relative;
    height: 42.5px;
}

/* User choices for Skills */
.div3_3 {
    position: absolute;
    width: 43%;
    height: 25%;
    top: 37.5%;
    left: 52%;
    background-color: #ffcb7b;
    outline: 6px ridge darkgoldenrod;
}

.div3_3_1 {
    position: relative;
    height: 42.5px;
}

/* User choice for Blessings */
.div3_4 {
    position: absolute;
    width: 43%;
    height: 25%;
    bottom: 7%;
    left: 52%;
    background-color: #ffcb7b;
    outline: 6px ridge darkgoldenrod;
}

/* Container for the calculated results. Should go below div3 if page is too narrow */
.div4 {
    position: relative;
    display: inline-block;
    width: 34%;
    height: 87%;
    background-color: rgb(81, 4, 109);
}

.p1 {
    font-size: 38px;
    padding-left: 25px;
}

.p2 {
    font-size: 27.5px;
    margin: 0;
    padding-top: 27.5px;
    padding-left: 25px;
}

.p3 {
    font-size: 27.5px;
    padding-left: 25px;
    margin-top: 27.5px;
}

.p4 {
    font-size: 27.5px;
    margin: 0;
    padding-top: 12.5px;
    padding-left: 25px;
}


@media (max-width: 1012.5px) {
    .div1 {
        min-width: 500px;
        width: auto;
        float: none;
        height: 625px;
        outline: 4px ridge darkgoldenrod;
    } .div2 {
        border-bottom: 4px ridge darkgoldenrod;
    } .div3 {
        width: 100%;
        height: 60%;
        border-right: none;
        border-bottom: 4px ridge darkgoldenrod;
    } .div3_1, .div3_2, .div3_3, .div3_4 {
        outline: 4px ridge darkgoldenrod;
    } .div3_1_1 {
        height: 45px;
    } .div3_1_2 {
        height: 50px;
    } .div3_2_1 {
        height: 30px;
    } .div3_3_1 {
        height: 30px;
    } .div4 {
        width: 100%;
        height: 27%;
    } .div2_1 {
        width: 60%;
    } .p1 {
        font-size: 25px;
    } .p2 {
        font-size: 22px;
        padding-top: 10px;
        padding-left: 10px;
    } .p3 {
        font-size: 22px;
        padding-top: 15px;
        padding-left: 10px;
        margin: 0;
    } .p4 {
        padding-top: 5px;
        padding-left: 10px;
        font-size: 22px;
    }
}
