/* Add CSS styles for your web site here and use them in index.html. */
/* have to do both html and body because  when the page becomes scrollable 
then only the body is given a height so it can't just be html*/ 
html, body{
    background-color: #D8D4C8;
    color: #1D3557;
    margin:0; /* keeps the navigation bar touching the sides*/ 
    font-family: "Raleway", sans-serif;
    scroll-behavior: smooth;
}

.dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}


.raleway {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

h1{
    margin: 25px;
    font-family: "Dancing Script", cursive; /* overrides Raleway */
    font-weight: 800;
    font-size: 50px;
}

.nav-logo{
    height: 25px;
    margin-left: 10px;
    vertical-align: middle;
}

.navigation-bar{
    display:flex; /*since there are two children it adds both to the same line*/
    justify-content: space-between;
    margin: 0;
    background-color: #5A6E3C; 
    padding: 15px 30px;
    position: sticky; /*sticks to top when scrolling */
    top: 0;
    z-index: 1000; /* ensures the navigation bar stays on top and doesnt get covered*/
}

.navigation-bar ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    display:flex;
    gap: 20px; /*spacing between buttons*/
}

.navigation-bar a{
    text-decoration: none;
    color: #1D3557; /* Deep navy */
    font-weight: normal;
    font-size: 17px;
}

.nav-button{ /*designs the buttons*/
    background-color: #D8D4C8; 
    border-radius: 6px;
    padding: 3px 5px;
} 

#cookbook{
    display:flex;
    justify-content: space-between;
    height: 476px;
    width: 800px;
    background-color: #e3dfd3;
    border-radius: 15px;
    border: 2px solid #1D3557; 
    margin: 40px auto;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.6);
}

#note-section{
    font-size: 23px;
    width: 50%;
    margin-top: 10px;
    padding: 20px;
    box-sizing: border-box;  /* makes padding included in width */
}

#recipe-section{
    font-size: 23px;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;  /* makes padding included in width */
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.1); /* inside shadow on the right */
}

.cookbook-titles{
    font-weight: 450;
    text-align: center;
    padding: 8px;
    margin: 0px;
}

#save-button{
    background-color: hsla(215, 50%, 23%, 0.65);
    color:#e3dfd3;
    border-radius: 5px;
    padding: 5px 10px;
    border:none;
}

#save-button-container{
    width: 800px;         /* Match the .cookbook width */
    margin: 0px auto 0px auto; /* Top margin of 10px, auto for left/right, 0 for bottom */    /* Center the container under .cookbook */
    text-align: right;    /* Push button to the right inside the container */
}

#recipe-title{
    width:70%;
    padding: 8px;
    margin-bottom: 10px;
    background-color: #e3dfd3;
    border:none;
    color:#1D3557;
    font-size: 23px;
    font-family: "Raleway", sans-serif;
}

.ingredient-input, .note-input{
    width: 80%;
    padding:5px;
    margin: 5px 0;
    background-color: #e3dfd3;
    border:none;
    color:#1D3557;
}

.saved-recipe-title{
    margin: 15px;
    color:#1D3557;
    font-weight: 500; 
    font-size: 35px;
    margin-bottom:40px;
}

#my-recipe-list a{
    text-decoration: none;
    color: #1D3557; /* Deep navy */
    font-size: 17px;
}

.inspiration-title{
    margin: 15px;
    color:#1D3557;
    font-weight: 500; 
    font-size: 35px;
    /* padding-top: 20px; */
}

.inspiration-section{
    padding-top: 15px;
}

.inspiration-links {
    display: flex;
    justify-content: center;
    justify-content: space-around;
    gap: 2em;
    flex-wrap: wrap;
}

.inspiration-image {
    width: 200px; /* adjust as needed */
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: transform 0.2s ease;
    /* margin-bottom: 10px; */
    image-rendering: pixelated; /* This helps pixel art stay sharp */
}

.inspiration-item{
    display:flex;
    flex-direction: column;
    align-items: center;
}

.inspiration-label{
    margin-bottom: 0.5rem;
    font-size: 17px;
    font-weight: medium;
}

.inspiration-image:hover {
    transform: scale(1.05);
    border-color: #5A6E3C;
}

#auth-modal .modal-content,
#cookbook-modal .modal-content{
    background-color: #e3dfd3;
    font-family: "Raleway", sans-serif;
    color:#1D3557;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-button{
    position:absolute;
    top:8px;
    right:12px;
    background:none;
    border:none;
    font-size: 1.2rem;
    cursor: pointer;
}

#auth-modal input{
    border-radius: 5px;
    font-family: "Raleway", sans-serif;
    color:#1D3557;
    padding: 0.5rem;
    border: none;
    margin-bottom: 0.5rem;
}

#login-email, #signup-email{
    background-color: hsla(84, 29%, 33%, 0.25);
}

#login-password, #signup-password{
    background-color: hsla(215, 50%, 23%, 0.25);
}

#signup-name{
    background-color: hsla(30, 18%, 56%, 0.25);
}

.hidden {
  display: none !important;
}

#collaborative-cookbook-list a{
    text-decoration: none;
    color: #1D3557; /* Deep navy */
    font-size: 17px;
    margin-bottom: none; 
}


#cookbook-modal input{
    border-radius: 5px;
    font-family: "Raleway", sans-serif;
    color:#1D3557;
    padding: 0.5rem;
    border: none;
    margin-bottom: 0.5rem;
    background-color: hsla(215, 50%, 23%, 0.25);
}


.modal{
    position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* translucent dark blur overlay */
  backdrop-filter: blur(5px);     /* blur everything behind modal */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* ensure it's on top */
}

#collaborative-cookbook-title{
    margin: 15px;
    color:#1D3557;
    font-weight: 500; 
    font-size: 35px;
}
#open-cookbook-modal{
    background-color: hsla(84, 29%, 33%, 0.65);
    color: #e3dfd3;
    margin: 3px 16px;
    border-radius: 5px;
    padding: 5px 10px;
    border: none;
}

.contact-button {
  color: #e3dfd3;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 450;
  transition: background-color 0.3s ease;
}

#contact-email{
    background-color:hsla(215, 50%, 23%, 0.65);
}
#contact-github{
    background-color: hsla(30, 18%, 56%, 0.75);
}
#contact-linkden{
    background-color: hsla(84, 29%, 33%, 0.75);
}

.about-contact-section{
    margin: 15px;
}

.section{
    margin-bottom:40px;
}

#contact-me{
    font-size: 35px;
    font-weight: 500;
}

.contact-links{
    display:flex;
    gap: 12px;
    flex-wrap: wrap; 
}

#create-cookbook, #close-cookbook-modal-bottom{
    background-color: hsla(84, 29%, 33%, 0.75);
    color: #e3dfd3;
    border-radius: 5px;
    border:none;
    width:auto;
    padding: 5px 10px;
}

.site-footer {
  display: flex;
  justify-content: center; /* centers everything horizontally */
  align-items: center;     /* vertically align text and image */
  padding: 20px;
  background-color: #D8D4C8;
  gap: 10px; /* space between text and image */
}

.footer-logo {
  height: 35px;
}

#user-dropdown{
    position: absolute;
    top: 100%;         /* appear just below the button */
    right: 0;
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1000;
    display: none;  
}

#user-dropdown.hidden {
  display: none;
}

#user-dropdown.show{
    display: block;
}

#share-link-container {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  background: #e3dfd3;
  padding: 1em;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}


#cookbook-button-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}


#copy-link-button {
  background-color: hsla(84, 29%, 33%, 0.75);
  color: #e3dfd3;
  border-radius: 5px;
  border: none;
  padding: 5px 10px;
  font-family: "Raleway", sans-serif;
  cursor: pointer;
}

#cookbook-modal .modal-content > *:not(.close-button) {
  width: 100%;
  box-sizing: border-box;
}

#auth-container{
    position: relative;
}

#logout-btn{
    background-color: #1D3557; 
    border-radius: 6px;
    padding: 4px 6px;
    border: none;
    color:#D8D4C8

}
#close-cookbook-modal {
  position: absolute;
  top: 8px;
  right: 12px;
}

#show-signup, #show-login{
    color:#1D3557;
}

#login-btn, #signup-btn{
    border-radius: 6px;
    background-color: hsla(30, 18%, 56%, 0.75);
    padding: 5px 10px;
    border: none;
}

#open-add-collab-modal{
    background-color: hsla(30, 18%, 56%, 0.75);
    border:none;
    padding: 5px, 10px;
    border-radius: 6px;
    cursor: pointer;
}
.cookbook-header {
  display: flex;
  justify-content: flex-end;
  max-width: 800px; /* match #cookbook width */
  margin: 0 auto;   /* center like the cookbook */
  margin-bottom: 0.5rem;
}