* {
	box-sizing: border-box;
}
html {
	height: 100%; 
	max-height: 100%; 
	padding: 0; 
	margin: 0; 
	border: 0; 
	overflow: hidden; 
	background: #4150b4;
    color: #000;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-size: 100%;
}

h3 {
    margin: 0;
    padding: 0;
}

body {
	margin: 0;
	padding: 0;
	height: 100%;
	max-height: 100%;
	overflow: auto;
	border: 0;
	background: none;
}

.hide {
    display: none;
    left: 10000px;
}

.header {
	position: relative;
    width: 100%;
    background: #619ca2;
    border-bottom: 0.5rem solid #f0f0f0;
    box-shadow: #000 0 0.1rem 0.5rem 0.1rem;
    text-align: center;
    height: 3rem;
    color: white;
    padding-top: 5px;
}

.content {
    
}

.right-bar {
    width: 15rem;
    background: #cecece;
    padding: 1rem;
    font-size: 150%;
    min-height: 40.75rem;
    float: right;
    text-align: center;
}

.right-bar img {
    width: 100%;
}

.widget {
    padding: 0.5rem;
    margin: 1.5rem auto;
    border: 2px solid black;
    border-radius: 1rem;
    background: #4150b4;
    transition: all 0.3s;
}

.widget:hover {
    transform: scale(1.1);
}

#manual {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

span {
    font-size: 90%;
}

.calc-holder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 50rem;
}

.table {
    width: 100%;
    text-align: left;
}

.calculator, .savings {
    max-width: 35rem;
    background: #cecece;
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 300%;
    margin-left: 2rem;
}

.savings {
    max-width: 13rem;
    margin-left: 0;
}

.col {
	display: flex;
	flex-direction: column;
	flex-basis: 100%;
	flex: 1;
}

.arrow {
    max-width: 1.5rem;
}

.equals {
    flex: none;
    width: 50%;
}

.row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 100%;
	padding: 0.1rem;
}

.button {
    cursor: pointer;
    background: #C4D981;
    border: 2px solid #4F4F43;
    text-align: center;
    transition: all 0.5s;
    margin: 0.15rem 0.3rem;
    border-radius: 0.5rem;
    height: 4.75rem;
}

.equals .button {
    background: #1c8e24;
    color: white;
    padding-top: 0.25rem;
}

.button:hover {
    background: #75C0D3;
}

.equals .button:hover {
    background: #5c948f;
}

.screen, .save {
    border: 2px solid #000;
    border-radius: 0.5rem;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    background: #67dcff;
    margin: 0.3rem;
}

.screen {
    padding: 0.5rem;
    min-height: 9.375rem;
}

.screen .top {
    background: url("tiny-speaker.png") no-repeat;
    background-position: bottom right;
    transition: background 0.3s; 
    cursor: pointer;    
}

.screen .top:hover {
    background: #67dcff url(tiny-speaker.png) no-repeat;
    background-position: top right;
}

.screen .bottom {
    background: url("tiny-speaker.png") no-repeat;
    background-position: bottom left;
    transition: background 0.3s; 
    cursor: pointer;
    height: 4rem;
}

.screen .bottom:hover {
    background: #67dcff url(tiny-speaker.png) no-repeat;
}

.save {
    margin: 0.15rem;
    font-size: 85%;
    text-align: right;
    background: #c5bdbd url("tiny-speaker.png") no-repeat;
    background-position: bottom left;
    min-height: 4.7rem;
    transition: background 0.3s; 
    cursor: pointer;
    max-width: 8.5rem;
}

.save:hover {
    background: #67dcff url("tiny-speaker.png") no-repeat;
}

#delete-list {
    width: 8.5rem;
    margin-left: 0.1rem;
    margin-right: 0;
}

.bottom {
    text-align: right;
}

.arrowleft {
    width: 0;
    height: 2.25rem;
    border-right: 2.75rem solid #646464;
    border-top: 1.25rem solid transparent;
    border-bottom: 1.25rem solid transparent;
    margin: 1rem auto;
}

.arrowright {
    width: 0;
    height: 2.25rem;
    border-left: 2.75rem solid #646464;
    border-top: 1.25rem solid transparent;
    border-bottom: 1.25rem solid transparent;
    margin: 1rem auto;
}

.arrow .arrowright {
    border-left: 2rem solid #646464;
    margin-right: 0;
    margin-left: 0.5rem;
    margin-top: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
}

.arrow .arrowright:hover {
    border-left: 2.75rem solid #6c7be2;
}

#Math, #Result, .savings input {
    height: 4rem;
    cursor: pointer;
    border: none;
    background: #67dcff;
    font-size: 100%;
    color: black;
}

#Math {
    width: 28rem;
}

#Result {
    width: 28rem;
    text-align: right;
}

.savings input {
    margin-left: 1.75rem;
    width: 5.5rem;
    background: #c5bdbd;
    text-align: right;
    font-size: 85%;
}

.savings input:focus {
    background: #67dcff;
}

.savings input:hover {
    background: #67dcff;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance:textfield;
}

@media screen and (max-width: 1024px) {
    .right-bar {
        width: 10rem;
        font-size: 120%;
    }
    #manual {
        padding: 1rem 0.5rem;
    }
}

@media screen and (max-width: 820px) {
    .calc-holder {
        max-width: 40rem;
    }
    .calculator, .savings {
        font-size: 200%;
    }
    .calculator {
        max-width: 25rem;
    }
    .savings {
        max-width: 13rem;
    }
    .button {
        height: 4.85rem;
        padding-top: 0.7rem;
     }
    .arrowleft, .arrowright, .arrow .arrowright {
        width: 0;
        height: 2rem;
        border-right: 2rem solid #646464;
        border-top: 1.25rem solid transparent;
        border-bottom: 1.25rem solid transparent;
    }
    .arrowleft, .arrowright {
        margin: 0.25rem auto;
    }
    .arrow .arrowright, .arrowright {
        border-left: 2rem solid #646464;
        border-right: none;
    }
    .arrow .arrowright {
        margin-left: 0;
    }
    .save {
        min-height: 4rem;
        margin-right: 0.5rem;
    }
    .screen {
        min-height: 6.6rem;
    }
    #Math {
        width: 19rem;
    }
    .right-bar {
        width: 10rem;
        font-size: 120%;
    }
    #manual {
        padding: 1rem 0.5rem;
    }
}