:root {
    --blue: #3178c6;
    --light-blue: #e3f2fd;
    --dark-text: #1a1a1a;
    --gray: #f5f5f5;
}

nav {
    display: flex;
    justify-content: center;
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 999;
    font-family: system-ui, Inter, sans-serif;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
    
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-left: auto; /* Pushes the links to the right */
}

.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--blue);
}

#auth-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

#auth-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark-text);
  padding: 6px 12px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  transition: background 0.3s;
}

#auth-links a:hover {
  background-color: var(--light-blue);
}

#user-dropdown {
  display: flex;
  align-items: center;
}

#profile-btn {
  background-color: white;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 1000;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: var(--dark-text);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: var(--gray);
}

@media (max-width: 768px) {
  #auth-links {
    flex-direction: column;
    align-items: flex-start;
  }

  #user-dropdown {
    width: 100%;
    padding: 10px 0;
  }

  #profile-btn {
    width: 100%;
    text-align: left;
  }

  .dropdown-menu {
    top: 50px;
    right: 10px;
  }
}


body {
    font-family: "Didact Gothic", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #d7e4fb;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}


#githublink, .recipe-card a {
    text-decoration: none;
    color: #458cdd;
}

footer {
    background-color: #24292f;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: absolute;
    width: 100%;
    bottom: 0;
}

input, select {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}


#submit, #confirm, #edit, #signup, #login {
    border-radius: 5px;
    cursor: pointer;
    margin: auto;
    border: 2px solid;
    font-size: 1rem;
}
#confirm, #signup {
    border-color: #1e8b54;
    background-color: rgb(72, 228, 139);
}
#edit, #login{
    border-color: #1b4d6e;
    background-color: rgb(133, 176, 225);
}
#confirm:hover, #signup:hover {
    background-color: rgb(68, 186, 119);
}
#edit:hover, #login:hover {
    background-color: rgb(83, 139, 209);
}

.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-text);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    padding: 10px 0;
  }

  .nav-links a {
    padding: 10px 20px;
    display: block;
  }
}

button, a, select {
  cursor: pointer
}
/*
   Copyright 2025 Rihaan Meher

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
