@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');

* {
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #9bbfdb;
}

.title {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 30px;
    color: white;
}

.user-form{
    margin: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    text-align: center;
    padding: 20px;
    border-radius: 30px;
    box-shadow: 14px 14px 20px #74aad4;
    color: white;
}

input {
    background-color: #f3f2f2;
    border: none;
    border-radius: 20px;
    padding: 4px 20px;
    margin-bottom: 2px;
    box-shadow: inset 6px 6px 6px #cbced1, inset -6px -6px 6px white;
}

[type=number] {
    width: 100px;
}

#ingredient-name {
    width: 220px;
}

#measurement-type {
    width: 100px;
}

.form-group {
    margin: 2px;
}

#new-servings {
    margin-bottom: 15px;
}

.form-button {
    text-align: center;
}

button {
    border-radius: 10px;
    border: none;
    padding: 8px;
    box-shadow: 6px 6px 6px #74aad4;
}

button:hover {
    cursor: pointer;
    box-shadow: none;
}

#convert {
    width: 100px;
    margin-top: 15px;
}

.error-message {
    font-size: medium;
    color: rgb(245, 0, 0);
    display: none;
}

.ingredient-lists {
    margin: auto;
    width: 100%;
}

#original-recipe, #converted-recipe {
    height: 300px;
    border: none;
    margin: 0.5%;
    margin-bottom: 25px;
    padding-top: 5px;
    text-align: center;
    background-color: rgb(255, 255, 255);
    overflow-y: scroll;
}

#original-recipe-list, #converted-recipe-list {
    list-style-type: none;
    text-align: left;
    margin: 0;
    margin-left: 7px;
    margin-right: 7px;
    padding: 5px;
    padding-left: 7px;
    padding-right: 7px;
}

#original-recipe-list > li, #converted-recipe-list > li {
    display: table;
    padding: 6px;
    border-bottom: solid 1px rgb(207, 207, 207);
}

li > label {
    display: table-cell;
    width: 100%;
}

li:hover {
    background-color: rgb(248, 247, 247);
}

.delete-button {
    display: inline-block;
    text-align: right;
    box-shadow: none;
}

.delete-button:hover {
    background-color:  #9bbfdb;
}

.reset-button {
    text-align: center;
    clear: both;
}

#reset {
    width: 100px;
    margin-bottom: 15px;
}

.show {
    display: block;
}

@media (min-width: 600px) {
    #ingredient-name {
        width: 300px;
    }

    #original-recipe, #converted-recipe {
        width: 48%;
        height: 550px;
        float: left;
    }

    #original-recipe {
        margin-left: 1.5%;
    }
}

@media (min-width: 800px) {
    #ingredient-name {
        width: 350px;
    }
    
    .ingredient-lists {
        width: 80%;
    }
  
    .user-form {
          width: 60%;
      }
  
}

@media (min-width: 1200px) {
    .user-form {
          width: 40%;
      }
}


#article {
    padding: 5% 10% 0;
}


#article p {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}