* {
    margin: 0;
    padding: 0;
}

body, html {
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Return to home button */

.return-home {
    background-color: rgba(66, 66, 66, 0.075);
    text-shadow: 4px 4px 2px rgba(255, 255, 255, 1);
    border-radius: 2000px;
    height: 100px;
    width: 100px;
    position: fixed;
    bottom: 3%;
    left: 1.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1s;
    z-index: 100;
}

.return-home > img {
    height: 70px;
    opacity: 0.2;
    padding-bottom: 5px;
    transition: 1s;
}

.return-home > img:hover {
    opacity: 0.5;
}

nav {
    position: fixed;
    background-color: rgb(245, 245, 245);
    width: 100%;
    z-index: 100;
    height: 100px;
    -webkit-box-shadow: 0px 6px 26px -10px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 6px 26px -10px rgba(0,0,0,0.75);
    box-shadow: 0px 6px 26px -10px rgba(0,0,0,0.75);
    margin-bottom: 1000px;
}

nav > ul {
    padding-top: 36px;
    display: flex;
    justify-content: space-around;
    list-style: none;
}

li {
    height: 64px;
    cursor: pointer;
}

li:hover {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.267);
    border-bottom: 1px solid black;
}

.current {
    font-weight: 600;
    border-bottom: 1px solid black;
}

a {
    text-decoration: none;
    color: black;
}



.container__binario-decimale {
    text-align: center;
    margin-top: 150px;
}

.convert {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.convert > p {
    margin-right: 15px;
}

.convert > input {
    padding: 5px;
    outline: none;
    border: 1.5px solid rgba(0, 0, 0, 0.205);
    border-radius: 10px;
}

.convertBtn {
    margin-top: 20px;
    padding: 15px;
    font-size: 1em;
    border-radius: 100px;
    outline: none;
    border: none;
    background-color: rgb(0, 174, 255);
    color: white;
    cursor: pointer;
    transition: 0.5s;
}

.convertBtn:hover {
    transform: rotateZ(360deg);
    background-color: rgb(82, 82, 255);
}

.cleanBtn {
    background-color: orange;
    margin-top: 20px;
    padding: 15px;
    font-size: 1em;
    border-radius: 100px;
    outline: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.5s;
}

.cleanBtn:hover {
    background-color: rgb(209, 136, 0);
}

.result {
    height: 75px;
    width: 50%;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 50%;
    margin-top:20px;
    transform: translate(-50%);
    -webkit-box-shadow: 0px 4px 66px 0px rgba(0,0,0,0.31);
    -moz-box-shadow: 0px 4px 66px 0px rgba(0,0,0,0.31);
    box-shadow: 0px 4px 66px 0px rgba(0,0,0,0.31);
}

/* --------------- SOMMA BINARI ----------------- */

.container__binario-binario {
    margin-top: 200px;
}

.container__binario-binario {
    text-align: center;
}


/* --------------- SOTTRAZIONE BINARI ----------------- */

.container__sottrazione-binario {
    margin-top: 150px;
}

.container__sottrazione-binario {
    text-align: center;
}

/* --------------- MOLTIPLICAZIONE BINARI ----------------- */

.container__moltiplicazione-binario {
    margin-top: 150px;
}

.container__moltiplicazione-binario {
    text-align: center;
}

footer {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: azure;
    margin-top: 35px;
}

/* GRAY */
.container__binario-gray {
    margin-top: 150px;
}

.container__binario-gray {
    text-align: center;
}

.container__gray-binario {
    margin-top: 150px;
}

.container__gray-binario {
    text-align: center;
}

/* BCD */

.container__decimale-bcd {
    margin-top: 150px;
}

.container__decimale-bcd {
    text-align: center;
}

.container__bcd-decimale {
    margin-top: 150px;
}

.container__bcd-decimale {
    text-align: center;
}

/* EBCDIC */

.container__decimale-ebcdic {
    margin-top: 150px;
}

.container__decimale-ebcdic {
    text-align: center;
}

.container__ebcdic-decimale {
    margin-top: 150px;
}

.container__ebcdic-decimale {
    text-align: center;
}

/* CP2 */

.container__decimale-cp2 {
    margin-top: 150px;
    text-align: center;
}

.container__cp2-decimale {
    text-align: center;
}

.container__decimale-cp2 {
    margin-top: 150px;
}

.container__cp2-decimale {
    text-align: center;
}

.coming-soon-section {
    text-align: center;
}

#coming_soon {
    font-size: 40px;
    margin-top: 200px;
}

#loader {
    height: 300px;
    opacity: 0.5;
}

@media only screen and (max-width: 594px) {
    .result, h1 {
        font-size: 26px;
    }

    .result {
        width: 60%;
    }
}

@media only screen and (max-width: 414px) {
    .convert {
        flex-direction: column;
    }
    
    .convert, p {
        font-size: 15px;
        margin-bottom: 10px;
    }

    nav {
        font-size: 0.8em;
    }

    .return-home {
        height: 63px;
        width: 63px;
        bottom: 3%;
        left: 4%;
    }
    
    .return-home > img {
        height: 50px;
        opacity: 0.3;
    }
}