html {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
/* header */
#header {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 100vw;
    background: white;
    top: 0;
    box-shadow: 0px 6px 6px 0px rgba(0, 0, 0, 0.15);
    opacity: .95;
    right: 0;
}

span.headerInfo {
    color: rgb(38, 7, 50);
    font-weight: 100;
    height: 100%;
    font-size: 25px;
    width: 50%;
}
/* header */

/* main-container */
#main-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100vw;
    height: calc(100vh - (40px + 40px));
    overflow: auto;
}


    /* converter */
    div.converter {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        background: rgb(38, 7, 50);
        color: white;
        width: 50%;
        height: 20%;
        margin-top: 6%;
        box-shadow: 0px 0px 45px -18px rgba(0, 0, 0, 1);
        /* border: 2px solid orange; */
        box-sizing: border-box;
        border-radius: 25px;
    }

    div.containerTitle {
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: flex-start;
        font-size: 25px;
        font-weight: 900;
    }

    div.unitSelect {
        display: flex;
        justify-content: space-evenly;
        width: 100%;
    }

    div.bottomInfo {
        width: 90%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        font-size: 25px;
    }
    /* converter */

    /* records */
    div.records {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: space-between;
        align-items: flex-start;
        width: 50%;
        height: 30%;
        overflow-y: auto;
        box-sizing: border-box;
    }

    div.savedConversions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        height: 17%;
        width: 49%;
        margin-top: 2%;
        padding: 25px 20px 25px 28px;
        box-sizing: border-box;
        border-radius: 13px;
        background-color: rgb(229, 229, 229);
        color: rgb(100, 100, 100);
        align-items: center;

        font-size: 20px;
    }

    div.recordsTitle {
        width: 50%;
        font-size: 25px;
        margin-top: 5%;
        height: 5%;
        color: rgb(120, 120, 120);
        font-weight: 900;
    }
    /* records */
/* main-container */

/* Buttons&Inputs */
button,
input[type="submit"],
input[type="reset"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

button.conversionIcon {
    font-size: 25px;
    width: 13vw;
}

    /* input number */
    input[type=number] {
        height: 40px;
        font-size: 20px;
        width: 15vw;
        color: white;
        background: #22222200;
        border: none;
        text-align: right;
        border-bottom: 2px solid white;
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 5px;
    }
    /* input number */

    /* select unit */
    select {
        height: 100%;
        font-size: 20px;
        width: 15vw;
        color: white;
        background: #22222200;
        border: none;
        border-bottom: 2px solid white;
    }

    select::-webkit-outer-spin-button,
    select::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    /* select unit */
/* Buttons&Inputs */

/* footer */
#footer {
    position: fixed;
    display: flex;
    justify-content: space-evenly;
    bottom: 0;
    height: 40px;
    width: 100vw;
    background: rgb(38, 7, 50);
    text-align: center;
    color: white;
    right: 0;
}

div.footerInfo {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

/* footer */

/* width <= 1200px */
@media only screen and (max-width: 1200px) {
    div.unitSelect {
        display: flex;
        justify-content: space-evenly;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 10%;
    }
    select {
        width: 35vw;
    }
    input[type=number] {
        width: 35vw;
    }
    button.conversionIcon {
        display: flex;
        font-size: 25px;
        width: 90%;
        align-items: baseline;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    div.savedConversions {
        width: 100%;
    }
}
/* width <= 900px */
@media only screen and (max-width: 900px) {
    #header {
        align-items: flex-start;
    }
    span.headerInfo {
        width: 100%;
        margin-left: 10%;
    }
    div.converter {
        margin-top: 9%;
        width: 90%;
        height: 30%;
    }
    div.records {
        width: 90%;    
    }
    select {
        width: 65vw;
    }
    input[type=number] {
        width: 65vw;
    }
    div.footerInfo {
        width: 70%;
    }
    div.recordsTitle {
        width: 90%;
    }
}

/* width <= 500px */
@media only screen and (max-width: 500px) {
    div.converter {
        margin-top: 16%;
    }
    div.footerInfo {
        font-size: 14px;
        width: 90%;
    }
    div.savedConversions {
        margin-top: 4%;
    }
}