@media (max-width: 768px) {
    #pillheader {
        width: 80%;
        margin: 10px auto;
    }
    .calc {
        flex-direction: column;
        align-items: center;
        width: 95%;
        padding: 10px;
    }
    #firstnum, #secondnum {
        width: 90%;
        min-width: unset;
    }
    #opchoose {
        width: 90%;
        margin: 10px 0;
    }
    #countbtn {
        width: 90%;
        margin: 10px 0;
    }
    #countdisplay, #counthistory {
        width: 95%;
    }
    #cleanbtn {
        margin: 10px auto;
    }
    #langbtn {
        width: 80%;
    }
    #langswitch {
        margin-bottom: 30px;
    }
}

body, html {
    margin: 0px;
}
body {
    background: linear-gradient(90deg, rgba(42, 155, 110, 1) 10%, rgba(31, 153, 82, 1) 65%, rgba(227, 205, 9, 1) 100%);
    font-family: 'Montserrat', sans-serif;
}
#headertext {
    font-size: 200%;
    color: azure;
    text-align: center;
}
a {
    text-decoration: none;
}
#pillheader {
    background-color: black;
    width: 90%;
    max-width: 800px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    margin: 10px auto 0 auto;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}
#pillheader:hover {
    transform: scale(1.1);
    transition: 0.3s;
    cursor: pointer;
}
.calc {
    width: 90%;
    max-width: 800px;
    height: auto;
    min-height: 400px;
    background-color: white;
    border-style: outset;
    border-width: 5px;
    border-color: black;
    margin: 20px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}
input {
    height: 50px;
    margin-top: 1cm;
}
#opchoose {
    width: 50px;
    height: 55px;
    margin-top: 1cm;
    margin-left: 10px;
    margin-right: 10px;
}
#firstnum, #secondnum {
    width: 25%;
    min-width: 100px;
}
#countbtn {
    background: linear-gradient(90deg, rgba(42, 98, 155, 1) 10%, rgba(31, 66, 153, 1) 65%, rgba(9, 82, 227, 1) 100%);
    color: white;
    height: 55px;
    width: 200px;
    margin-top: 1cm;
    margin-left: 10px;
    border-style: outset;
    border-width: 5px;
    border-radius: 5px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}
#countbtn:hover {
    transform: scale(1.1);
    transition: 0.2s;
    cursor: pointer;
}
#countdisplay {
    background-color: lightgray;
    width: 90%;
    height: auto;
    min-height: 200px;
    margin-top: 20px;
    border-width: 5px;
    border-radius: 5px;
}
#result {
    font-size: 200%;
    text-align: center;
}
h2 {
    text-align: center;
}
#counthistory {
    background-color: lightgray;
    width: 90%;
    height: auto;
    min-height: 200px;
    margin-top: 20px;
    border-width: 5px;
    border-radius: 5px;
}
#cleanbtn {
    background: linear-gradient(174deg, rgba(155, 42, 61, 1) 10%, rgba(232, 21, 21, 1) 65%, rgba(227, 16, 9, 1) 100%);
    width: 100px;
    height: 50px;
    margin: 10px auto;
    display: block;
    border-radius: 5px;
    border-width: 2px;
    border-color: black;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}
#cleanbtn:hover {
    transform: scale(1.1);
    transition: 0.3s;
    cursor: pointer;
}
#historyh2 {
    text-align: left;
}
#langbtn {
    margin: 150px auto 0 auto;
    background: radial-gradient(circle, rgba(42, 155, 155, 1) 10%, rgba(13, 182, 255, 1) 65%, rgba(178, 178, 235, 1) 100%);
    width: 300px;
    height: 75px;
    border-radius: 10px;
    border-width: 5px;
    border-color: black;
    font-size: 200%;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
}
#langbtn:hover {
    transform: scale(1.2);
    transition: 0.3s;
    cursor: pointer;
}
