/* General adjustments for responsive design */
body {
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Main container adjustments */
.pdir {
    background-image: url("./resources/images/bgdna.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 90lvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: 2px solid #10427A;
    padding: 20px;
}

/* Content container */
.content_pdir {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%; /* Adjusted for responsiveness */
    /*max-width: 800px; /* Prevents it from growing too wide */
    padding: 20px;
    color: #10427A;
}

/* Title adjustments */
.title_pdir {
    color: #10427A;
    font-weight: 400;
    font-size: min(4vw, 50px); /* Scales dynamically with screen width */
    /*max-font-size: 50px; /* Limit maximum size */
    padding: 10px;
    line-height: 1.5em;
    margin-bottom: 30px;
    background-color: #82d2e6;
    text-align: center;
}

.search_results_pdir{
  
  
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: left;
    color: #06101b;
    font-weight: bold;
    font-size: large;
    background-color: #82d2e6;
    
    
  }

  .search_content_pdir{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .search_row_pdir{
    display: flex;
  
    flex-direction: column;
    
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    width: 100%;
  }

/* Responsive input container */
.search_input_pdir {
    height: 40px;
    width: 80%; /* Full width on smaller screens */
    max-width: 400px; /* Prevents from being too wide */
}

.search_button_pdir{
    background-color: #10427A;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 100px;
    border: none;
    border-radius: 10px;
    height: 28px;
    padding: 0 16px;
  }

  .container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
  }

  h1 {
    margin-bottom: 20px;
    color: #333;
  }
  
  form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  label {
    margin-bottom: 5px;
    color: #555;
    text-align: left;
  }
  
  input, select, button {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }
  
  select:invalid { color: gray; }

  button {
    background-color: #10427A;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #10427A;
  }

/* Footer adjustments */
.footer_container {
    width: 90%; /* Adjust for smaller screens */
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer {
    height: 10vh;
    background-color: #CFE6EF;
    display: flex;
    justify-content: center;  
  }

  .footer img {
    max-width: 285px;
    max-height: 55px;
  }
  
  .buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    width: 100%
  }

/* Responsive Buttons */
.buttons a {
    font-size: 16px; /* Smaller text on small screens */
    margin-left: 10px;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .title_pdir {
        font-size: 6vw; /* Slightly smaller for tablets */
    }

    .content_pdir {
        width: 100%; /* Use full width on tablets */
    }

    .footer_container {
        flex-direction: column; /* Stack elements */
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title_pdir {
        font-size: 8vw; /* Smaller for phones */
    }

    .search_input_pdir {
        width: 100%; /* Full width for smaller screens */
    }

    .buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
    }

    .buttons a {
        margin: 5px 0; /* Reduce spacing */
    }
}
