body{
    background-image: url(img/sushi.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
}

.container_main{
    background-color: rgba(39, 36, 30, 0.642);
    width: 35%;
    height: 770px;
    display: flex;
    flex-direction: column;
    margin: 20px;
    padding: 40px;  
    border-radius: 20px; 
    border: 3px solid #f97a36;
    margin-top: 150px;
}

a:hover{
    text-transform: uppercase;
    font-weight: bold;
}
input{
    font-size: 18px;
}

.text{
    font-size: 25px;
}
.block > p{
    font-weight: bold;
}
form{
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-weight: 400;
}

input{
    width: 80%;
    padding: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

h1{
    font-family: 'Montserrat', sans-serif;
    align-self: center;
    color:#f97b36;
}

h2{
    padding-top: 35px;
    font-family: 'Montserrat', sans-serif;
    align-self: center;
    color:#f97b36;
    font-size: 25px;
}

.container_fields{
    display: flex;
    justify-content: space-around;
}

#addTip{
    padding: 7px;
    background-color: #9F5255;
    border: none;
    border-radius: 8px;
    font-size: 20px;
}
#addTip:hover{
    background-color: #f48144;
    cursor: pointer; 
    color: white;
}
#calculate, #reset{
    padding: 7px;
    margin-top: 10px;
    background-color: #9F5255;
    border: none;
    border-radius: 8px;
    font-size: 20px;
}

#calculate:hover{
    background-color: #f48144;
    cursor: pointer;
    color: white;
}

.blocks{
    
    justify-content: space-between;
    margin-top: 10px;
}

.block{
    margin: 10px;
    padding: 10px;
   
    background-color: #f97a36;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    border-radius: 8px;
    font-size: 18px;
}

#tip{
    display: none;
    font-family: 'Montserrat', sans-serif;
}

/* Header and Footer*/

nav{
    background-color: #282828;
}

/*Footer*/
#subscribe{
    background-color: #9F5255;
}
#subscribe:hover{
    background-color: #f48144;
    color: white;
}
#footer_title{
    color: #f48144;
    font-size: 25px;
}
#footer_title:hover{
    font-size: 26px;
    text-decoration:underline;
}

#main_menu:hover{
    color: #f48144;
}

@media all and (max-width:1200px){
    h1{
        font-size: 20px;
    }
    .container_main{
        width: 60%;
        height: auto;
    }
    .blocks{
        flex-direction: column;
        margin-top: 20px;
    }
    .block{
        margin-top: 5px;
    }
    .container_fields{
        flex-direction: column;
    }

    #footer_title{
        color:  #9F5255;
        font-size: 25px;
        font-weight: 700;
    }
  #calculate, #reset, #addTip{
    color: black;}
}

@media all and (max-width:800px){
    h1{
        font-size: 20px;
    }
    .container_main{
        width: auto;
        height: auto;
    }
    .blocks{
        flex-direction: column;
        margin-top: 20px;
    }
    .block{
        margin-top: 5px;
    }
    .container_fields{
        flex-direction: column;
    }

    #footer_title{
        color:  #9F5255;
        font-size: 25px;
        font-weight: 700;
    }
}