.pin-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Ensure 5 columns */
    gap: 16px; /* Space between items */
    padding: 16px;
    max-width: 100%; /* Ensure the container fits within the viewable screen */
    box-sizing: border-box;
}

.pin {
    max-width: 360px; /* Restrict maximum width */       
    margin: 5px; /* Reduce spacing between pins */
    border: 1px solid #ddd; /* Optional: Add a border */
    padding: 10px; /* Optional: Add padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
    overflow: hidden; /* Hide overflowing content */
    width: 100%;
    height: auto;
    background-color: #f0f0f0;
    border-radius: 16px;
    box-sizing: border-box;
}

.pin img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.transcript {
    display: none;
    white-space: normal; /* Allow normal wrapping when expanded */
}

.show-more {
    color: white;
    background-color: #007bff;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.dots {
    white-space: nowrap; /* Prevent word splitting */
}

/* Responsive design for smaller screens */
@media (max-width: 1200px) {
    .pin-container {
        grid-template-columns: repeat(4, 1fr); /* Shrink to 4 columns */
    }
}

@media (max-width: 900px) {
    .pin-container {
        grid-template-columns: repeat(3, 1fr); /* Shrink to 3 columns */
    }
}

@media (max-width: 600px) {
    .pin-container {
        grid-template-columns: repeat(2, 1fr); /* Shrink to 2 columns */
        gap: 12px; /* Reduce gap for smaller screens */
        padding: 12px; /* Reduce padding for smaller screens */
    }
}

@media (max-width: 400px) {
    .pin-container {
        grid-template-columns: 1fr; /* Shrink to 1 column */
        gap: 8px; /* Reduce gap for smaller screens */
        padding: 8px; /* Reduce padding for smaller screens */
    }
}

/* Style for the title */
.title {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 550;
    color: #030303;
    text-align: left;
    margin-top: 10px;        
  }

/* Style for the author */
.author {
    font-family: 'Arial', sans-serif;
    font-size: 0.7em;
    color: #555;
    margin-top: 3px; /* Very close to the title */
    margin-bottom: 1px;
}

/* Style for the published time */
.published-time {
    font-family: 'Roboto', sans-serif;
    font-size: 0.7em;
    color: #333;
    margin-top: 3px; /* Very close to the title */
}

.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 7px 20px;
    border-bottom: 1px solid #ddd;
}

.banner .logo {
    height: 50px;
}

.banner .navigation {
    display: flex;
    gap: 15px;
}

.banner .navigation a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.banner .navigation a:hover {
    color: #007bff;
}

.banner {
    /*background: linear-gradient(90deg, rgba(76,175,80,1) 0%, rgba(34,193,195,1) 100%);*/
    color: white;
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    font-family: 'Cursive', sans-serif; /* Fancy font */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner h2 {
    margin: 0;
    padding: 10px 20px;
    font-size: 2em; /* Larger font size for the main title */
}
.banner div {
    margin: 0;
    padding: 0 20px 10px 20px;
    font-size: 1em; /* Smaller font size for the subtitle */
}
.banner img {
    height: 50px;
    margin-right: 20px;
}

.summary {
    font-family: 'Arial', sans-serif;
    font-size: 0.8em;
    color: #000;       
    margin-bottom: 10px;            
}

.collapsible-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: #f9f9f9;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto; /* Add scroll bar */
}

.collapsible-panel.expanded {
    transform: translateX(0);
}

.toggle-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white;
    padding: 20px 3px 20px 3px;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-button::before {
    content: '\25C0'; /* Left-pointing arrow */
    font-size: 0.8em; /* Smaller font size */
}

.toggle-button.expanded::before {
    content: '\25B6'; /* Right-pointing arrow */  
    font-size: 0.8em; /* Smaller font size */
}

.collapsible-panel h4 {
    font-family: 'Arial', sans-serif;
    font-size: 0.8em;
    color: #333;
    margin-bottom: 10px;
}
.collapsible-panel input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 0.9em; /* Smaller font size */
    font-family: 'Arial', sans-serif; /* Nicer font */
}

.collapsible-panel input[type="text"]::placeholder {
    font-size: 0.8em; /* Smaller font size for placeholder */
    font-family: 'Arial', sans-serif; /* Nicer font for placeholder */
    color: #888; /* Lighter color for placeholder */
}

.button-container {
    display: flex;
    justify-content: space-between;
}

.collapsible-panel button {
    width: 48%; /* Adjust width to fit two buttons side by side */
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.collapsible-panel .summary-result {
    margin-top: 20px;
    font-family: 'Arial', sans-serif;
    font-size: 0.9em;
    color: #333;
}

body.no-scroll {
    overflow: hidden; /* Disable scroll bar for the main panel */
}

.membership-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    padding: 25px;
    border: 1px solid #007bff;
    border-radius: 15px;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.membership-container h3 {
    margin-top: 0;
    font-family: 'Arial', sans-serif;
    font-size: 1.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

.membership-container input[type="text"],
.membership-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
}

.membership-container button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.membership-container button:hover {
    background-color: #0056b3;
}

.membership-container .error {
    color: red;
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
}

.membership-container a {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}

.membership-container a:hover {
    text-decoration: underline;
}

.membership-container .switch-button {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
    color: #007bff;
    cursor: pointer;
}

.membership-container .switch-button:hover {
    text-decoration: underline;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
    background-color: #007bff;
    color: white;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.menu a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #ffdd57;
}

.menu-left {
    display: flex;
    align-items: center;
}

.menu-right {
    display: flex;
    align-items: center;
}

.badge {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
}

.menu-right .welcome {
    font-size: 0.8em;
    font-weight: bold;
}

.menu-right a {
    padding: 8px 12px;            
    border-radius: 8px;
    
}

.menu-right a:hover {            
    color:#000;
    font-weight:bold;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999; /* Ensure it appears above other elements */
    display: none; /* Hidden by default */
}

.overlay.active {
    display: block; /* Show when active */
}

.dropdown {
    position: relative;
    display: inline-block;            
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0; /* Align dropdown to the right */
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-top: 2px;
    margin-left: 15px;
}

.dropdown-content a {
    color: #333;
    padding: 8px 12px; /* Reduced padding for smaller size */
    text-decoration: none;
    display: block;
    font-size: 0.8em; /* Smaller font size */
    transition: font-weight 0.3s ease;
}

.dropdown-content a:hover {
    color: #000;
    font-weight: bold; /* Only change font weight on hover */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown .badge {
    cursor: pointer;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
}

.google-login {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #4285F4; /* Google blue */
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.google-login img {   
    padding-top: 8px;
}

.google-login:hover {
    color: #3367D6; /* Darker Google blue on hover */
}

.google-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.google-login-container {
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    gap: 2px; /* Reduce spacing between the logo and text */
}

.google-logo {
    width: 20px; /* Adjust size as needed */
    height: 20px;
}

.history-list {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.history-list ul {
    list-style-type: none;
    padding: 0;
}
.history-list li {
    margin: 5px 0;
    padding-bottom: 5px;
}

.history-list li strong {
    font-size: 0.8em;
    color: #333;
    font-weight: bold;
    font-family: sans-serif;
}
.history-list a {
    text-decoration: none;
    color: #007BFF;
    font-size: 0.8em;
}
.history-list a:hover {
    text-decoration: underline;
}
.history-list .datetime {
    font-size: 0.8em;
    color: #555;
    margin-left: 10px;
}

.title-container {
    text-align: left;
    margin: 20px 0;
}

.styled-title {
    font-size: 1em;
    color: #333;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-left: 20px;
    padding-left: 5px;
    font-family: Arial, Helvetica, sans-serif;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure no overflow */
    background-color: #f0f0f0; /* Optional: Add a background color */
}

.thumbnail {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ensure images fit within the container */
}

.styled-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.styled-input:focus {
    border-color: #007BFF; /* Highlight border on focus */
    outline: none;
}