/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
gmp-map {
    height: 60vh;
    width: 100%;
    border: rgba(0, 0, 0, 0.2) 5px solid;
    border-style: groove;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 1.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

h1, h2, h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.navbar {
    background-color: #343a40;
    color: white;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.navlink {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navlink:hover {
    background-color: #495057;
}

.search-bar {
    z-index: 1000;
    background-color: white;
    margin-top: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-input {
    padding: 12px;
    width: 80%;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.submit-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0069d9;
}

.comment-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.result-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.comment-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    transition: background-color 0.2s;
}

.comment-item:hover {
    background-color: #e9ecef;
}

.search-results {    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.moment-focus {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

form textarea, form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-container {
    margin-bottom: 15px;
}

.post-form {
    margin-top: 20px;
    text-align: center;
}

.error {
    color: #dc3545;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #dc3545;
    border-radius: 6px;
    background-color: rgba(220, 53, 69, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.review-input {
    margin-bottom: 20px;
}

.form-content {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.review-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}

.review-button:hover {
    background-color: #0069d9;
}

.flash-message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-weight: 500;
}

.flash-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.flash-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.profile-img {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
}

/* Styling for the navigation bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #343a40;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.navlink {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.navlink:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.brand {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
}

.logout {
    background-color: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
}

.logout:hover {
    background-color: rgba(220, 53, 69, 0.4);
}

/* Styling for the All Moments button */
.link-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.link-button:hover {
    background-color: #0069d9;
}
