/* Global Reset and Base Styles */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3 {
    color: #444;
}

/* Forms */
form {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

input[type="text"], input[type="number"], input[type="password"], select, input[type="submit"], input[type="checkbox"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus, select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

input[type="submit"] {
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
    padding: 12px 20px;
    margin-top: 20px;
    width: auto;
}

input[type="submit"]:hover {
    background-color: #823cc4;
}

input::placeholder {
    color: #aaa;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, #745cac, #526fa5);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    padding-right: 15px;
}

nav a:hover {
    text-decoration: underline;
}

/* Profile Section */
.profile, .location-form, .location-list {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.location-list {
    background: none;
}

.profile-header img, .profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.profile-section h2, .profile-section h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Drinks */
.drink, .drink-card {
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.drink:hover, .drink-card:hover, .location-card:hover, .location-item:hover, .searchResult:hover, .friendRequest:hover, .friend-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Drink Form and List */
.favorite-drinks-grid, .drinksList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.drinkFace, .drink-name, .drink-temperature, .ingredient-item {
    font-size: 1rem;
    color: #555;
}

.drinkFace {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;

}

.drinkName {
    text-align: center; 
    margin: 10px 0; 
    font-size: 1.2em; 
    font-weight: bold; 
}




/* Buttons */
button {
    padding: 8px 16px;
    font-size: 14px;
    color: #ffffff;
    background-color: #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #823cc4;
}


#logo {
    height: 40px;
}
.hidden {
    display: none;
}

/*Friend cards*/
.friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.friendTitle {
    text-align: center;
}

/* Friend Search Form */
.friendSearchForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    padding: 15px;
    max-width: 400px;
    background-color: #fff; /* White background for contrast */
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.friendSearchForm label {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.friendSearchForm input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.friendSearchForm input[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.friendSearchForm input[type="submit"]:hover {
    background-color: #823cc4;
}

/* Search Results Container */
.searchResults {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Individual Search Result */
.searchResult {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 150px;
    text-align: center;
}

.profile-section ul {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap if they overflow */
    gap: 15px; /* Add spacing between items */
    padding: 0;
    list-style: none;
}

.friend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 150px;
    text-align: center;
}


.userProfilePicture {
    width: 80px; /* Smaller image */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #007bff; 
}

.userName {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}

/* Empty Results Message */
.emptyResults {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #777; /* Subtle gray */
    margin-top: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.profile-header h1, .profile-header h2 {
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .profile, .location-form, .location-list {
        padding: 10px;
    }
}


.owner-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Makes the image circular */
    margin-right: 10px;
  }
  
  .owner-info {
    display: flex;
    align-items: center;
  }

/* Home Layout */
.home-container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
  }
  
  .ads-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 50px;
  }
  
  .ad-image {
    width: 100%;
    max-width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Section Styling */
  .home-section {
    margin-bottom: 20px;
  }
  
  .drinks-grid,
  .locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .drink-card,
  .location-item,
  .location-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .location-item {
    margin-bottom: 20px;
  }
  
  .owner-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .logoImg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    padding-top: 30px;
  }
  
  .profile-header {
    position: relative; 
}

.upgrade-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}

.upgrade-button {
    padding: 10px 20px;
    background-color: #ff9800; 
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.upgrade-button:hover {
    background-color: #f57c00;
}

.drink-card button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.drink-card button:hover {
    background-color: #823cc4;
}


.drink-ingredients {
    list-style-type: disc;
    margin: 0; 
    padding: 0; 
    padding-left: 20px; 
    font-size: 14px; 
    color: #333;
}

.ingredient-item {
    margin-bottom: 5px; 
    font-weight: 400; 
}

.docTitle {
    text-align: center;
}

.endpoint {
    margin-bottom: 20px;
    padding-left: 20px;
}

.endpoint p {
    padding-left: 20px;
}
.endpoint h2 {
    margin: 10px 0;
}
.endpoint p {
    margin: 5px 0;
}
.endpoint .description {
    font-style: italic;
}
