@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin-top: 50px;
    background-color: #1d2033;
    color: white;
    font-family: 'Open Sans', sans-serif;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* =========================================================================================================================== */
/* ======================================================   SECTION 1   ====================================================== */
/* =========================================================================================================================== */ 

.mySlides {
    display: none;
}

.slideshow-container {
    min-width: 100%;
    min-height: 60%;
    position: relative;
    margin: auto;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1s;
    animation-name: fade;
    animation-duration: 1s;
}

.section {
    align-items: center;
    text-align: center;
    vertical-align: middle;
	clear: both;
	padding: 15px;
    margin: 50px;
}

.col {
	display: block;
	float:left;
	margin: 1% 0 1% 1%;
}

.group:before, .group:after {
	content:"";
	display:table;
}

.group:after {
	clear:both;
}

.group {
    zoom:1;
}

.span_1_of_3 {
    width: 60%;
}

.span_2_of_3 {
    width: 30%;
}

input[type=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border-radius: 4px;
    box-sizing: border-box;
}
  
input[type=button] {
    width: 100%;
    background-color: transparent;
    border-color: white;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border-radius: 4px;
    cursor: pointer;
}
  
input[type=button]:hover {
    background-color: whitesmoke;
    color: black;
}
  
.form1 {
    border-radius: 5px;
    background-color: transparent;
    padding: 30px 30px;
}

@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* =========================================================================================================================== */
/* ======================================================   SECTION 2   ====================================================== */
/* =========================================================================================================================== */ 

.calculator {
    width: 300px;
    padding-bottom: 15px;
    border-radius: 7px;
    background-color: #000;
    box-shadow: 5px 8px 8px -2px rgba(0, 0, 0, 0.61);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10%;
}   

.display {
    width: 100%;
    height: 80px;
    border: none;
    box-sizing: border-box;
    padding: 10px;
    font-size: 2rem;
    background-color: #00ffbf;
    color: #000;
    text-align: right;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.row {
    display: flex;
    justify-content: space-between;
}

button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    outline: none;
    font-size: 1.5rem;
    background-color: #222;
    color: #fff;
    margin: 10px;
}

button:hover {
    cursor: pointer;
}

.operator {
    background-color: #00ffbf;
    color: #000;
}

/* =========================================================================================================================== */
/* ======================================================   SECTION 3   ====================================================== */
/* =========================================================================================================================== */ 

:root{
    --success-color: #2ecc71;
    --error-color: #e74c3c;
}

.container{
    border-radius: 5px;
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.form{
    padding: 30px 40px;
}

.form-control{
    margin-bottom: 10px;
    padding-bottom: 20px;
    position: relative;
}

.form-control input{
    border: 2px solid #f0f0f0;
    border-radius: 4px;
    display: inline-block;
    width: 60%;
    padding: 10px;
    font-size: 14px;
}

.form-control input:focus{
    outline: 0;
    border-color: rgb(255, 255, 255);
}

.form-control.success input{
    border-color: var(--success-color);
}

.form-control.error input{
    border-color: var(--error-color);
}

.form-control small{
    color: var(--error-color);
    position: relative;
    bottom: 0;
    visibility: hidden;
}

.form-control.error small{
    visibility: visible;
}

@media only screen and (max-width: 780px) {
	.col { margin: 1% 0 1% 0%;}
	.span_1_of_3, .span_2_of_3 { width: 100%;height: 100%; }
}


