/* Media query for tablets */
@media (min-width: 768px) {
    .grid-container-flex {
      font-size: 1.2rem;
    }
  }
  
  /* Media query for desktops */
  @media (min-width: 1024px) {
    .grid-container-flex {
      font-size: 1.7rem;
    }
  }
  
  
  h1 {
    color: #262626;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.3em;
    margin-left: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  h2 {
    color: #262626;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1em;
    margin-left: 5px;
    margin-top: -7px;
    margin-bottom: 2px;
    text-align: center;
  }
  
  p { 
    color: #262626; 
    font-family:'Libre Franklin', sans-serif; 
    font-size: 0.8em;
    margin-bottom: 20px;
    margin-left: 20px;
  
  }
  
  .tags {
    margin-left: 10px;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px; 
  }
  
  .tags span {
    background: linear-gradient(20deg, #FF7900, #FFB570, #FF97B0);
    color: black;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 1em;
    white-space: nowrap; 
    font-family: 'Libre Franklin', sans-serif;
  }
  
  .profile-tags {
  flex: 1; 
      min-width: 300px;
      margin-top: 5px;
  }
  
  body {
    background-image: #f1f1f1;
      margin-left: 5px;
      margin-right: 5px;
      display: flex;
      justify-content: center; 
      align-items: center; 
      background-size: cover; 
      background-position: center; 
      text-align: center; 
  
  }
  
  .grid-container-flex {
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: #262626;
    align-items: center;
  }
  
  * {box-sizing: border-box}
  
  .profile-container {
    display: flex;
      flex-wrap: wrap; 
      justify-content: space-between; 
      align-items: flex-start; 
      gap: 20px; 
      max-width: 1000px; 
      margin: 0 auto; 
  }
  
  @media (max-width: 768px) {
    .profile-container {
        flex-direction: column; 
    }
  }
  
  input[type="text"], 
  textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  

  .nextbtn {
    background-color: #FF7900;
    color: black;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    font-family:'Libre Franklin', sans-serif; 
      font-size: 1.2em;
      border: 1.5px solid black;
      margin-top: 30px;
    }
    
    .nextbtn:hover {
    opacity:1;
      background-color: #262626;
      color: white;
    }
  
    .profile-photo {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 12px; 
      display: block;
    }

    .photos {
      position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 25px;
    }
  
    .photo-upload {
      position: relative;
      margin-top: 15px; 
      margin-top: 15px;
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
  } 
  
  .photo-box {
    width: 200px; 
    height: 200px; 
    max-width: 1000px; 
    max-height: 1000px; 
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
  }
  

  .photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Adjust size for tablets */
  @media (min-width: 768px) {
    .photo-box {
        width: 300px;
        height: 300px;
        max-width: 400px; 
        max-height: 400px;
    }
  }
  
  /* Adjust size for desktops */
  @media (min-width: 1024px) {
    .photo-box {
        width: 400px;
        height: 400px;
        max-width: 500px; 
        max-height: 500px;
    }
  }
  
  
  
  .profile-details {
    flex: 1; 
    min-width: 300px;
    margin-top: 0px;
  }

  
  .photo-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
  }

  .bio-section {
    width: 100%;
    height: 150px;
    padding: 20px;
    margin: 0px 10px 30px 10px;
    border-radius: 12px;
    display: inline-block;
    background: white;
    font-size: 1em;
    font-family:'Libre Franklin', sans-serif; 
    margin-bottom: 40px;
    }
  
    .bio-section h1 {
      color: #262626;
      font-family: 'Libre Franklin', sans-serif;
      font-size: 1.3em;
      margin-left: 5px;
      margin-top: 10px;
      margin-bottom: 10px;
    }
    
    .bio-section textarea {
      width: 100%;
      padding: 20px;
      font-size: 0.7em;
      font-family: 'Libre Franklin', sans-serif;
      border: 1.5px solid #ccc;
      border-radius: 12px;
      resize: vertical;
      background-color: #fff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .bio-section textarea:focus {
      border-color: #262626;
      outline: none;
      background-color: #f9f9f9;
    }
  
    

    .nextbtn {
    background-color: #FF7900;
    color: black;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    font-family:'Libre Franklin', sans-serif; 
      font-size: 1.2em;
      margin-top: 10px;
      margin-bottom: 10px;
    }
    
    .nextbtn:hover {
    opacity:1;
      background-color: #262626;
      color: white;
    }

    .container {
      max-width: 500px;
      margin: auto;
      padding: 20px;
      background: white;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  ul.navigation {
    position: fixed;         
    bottom: 0;              
    left: 0;
    right: 0;
    background-color: #262626;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.8em;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 1000;        
  }
    
    li {
      float: center;
    }
    
    li a {
      display: block;
      color: white;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
      font-weight: bold;
    }
    

    li a:hover {
      color: #FFB570;
    }
  
    .active {
      color: #FFB570;
    }
  
    label {
      display: block;
      margin: 10px 0 5px;
  }
  
  .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto 20px auto;
    max-width: 1000px; 
    width: 100%;
  }
  
  .header-bar h1 {
    margin: 0; 
    font-size: 1.5em;
    font-family: 'Libre Franklin', sans-serif;
    color: #262626;
  }
  
  .settings-link i {
    font-size: 30px;
    color: #262626;
    transition: color 0.3s ease;
  }
  
  .settings-link i:hover {
    color: #FF7900;
  }

  main {
    padding-bottom: 80px; 
  }

  .submit-row {
    display: flex;
    justify-content: center; 
    gap: 10px; 
}