*{
    box-sizing: border-box;
    border: 0;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

html {
    position: relative;
    min-height: 100%;
  }

body{
    font-family: Montserrat, 'sans-serif';

    margin-bottom: 80px;
}

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

#logo{
    height: 24px;
}

#navbar{
    display: flex;
    justify-content: space-between;
    padding: 1.2em 4em;
    border-bottom: 1px solid rgb(245, 240, 240);
    align-items: center;
}

#navbar a:hover, footer a:hover{
    color: black;
}

footer #icons img:hover{
    background-color: #fff;
    border-radius: 50%;
    padding: 1px;
}

#icons, #links{
    display: flex;
}

#icons{
    gap: 0.7rem;
}

#links{
    gap: 2rem;
}

#content, #about-me{
    margin: 20px auto;
    text-align: center;
    padding: 5rem 0;
    width: 50%;
}

#container{
    border: 2px solid rgb(233, 230, 230);
    border-radius: 5%;
    width: 30%;
    margin: 50px auto 100px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#container h4, p{
    text-align: center;
    padding-bottom: 0.5rem;
}

#container a{
    color: #d30;
    text-decoration: underline;
}

#container a:hover{
    color: blue;
}

#num, #reps{
    border: 2px solid rgb(233, 230, 230);
}

#num, #calc, #reps, #reset{
    border-radius: 50px;
    padding: 10px;
}

#calc{
    padding: 12px;
    color: #fff;
    background-color: rgba(7, 230, 7, 0.932);
    font-size: medium;
}

#warning{
    color: red;
}

#reset{
    padding: 12px;
    color: #fff;
    background-color: rgba(255, 6, 6, 0.932);
    font-size: medium;
}

footer{
    display: flex;
    justify-content: space-between;
    padding: 1.2em 4em;
    align-items: center;
    background-color: #ccc;
    border: none;

    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}

/* Media Queries */ 

/* Extra Small devices (landscape phones, 320px and up) */
@media screen and (min-width: 320px) { 
    #icons h3{
        display: none;
    }
    #navbar{
        flex-direction: column;
        gap: 4vh;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #content, #about-me{
        width: 85%;
    }

    #container{
        width: 80%;
    }

    footer{
        flex-direction: column;
    }

}
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) { 
    #icons h3{
        display: block;
    }
    #navbar{
        flex-direction: column;
        gap: 2vh;
    }

    #links{
        gap: 10vw;
    }
    
    #content, #about-me{
        width: 70%;
    }

    #container{
        width: 70%;
    }

    footer{
        flex-direction: row;
    }  
}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) { 
    #navbar{
        flex-direction: row;
        justify-content: space-between;
        gap: 2vh;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    #links{
        gap: 4vw;
    }
    
    #content, #about-me{
        width: 60%;
    }

    #container{
        width: 60%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 
    #navbar {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    #content, #about-me{
        width: 50%;
    }

    #container{
        width: 50%;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { 
    body{
        font-size:larger;
    }

    #content, #about-me{
        width: 40%;
    }

    #container{
        width: 40%;
    }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) { 
    body{
        font-size: xx-large;
    }

    #navbar #logo{
        align-self:center;
    }

    #logo{
        height: 40px; 
    }

    #content, #about-me{
        width: 40%;
    }

    #container{
        width: 50%;
        padding: 3rem;
        gap: 2rem;
    }

    #num, #calc, #reps, #reset{
        border-radius: 500px;
        font-size: xx-large;
        padding: 15px 20px;
    }
    
    #calc{
        padding: 20px;
        color: #fff;
        background-color: rgba(7, 230, 7, 0.932);
    }
    
    #warning{
        color: red;
    }
    
    #reset{
        color: #fff;
        background-color: rgba(255, 6, 6, 0.932);
    }
}
