* {
  margin: 0;
  padding: 0;
}

html, body{
    height: 100%;
    font-size: 18px;
}

main{
    padding: 30px;
    background-color: #F5F1E6;  
    min-height: 100vh;
}



/* flex-row classes*/
.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column{
    display: flex;
    flex-direction: column;
}

.flex-centered{
    align-items: center;
    justify-content: center;
}

.flex-align-start{
    align-items: flex-start;
}

.flex-align-end{
    align-items: flex-end;
}

.flex-spaced{
    justify-content: space-evenly;
}


.flex-column div{
    margin: 10px none;
    padding: 10px none;
}




/*button styles*/
.big-button {
    width: 200px;
    height: 70px;
    font-weight: 300px;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    background-color: #d6dae9;
    font-family: 'Red Hat Display', sans-serif;
}

.big-button:hover{
    background-color: #535d83;
    color: #C5DDCC;
}

.big-button a:any-link{
    color:#F5F1E6;
    text-decoration: none;
}

.yes-button{
    color: #F5F1E6;
    background-color: #376D48;
    border: none;
}

.yes-button:hover{
    background-color: #135728;
    
}

.no-button{
    color: #F5F1E6;
    background-color: #5B0607;
    border: none;
    
}

.no-button:hover{
    background-color: #330506;
}









fieldset div label{
    margin-bottom: 40px;
}
div label{
    margin-bottom: 40px;
}



#url-input{
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    font-size: 1rem;
}
/* #text-input{
    display: none;
} */

#text-input-area{
    display:none;
}


/* general styles to get started */

 h1 {
    font-family: "Orelega One", serif;
    font-weight: 400;
    font-size: 2rem;
    color: #364155;
 }

 h2{
    font-family: 'Red Hat Display', sans-serif;
    font-size:1.4rem;
    color: #364155;
 }

 p{
    font-family: 'Red Hat Display', sans-serif;
    font-size:1rem;
    color: #364155;
 }


 li {
    list-style-position: outside;
}

.ingredients li{
    list-style-type:disc;
}

.directions li{
    list-style-type: decimal;
}


/* buttons */
button[type='submit']{
    background-color: #A8AEC6;
    border: 2px solid #364155;
    color: #364155;
    border-radius: 5;
    align-self: center;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 18;
    font-weight: 600;
    width: 100px;
    height: 25px;
}

button:hover{
    cursor: pointer;
}






/* header styles */
header{
    color: #364155;
    text-align: center;
}

header h1 {
    font-family: "Orelega One", serif;
    font-weight: 400;
    width: 100vw;
    height: 10vh;
    line-height: 10vh;
    background-color: #C2785F;
    padding: 10px auto;
}

nav{
    height: 50%;
    width: 100vw;
    background-color: #A8AEC6;
    font-family: "Red Hat Display", sans-serif;
    font-weight: 600;
    opacity: 100%;
    font-size: 12px;
}


nav.flex-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav a:any-link{
    color: #364155;
    font-size: 1.2vw;
    text-decoration: none;
    padding: 100px auto;
    width: 50%;
    height: 3em;
    line-height: 3em;
    text-align: center;
    align-items: center;
}

nav a.current-page:any-link{
    color: #C5DDCC;
    /* background-image: url(Vector-2.svg); 
    background-size: cover;
    background-position: center; /* Centers the image within the container 
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-color: #364155;
    border-radius: 5px;
}




/* forms */
fieldset{
    text-decoration: none;
    border: none;
    width:25vw;
}

input, textarea{
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1rem;
    font-weight: 400px;
}

textarea{
    border-radius: 10px;
    font-size: 1rem;
}




legend {
    font-family: "Orelega One", serif;
    color: #C2785F;
    font-size: 1.2rem;
    border-bottom: 3px solid #C2785F;
    text-align: left;
    margin-bottom: 5px;
}

label {
    font-family: "Red Hat Display", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-wrap: wrap;
    margin-bottom: 5px;
}

label[for="recipe-category"]{
    font-family: "Orelega One", serif;
    color: #C2785F;
    font-size: 1.2rem;
    border-bottom: 3px solid #C2785F;
    text-align: left;
}



.check-group{
    display: flex;
    flex-direction: column;
    width: 50%;
}

fieldset:has(.check-group){
    display: flex;
}

#input-inputs{
    flex:1;
}

#recipe-check-groups{
    width: 100%;
}

#input-text-tips{
    width:60%;
    margin: 0 auto 10px;
    border: 2px solid #364155;
}


/*   Loader style   */
.loader {
  border: 8px solid #A8AEC6; /* Light grey */
  border-top: 8px solid #364155;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin-top: 100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#loader-and-message{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}




.results-box{
    border: dashed 2px gray;
    padding: 50px;
}

#results, #print-preview{
    padding: 20px;
    width: 50rem;
}


#results *{
    font-family: Arial, Helvetica, sans-serif;
    color: #364155;
    text-align: left;
    line-height: 1.5em;
}

#results>h2{
    font-family: "Red Hat Display";
}

#results li{
    list-style-position: inside;
}

#results h1{
    font-size: 1.4rem;
    font-weight: 600px;
}

#print-preview img{
    margin-top: 30px;
    border: 1px solid darkgray;
    width:80%;
    box-shadow: lightgray 5px 5px 25px;
}



/* upload page  */

.flex-row.upload-page-flex{
    justify-content: space-around;
}

.flex-row#upload-recipe-results{
    align-items: flex-start;
    justify-content: space-evenly;
}


#confirm-results{
    align-self: center;
}

#recipe-input-area{
    flex: 2;
}


#recipe-input-area button, #cookbook-section-dropdown button{
    margin: 10px;
    margin-left: auto;
}


/* edit page */

#formatButton{
    padding: 20px;
}


.flex-column#edit-page-flex{
    align-items: flex-end;
    width: 70vw;
    margin-left: auto;
    margin-right: auto;
}

/*editor*/
#editor, div[role="toolbar"]{
    background-color: white;
    width: 100%;

}

div[role="toolbar"]{
    background-color: #A8AEC6;
}

#editor *{
    font-family: arial;
}



/* format page */

label img{
    width: 100px;
    height: 150px;
    border: 2px solid gray ;
}

/* input[type="radio"] label img:hover{
    box-shadow: #364155 3px 3px 40px;
    
} */

.format-option{
    width: 200px;
    height: 200px;
    text-align: center;
}

.format-option img{
    margin:auto;
}

.format-option input[type="radio"]{
    appearance: none;
}

.format-option input[type="radio"]:hover + label{
    /* background-color: #535d83;
    border: 5px solid #535d83;
    color: white; */
    cursor: pointer;
}

.format-option input[type="radio"]:checked + label{
    /* background-color: #376D48;
    color: white;
    border: 5px solid #376D48; */
    border: 2px solid#364155;
    border-radius: 5px;
}
.format-option input[type="radio"]:hover:checked + label{
    /* background-color: #376D48;
    color: white;
    border: 5px solid #376D48; */
    border: 2px solid#364155;
    border-radius: 5px;
}

fieldset.flex-row.formatting{
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
}

#box-of-format-options{
    width: 50vw;
    height: 80vh;
    overflow: auto;
}

#cookbook-section-dropdown label{
    margin-bottom: 10px;
}

#cookbook-section-dropdown select{
    height: 30px;
    font-family: "Red Hat Display", sans-serif;
    font-weight: 400;
    font-size: 1rem;
}


/* responsive*/

@media screen and (max-width: 768px) {
  /* CSS rules for screens with a maximum width of 768px (e.g., tablet landscape or smaller) */
}