@import url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.govno {
    font-family: 'Yanone Kaffeesatz', sans-serif;
	font-size: 25px;
}

body {
    display: block;
    background: #CCC5B9;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 67px 0 auto;
}

.all {
    display: flex;
    flex-direction: column;
    margin: 95px 0;
}

.upper {
    width: 420px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.up1, .up2 {
    width: 200px;
    height: 50px;
    border-radius: 0.5em;
    border: 3px solid #403D39;

    font-family: 'Yanone Kaffeesatz', sans-serif;
	font-size: 30px;

    color: #fff;
    background-color: #403D39;

    cursor: pointer;

    
    transition: 0.3s;
}

.up2:hover {
    background-color: #2e3446; 
}

.up1 {
    background-color: #CCC5B9;
    box-shadow: 0 0 20px #555;
}

.downer {
    display: flex;
    flex-direction: column;;
}

.down1, .down2 {
    display: flex;
    flex-direction: column;

    align-items: center;
    min-width: 420px;
    height: 300px;
    border-radius: 1em;
    border: 3px solid #403D39;

    padding: 1.5em;

    justify-content: space-between;

}

.down1 {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-bottom: 0;
}

.riminput, .arabinput {
    display: flex;
    width: 300px;
    height: 50px;

    text-align: center;

    background: #CCC5B9;

    border-radius: 10px;
    border: 3px solid #403D39;

    font-family: 'Yanone Kaffeesatz', sans-serif;
	font-size: 25px;

    color: #fff;

}

.convbtn1, .convbtn2 {
    display: flex;
    width: 270px;
    height: 50px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
	font-size: 25px;

    text-align: center;
    align-items: center;
    justify-content: center;

    border-radius: 0.6em;    

    border: none;
    background-color: #CCC5B9;

    cursor: pointer;

    color: #fff;
    background-image: linear-gradient(360deg, #374a57, #413a5c, #403D39, #403D39);
    background-image: -webkit-linear-gradient(360deg, #374a57, #413a5c, #403D39, #403D39);
    background-size: 450%;
    background-position: 100%;
    transition: background 300ms ease-in-out;
}

.convbtn1:hover, .convbtn2:hover {
  	background-position: 0;
}

.araboutput, .rimoutput {
    display: flex;
    min-width: 300px;
    height: 50px;

    text-align: center;
    align-items: center;
    justify-content: center;

    background: #CCC5B9;

    border-radius: 10px;
    border: 3px solid #403D39;

    font-family: 'Yanone Kaffeesatz', sans-serif;
	font-size: 25px;

    color: #fff;
}




.down2 {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

footer {
	display: flex;
	bottom: 0;
	width: 100%;
	height: 4em;
	background: #403D39;
	align-items: center;
	justify-content: center;
    color: #fff;
    position: relative;
    bottom: 0;
}

.credits {
	display: flex;
	flex-direction: column;

	position: absolute;
	left: 1em;

    color: #fff;
}

.grade {
	display: flex;
	flex-direction: column;

	position: absolute;
	right: 1em;

	color: #fff;
}





/* for canat */

.conat {
    display: flex;
    flex-direction: row;

}

.history1 {
    display: flex;
    border: 3px solid #403D39;
    border-left: 0;
    width: 200px;
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
    text-align: center;
    flex-direction: column;
    max-height: 600px;

}

.history1 h4 {
    font-size: large;
    padding: 10px 0;
    border-bottom: 3px solid #403D39;
}

.history {
    display: flex;
    flex-direction: column;
    overflow: auto;
}

hr {
    border: none;
    padding: 4px 0;
}


/* calc */

.calc2 {
    min-width: 420px;
    height: 600px;
    border: 3px solid #403D39;
    border-radius: 10px;
}

.interface {
    display: flex;
    flex-direction: column;
    padding: 10px;
    height: 100%;
}

.calcoutput {
    margin: 50px 10px;
    border: 3px solid #403D39;
    border-radius: 10px;
    width: auto;
    height: 100px;
}

.outputcalc {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: flex-end;
    align-items: center;
    font-size: 55px;
    color: white;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    padding-top: 10px;
    padding-right: 10px;
}

.calcbtns {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.row1, .row2 {
    display: flex;
    height: 25%;
    
}

.row1 {
    justify-content: space-between;

}

.row2 {
    padding-top: 5px;
}

/* btns */


.btn:hover {
    background-color: rgba(185, 182, 176, 0.5);
    color: rgb(117, 65, 101);
}








/* boots */

.circle {
    border-radius: 50%;
    border: 3px solid #403D39;
}

.btn {
    display: flex;
    font-size: 60px;
    background-color: #CCC5B9;
    color: white;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
}

.flexbtn1 {
    display: flex;
    flex-grow: 1;
}

.flexbtn2 {
    display: flex;
    flex-grow: 2;
}

.flexbtn0 {
    display: flex;
    flex-grow: 0.24;
}

.ravno {
    border: 3px solid #403D39;
    border-radius: 2em;
}

.circle span {
    position: absolute;
    right: 0;
    left: 0;
    padding-top: 5px;
}

.rightp {
    margin-right: 5px;
}


