html{
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
}
body {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212; /* Dark background */
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    color: white;
}
.navbar{
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    padding: 10px;
    box-sizing: border-box;
    font-size: 24px;
    border: 1px #333 solid; /* Darker border */
    border-radius: 10px;
    background: rgba(40, 40, 40, 0.7); /* Dark background */
    backdrop-filter: blur(10px);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-comments-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.view-comments-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.view-comments-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.navbar .brand {
    align-items: center;
    display: flex;
    justify-content: space-around;
    gap: 5px;
    cursor: pointer;
}
.navbar img {
    width: 30px;
}
.navbar title{
    text-align: center;
    align-items: center;
}
.navbar a {
    text-decoration: none; /* Remove underline */
    color: white;
    text-align: center;
    align-items: center;
}
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(50, 50, 50, 0.3); /* Dark background */
    border-radius: 20px;
    width: 50%;
    }
    .search-box {
        border: 1px rgba(255, 255, 255, 0.2) solid; /* Light border */
        padding: 8px 12px 8px 32px; /* Adjust padding to make space for the icon */
        font-size: 16px;
        border-radius: 20px;
        background: transparent;
        color: white;
        width: 100%;
        text-align: center;
        }
        
        .search-icon {
        position: absolute;
        left: 6px;
        top: 8px;
        font-size: 16px;
        }
.view-style{
    display: flex;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    border: 1px black solid;
    padding: 10px;
}
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    position: absolute; /* Change to absolute to avoid fixed height issues */
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Adjust to allow more flexibility */
    max-height: calc(100vh - 220px); /* Make it responsive */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    scrollbar-width: none;
}


.game-card {
    position: relative;
    width: 300px;
    height: 400px;
    border: 1px solid #444; /* Darker border */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Stronger shadow */
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1); /* Light background */
    color: white;
    text-align: center;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.game-card:hover .game-title {
    opacity: 1;
}

.game-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card:hover .game-date {
    opacity: 1;
}

.edit-delete-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none; /* Initial state is hidden */
    flex-direction: column;
    gap: 5px;
}

.game-card:hover .edit-delete-buttons {
    display: flex; /* Show on hover */
}

.edit-button,
.delete-button {
    background-color: rgba(255, 255, 255, 0.2); /* Lighter background */
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edit-button:hover {
    background-color: #4CAF50; /* Green */
    transform: scale(1.05);
}

.delete-button:hover {
    background-color: #f44336; /* Red */
    transform: scale(1.05);
}

/* Modal Styles */
.Modal{
    display: none;
    position: fixed;
    height: 100vh;
}
.addmodal,
.modal,
.accmodal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darker modal background */
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a; /* Slightly lighter dark background */
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    margin: auto;
    text-align: center;
    overflow: auto;
    height: fit-content;
    max-height: calc(100vh - 10%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #f0f0f0; /* Light close button */
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: red;
}

/* Form styling */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f0f0f0;
}

.input-with-button {
    display: flex;
    position: relative;
    width: 100%;
}

.input-with-button input,
.input-with-button textarea {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    resize: vertical;
}

.input-with-button textarea {
    min-height: 80px;
}

.input-with-button input:focus {
    outline: none;
    border-color: #0084ff;
    box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.2);
}

.paste-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 0 12px;
    cursor: pointer;
    color: #f0f0f0;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.paste-btn.paste-success {
    background-color: #4CAF50;
    color: white;
    animation: pulse 0.5s;
}

.paste-btn.paste-error {
    background-color: #f44336;
    color: white;
    animation: shake 0.5s;
}

/* All Comments Modal Styles */
.comments-modal-content {
    max-width: 900px;
    width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.comments-search-container {
    margin-bottom: 20px;
    padding: 0 5px;
}

.comments-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.comments-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.all-comments-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 5px;
    max-height: 60vh;
}

.comment-tile {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.comment-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
}

.comment-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-tile:hover::before {
    opacity: 1;
}

.comment-game-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.comment-game-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #444;
}

.comment-game-title {
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-username {
    font-weight: 600;
    color: #ffd700;
    font-size: 14px;
}

.comment-time {
    color: #888;
    font-size: 12px;
}

.comment-content {
    color: #ddd;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
}

.comments-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

.no-comments-found {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* Scrollbar styling for comments container */
.all-comments-container::-webkit-scrollbar {
    width: 8px;
}

.all-comments-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.all-comments-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.all-comments-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive design for comments modal */
@media (max-width: 768px) {
    .comments-modal-content {
        width: 95vw;
        max-height: 85vh;
    }
    
    .comment-tile {
        padding: 12px;
    }
    
    .comment-game-info {
        gap: 8px;
    }
    
    .comment-game-image {
        width: 40px;
        height: 40px;
    }
    
    .comment-game-title {
        font-size: 14px;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.save-btn {
    background-color: #0084ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: 100%;
}

.save-btn:hover {
    background-color: #0066cc;
}

/* Improve existing buttons */
.edit-button,
.delete-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edit-button:hover {
    background-color: #4CAF50; /* Green */
    transform: scale(1.05);
}

.delete-button:hover {
    background-color: #f44336; /* Red */
    transform: scale(1.05);
}

/* Improve account item styling */
.account-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: #222;
    justify-content: space-around;
    text-align: left;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    cursor: pointer;
}

.account-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.account-item.new-account {
    border-left: 4px solid #ff4444;
    background-color: #2d2a2a;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

.account-time {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.new-badge {
    background-color: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.account-email,
.account-password {
    cursor: pointer;
    margin: 8px 0;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 100%;
    transition: background-color 0.3s;
}

.account-email:hover,
.account-password:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

.account-item button {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 5px;
}

.account-item button:hover {
    background-color: #0084ff;
}

/* Account item field containers and buttons */
.account-field-container {
    width: 100%;
    margin-bottom: 8px;
}

.account-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}

.edit-account-btn, 
.delete-account-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.edit-account-btn {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.edit-account-btn:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

.delete-account-btn {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.delete-account-btn:hover {
    background-color: #f44336;
    color: white;
    transform: translateY(-2px);
}

/* Add button styling */
#addAccountBtn {
    background-color: #0084ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    margin: 15px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#addAccountBtn:hover {
    background-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Improve add game card */
.add-game-card {
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: rgba(255, 255, 255, 0.05);
}
  
.add-game-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}
  
.add-game-title {
    font-size: 24px;
    color: white;
    font-weight: 500;
}

.modal-game-details {
    display: flex;
    align-items: center;
    justify-content: start; /* Align the content to the left */
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #555; /* Darker border */
    border-radius: 5px;
    background-color: #222; /* Darker background */
    gap: 20px; /* Add space between the image and the title */
}

.modal-game-image {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
}
.chat-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(40, 40, 40, 0.7); /* Dark background */
    color: white;
    border: none;
    border-radius: 20px;
    width: 250px;
    height: 70px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7); /* Darker shadow */
    transition: all 0.3s ease-in-out;
}

.chat-box {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 300px;
    height: 400px;
    background: rgba(50, 50, 50, 0.2); /* Dark background */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3 ease-in-out;
}

.chat-header {
    background-color: rgba(30, 30, 30, 0.7); /* Darker header background */
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    color: #f0f0f0; /* Light text */
}

.chat-input {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input textarea {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 0 0 0 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chat-input button {
    background-color: #0084ff4d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 0 0 10px 0;
    cursor: pointer;
}
table {
    width: 100%;
    border-collapse: collapse;
  }
  
  th, td {
    border: 1px solid #ddd;
    padding: 8px;
  }
  
  th {
    background-color: #222;
  }
  .DislikesModalbtn{
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    z-index: 2;
  }
  .DislikesModal:hover{
    transform: scale(1.1);
  }
  .dislikesmodal{
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
  }
  .dislikes-modal-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #333; /* Dark modal content */
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: fit-content;
    margin: auto;
    text-align: center;
    overflow: auto;
    scrollbar-width: none;
    height: fit-content;
    max-height: calc(100vh - 10%);
}

/* Copy tooltip */
.copy-tooltip {
    position: fixed;
    background-color: rgba(0, 132, 255, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.copy-tooltip.error {
    background-color: rgba(244, 67, 54, 0.9);
}

.copy-tooltip.fade-out {
    opacity: 0;
}

/* Password confirmation modal styles */
.confirm-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #d0d0d0;
}

.delete-btn {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background-color: #f44336;
    color: white;
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

#confirm-action-message {
    margin-bottom: 20px;
    color: #555;
}

/* Password field animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.6s ease-in-out;
}

/* Show password checkbox */
.show-password-container {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.show-password-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.show-password-label input {
    margin-right: 6px;
}

/* Success notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.error {
    background-color: rgba(244, 67, 54, 0.9);
}

.notification-icon {
    width: 24px;
    height: 24px;
}

.notification-message {
    flex: 1;
}

.notification-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    margin-left: 10px;
}
