* {

    font-family: monospace;
    /* font-size: 16px; */
    box-sizing: border-box;
    overflow: visible;
}

body {
    background-color: rgb(248, 248, 248);
    margin: 0;
    padding: 0;
}

nav#top-nav {
    align-items: center;
    justify-content: center;
    /* border: 1px solid black; */
    margin-bottom: 1rem;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 0px 5px grey;
}
h1.brand {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 1rem;
}

div.content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 50%;
    margin: auto;
    padding: 1rem;
    /* border: 1px solid rgb(39, 39, 39); */
    /* border-radius: 4px; */
    /* background-color: rgba(31, 207, 255, 1); */
    background-color: rgb(235, 235, 235);
}

.display-flex {
    display: flex;
}
/* style for main heading  */
h1 {
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

p#color-red {
    color: red;
    font-family: cursive;
}

form.form {
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

div.output, div.input-value {
    /* border: 1px solid black; */
    justify-content: center;
    align-items: center;
}

/* Adding some basic styling to button */ 
.btn { 
    text-decoration: none; 
    border: 1px solid rgb(48, 48, 48); 
    padding: 8x 20px; 
    margin: 0.5rem;
    background-color: rgb(248, 248, 248);
    color: rgb(2, 2, 2); 
    border-radius: 0px; 
    cursor: pointer; 
    outline: none; 
    transition: 0.1s all; 
} 
.btn:hover, #copy:hover {
    background-color: rgb(9, 161, 255);
    color: rgb(255, 255, 255);
}
/* Adding transformation when the button is active */ 
.btn:active, #copy:active { 
    transform: scale(0.98); 
    /* Scaling button to 0.98 to its original size */ 
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24); 
    /* Lowering the shadow */ 
} 

/* Adding some basic styling to input boxes */
.input {
    padding: 8px 20px;
    border: none;
    color: rgb(37, 37, 37);
    font-weight: 600;
    outline: none;
}

/* Style of conversion name in output */
span#conversion-name, span#enter-number {
    font-weight: 700;
    font-size: 20px;
    font-family: monospace;
}

/* addition style for output-value input */
#output-value {
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
    border: none;
    background-color: rgb(255, 255, 255);
}

/* style for copy input type button */
#copy {
    padding: 1px 6px;
    border: 1px solid rgb(48, 48, 48); 
    align-self: flex-start;
    background-color: rgb(248, 248, 248);
    color: rgb(2, 2, 2);
    cursor: pointer; 
    transition: 0.1s all;
}

div#output-value-wrapper {
    justify-content: center;
    border-top-right-radius: 3px;
    align-items: center;
    background-color: white;
}

/* Only for small phones  */
@media (max-width: 475px) {
    div.content {
        width: 90%;
    }
    div.output,div.input-value {
        flex-direction: column;
        margin: 0.1rem;
    }
    div#output-value-wrapper {
        flex-direction: column-reverse;
        margin-top: 1rem;
    }
    #input-value {
        margin-top: 1rem;
    }
    #copy {
        /* for top-right corner */
        align-self: flex-end;  
    }
}

/* Only for tablet and landscape phones */
@media (min-width: 476px) and (max-width: 720px) {
    div.content {
        width: 80%;
    }
}

@media (min-width: 721px) {
    div.content {
        width: 70%;
    }
}
