
*{
    box-sizing: border-box;
}

html {
}

body {
    font-family: 'Mooli', sans-serif;
    background-color: #d9ffff;
    margin: 0;
    position: relative;
    min-height: 1075px;
}

@media screen and (max-width: 514px) {
    body {min-height: 1075px;}
}

.waitloader {
    border: 12px solid rgba(211, 211, 211, 1);
    border-top: 12px solid mediumblue;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

.containflex {
    padding-bottom: 45px;
}

/*@media screen and (max-width: 607px) {
    body {
        height: 1073px;
    }
}*/

footer {
    margin-top: auto;
    width: 100%;
    height: 30px;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    background-color: paleturquoise;
    justify-content: space-evenly;
    z-index: 2;
}

footer a{
    color: brown;
    margin-top: 7px;
    font-size: 12px;
    text-decoration: none;
}

footer p {
    color: brown;
    margin-top: 7px;
    font-size: 12px;
}

.headerdiv {
    background-image: linear-gradient(90deg, #87cfeb, #def6ff);
    border-top: medium solid #48b5e0;
}

.headerdiv h2{
    font-family: 'Mooli', san-serif;
    text-align: center;
    color: #3636b7;

    margin: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.container {
    display: none;
    width: 90%;
    height: auto;
    top: -7%;
    position: fixed;
    transform: translate(5%, 100%);
    border: 1px solid black;
    cursor: pointer;
    z-index: 3;
}

@media screen and (min-width: 900px){
    .container{
        width: 50%;
        top: 0;
        transform: translate(50%, 50%);
    }
}

@media screen and (min-width: 1750px){
    .container{
        width: 50%;
        top: -10%;
        transform: translate(50%, 50%);
    }
}

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

.container .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 800;
    margin-top: 38%;
    cursor: pointer;
    line-height: .5;
    text-align: center;
    background-color: white;
    border: 2px solid green;
    border-radius: 12px;
}

.container .centered p {
    padding-left: 10px;
    padding-right: 10px;
}

.container .centered:hover {
    color: white;
    background-color: green;
}

.loginbar{
    font-family: Sans-Serif;
    height: 30px;
    width:100%;
    display:flex;
    background-color:paleturquoise;
    justify-content: space-between;
    line-height:3px;
}

.loginbar p, .loginbar a{
    font-size: 14px;
    color: darkblue;
}

.rightdesktop{
    height:73px;
    width:auto;
    float:right;
    margin-top:9px;
    margin-right:10px;
}

.leftdesktop{
    height:43px;
    width:auto;
    float:left;
    margin-top:2px;
    margin-left:5px;
    cursor: pointer;
    z-index: 3;
}

/* Page Content*/

.content {
    width: 76%;
    line-height: 160%;
    position: absolute;
    left: 12%;
    z-index: 1;
}


@media screen and (min-width: 133px) {
    .content {
        width: 96%;
        position: absolute;
        left: 2%;
        z-index: 0;
    }
}

@media screen and (min-width: 733px){
    .content{
        width: 58%;
        position: absolute;
        left: 21%;
    }
}

@media screen and (min-width: 1000px){
    .content{
        width: 66%;
        position: absolute;
        left: 17%;
    }
}

@media screen and (min-width: 1375px){
    .content {
        width: 76%;
        position: absolute;
        left: 12%;
    }
}

.content .languageScreen {
    float: right;
    width: 150px;;
    height: auto;
    position: relative;
    margin-top: 20px;
    margin-left: 10px;
    z-index: 1;
}

.content p {
    position: relative;
    font-family: "Mooli", sans-serif;
    line-height: 160%;
    color: black;
    font-size: 16px;
    margin-left: 10px;
    margin-right: 10px;
    z-index: 1;
}

@media screen and (min-width: 1000px){
    .content p {
        font-size: 18px;
    }
}

@media screen and (min-width: 1375px){
    .content p {
        font-size: 20px;
    }
}


/* Dropdown Menu */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    text-align: center;
    left: -50px;
    top: 30px;
    background-color: #b8e9fc;
    border-radius: 22px;
    min-width: 125px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-content a {
    color: darkblue;
    margin: 10px;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {color: white; background-color: #46b7e3; border-radius: 22px;}

.dropdown:hover .dropdown-content {display: block;}


/* Sidebar Div */

.side {
    color: darkblue;
    height: auto;
    width: 10%;
    padding-left: 3px;
    display: block;
    background-image: linear-gradient(0deg, #def6ff, #87cfeb);
    border-top-right-radius: 90px;
    border-bottom-right-radius: 90px;
    float: left;
    margin-bottom: 45px;
    margin-top: 5px;
    position: absolute;
    z-index: 2;
}

@media screen and (min-width: 125px){
    .side{
        width: 30%;
    }
}


@media screen and (min-width: 475px){
    .side{
        width: 30%;
    }
}


@media screen and (min-width: 733px){
    .side{
        width: 20%;
    }
}

@media screen and (min-width: 1000px){
    .side{
        width: 15%;
    }
}

@media only screen and (min-width: 1375px){
    .side {
        width: 10%;
    }
}

/* Div header */
.side h3 {
    text-align: center;
    margin: 0;
    padding: 12px 0 12px 0;

}

/* Div links */
.side a {
    font-size: 14px;
    color: darkblue;
    display: block;
    padding: 12px 12px 12px 0px;
    text-align: center;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

/* Div link on hover */
.side a:hover {
    color: white;
    background: #46b7e3;
    position: static;
    background-color: #46b7e3;
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
}

.side i{
    cursor: pointer;
    margin-top: 5px;
}

/* Sidebar Div */
.rside {
    color: darkblue;
    width: 10%;
    height: auto;
    background-image: linear-gradient(180deg, #def6ff, #87cfeb);
    border-top-left-radius: 90px;
    border-bottom-left-radius: 90px;
    float: right;
    margin-bottom: 45px;
    margin-top: 5px;
    margin-left: 15px;
    position: absolute;
    right: 0;
    z-index: 2;
}

@media screen and (min-width: 125px){
    .rside{
        width: 30%;
    }
}


@media screen and (min-width: 475px){
    .rside{
        width: 30%;
    }
}


@media screen and (min-width: 733px){
    .rside{
        width: 20%;
    }
}

@media screen and (min-width: 1000px){
    .rside{
        width: 15%;
    }
}

@media only screen and (min-width: 1375px){
    .rside {
        width: 10%;
    }
}


/* Div header */
.rside h3 {
    text-align: center;
    padding: 20px 0 0 0;
}

.rside i{
    cursor: pointer;
    margin-top: 5px;
}

.encompass{
    text-align: center;
    padding-top: 5px;
    margin-right: 5px;
}

.encompass p{
    margin: 0px;
    padding: 5px 0px 5px 0px;
}

.encompass img{
    height: 65px;
    margin-left: 0%;
    margin-top: 0px;
    margin-bottom: 10px;
}

.encompass:hover{
    color: white;
    cursor: pointer;
    text-align: center;
    background: #46b7e3;
    position: static;
    background-color: #46b7e3;
    border-top-right-radius: 44px;
    border-bottom-right-radius: 44px;
}

.encompass:active{

}

/* Div links
.rside p {
    font-size: 14px;
    color: darkblue;
    display: block;
    text-align: center;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

/* Div link on hover
.rside p:hover, .rside img:hover {
    color: white;
    background: #46b7e3;
    position: relative;
    background-color: #46b7e3;
    border-radius: 11px;
}*/

.rmenu{
    float: right;
    height: 25px;
    margin-right: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.lmenu{
    float: left;
    height: 25px;
    margin-left: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.languageScreen {
    float: right;
    width: 150px;
    height: auto;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: 38px;
    position: relative;
    z-index: 0;
}

@media screen and (min-width: 1000px){
    .languageScreen{
        width: 200px;
    }
}

@media only screen and (min-width: 1375px){
    .languageScreen {
        width: 250px;
    }
}

.enlargeCanvas {
    display: none;
    width: 50%;
    height: auto;
    left: 25%;
    top: 25%;
    position: absolute;
    z-index: 2;
}

@media screen and (max-width: 732px){
    .enlargeCanvas{
        width: 90%;
        left: 5%;
        height: auto;
    }
}

@media screen and (min-width: 733px) {
    .rside{display: initial}
    .side{display: initial}
}

@media screen and (max-width: 732px){
    .rside{display: none}
    .side{display: none}
}

.calculator {
    font-family: sans-serif;
    position: absolute;
    width: 25%;
    height: 60%;
    z-index: 1;
    top: 25%;
    left: 37.5%;
    background-color: #2a2a2a;
    border: 3px solid black;
    border-top-right-radius: 22px;
    border-top-left-radius: 22px;
    border-bottom-right-radius: 11px;
    border-bottom-left-radius: 11px;
}

.topwindow {
    position: absolute;
    top: 0;
    bottom: 25%;
    height: 25%;
    width: 100%;
}

.topwindow h3 {
    margin: 0;
    padding: 0;
    border-top-right-radius: 22px;
    border-top-left-radius: 22px;
    text-align: center;
    color: lightgray;
    background-color: #2a2a2a;
}

.buttons {
    position: absolute;
    top: 25%;
    padding-left: 1%;
    left: 0;
    width: 100%;
    height: 75%;
    border-top: 1px solid black;
}

.buttons button {
    color: black;
    width: 24.1%;
    height: 15.5%;
    margin-top: 1%;
    font-size: 20px;
    border-radius: 8px;
    font-weight: bolder;
    cursor: pointer;
}

.buttons button:hover {
}

.output {
    width: 100%;
    height: 30%;
    background-color: #ffffff;
    position: absolute;
    right: 0;
    top: 42.5%;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    z-index: 1;
}

.output p {
    text-align: right;
    font-size: 30px;
    margin-right: 5%;
    margin-top: 1.2%;
}

@media screen and (max-width: 600px) {
    .output p {
        font-size: 25px;
        margin-top: 2%;
    }
}

@media screen and (max-width: 385px) {
    .output p {
        font-size: 20px;
        margin-top: 3%;
    }
}

.memory {
    width:100%;
    position: absolute;
    bottom: 0;
    left: 0;
    display:flex;
    color: black;
    background-color: #b4b4b4;
    justify-content: space-evenly;
    line-height:10px;
}

.memory p {cursor: pointer;}

@media screen and (max-width: 1629px) {
    .buttons button {
        width: 24.1%;
        height: 15.2%;
    }
    .calculator {
        width: 33.33%;
        left: 33.33%;
    }
}

@media screen and (max-width: 1458px) {
    .calculator {
        width: 40%;
        left: 30%;
    }
}

@media screen and (max-width: 1214px) {
    .calculator {
        width: 50%;
        left: 25%;
    }
}

@media screen and (max-width: 972px) {
    .calculator {
        width: 60%;
        left: 20%;
    }
}

@media screen and (max-width: 733px) {
    .buttons button {
        width: 24.2%;
        height: 15.3%;
    }
    .calculator {
        width: 70%;
        left: 15%;
    }
}

@media screen and (max-width: 634px) {
    .buttons button {
        width: 24.1%;
        height: 15.4%;
    }
    .calculator {
        width: 70%;
        left: 15%;
    }
}

@media screen and (max-width: 556px) {
    .buttons button {
        width: 24.1%;
        height: 15.5%;
    }
    .calculator {
        width: 80%;
        left: 10%;
    }
}

@media screen and (max-width: 500px) {
    .buttons button {
        width: 24.1%;
        height: 15.5%;
    }
    .calculator {
        width: 90%;
        left: 5%;
    }
}

@media screen and (max-width: 432px) {
    .buttons button {
        width: 23.9%;
        height: 15.6%;
    }
    .calculator {
        width: 90%;
        left: 5%;
    }
}

@media screen and (max-width: 346px) {
    .buttons button {
        width: 23.5%;
        height: 15.6%;
    }
    .calculator {
        width: 90%;
        left: 5%;
    }
}
