body {
    font-family: 'Exo 2', sans-serif;
}

.auth-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #2C2C2C;
    color: #EDEDED;
    font-family: Arial, sans-serif;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #444;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.tab.active {
    background-color: #444;
}

.tab-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

input[type="text"], input[type="email"], input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: #EDEDED;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: #EDEDED;
    cursor: pointer;
    transition: background 0.3s;
}

button:disabled {
    background-color: #777;
    cursor: not-allowed;
}

.button-personal {
    max-width: 200px;
    margin: 10px auto;
    display: block;
}

/* To adjust the button's hover effect (optional) */
.button-personal:hover {
    background-color: #45a049;
}


a {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #BBBBBB;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    color: white;
    gap: 15px;
}

.center-flex {
    display: flex;
    flex-grow: 1;
    justify-content: center; /* Centers its children */
    align-items: center; /* Vertically centers its children */
}

.search-container {
    position: relative;
    max-width: 300px;
}

#searchInput {
    padding-right: 45px; /* increased to ensure text doesn't overlap the icon */
    width: 100%;
    margin: 0;
    border: 1px solid #ccc;
    height: 30px;
    vertical-align: middle;
    box-sizing: border-box;
}

.search-icon {
    position: absolute; 
    right: 10px; /* changed from -40px to 10px */
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    z-index: 1;
    background-color: #fff;
    max-height: 200px; 
    overflow-y: auto;
}

html, body {
    margin: 0;
    padding: 0;
}

.site-name {
    cursor: pointer;
}

.site-name, .username {
    font-weight: bold;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 4px;
    background-color: white;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -250px; /* start off screen */
    width: 250px;
    height: 100vh;
    background-color: #333;
    color: white;
    transition: right 0.3s;
    font-size: 1.2em; /* Increase the font size for the side menu */
}

.side-menu a, .side-menu button {
    display: block;
    margin: 15px 0; /* Adjust the vertical spacing between menu items */
}

#usernameDisplay {
    font-weight: bold; /* Make the display name bold */
    margin-top: 40px; /* Create more space below the close icon */
}

.side-menu button {
    width: 100%; /* Make the button stretch across the menu */
    font-size: 1em; /* Set the button text size to be the same as the display name's size */
}

.top-bar, .menu-icon {
    font-size: 1.2em; /* Increase the font size for the title bar and menu icon */
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 2em;
    font-weight: bold; /* Make the close icon bolder */
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #f4f4f4;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
}

.modal-content button:disabled {
    background-color: #cccccc; /* This is a gray color, but you can adjust to your preference */
    cursor: not-allowed; /* This will show a 'not allowed' cursor when hovering over the button */
    color: #666; /* Making the text color a bit dim to give a more disabled look */
    border: 1px solid #aaa; /* Adjusting border color for a more grayed out look */
}

.modal-content label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.modal-content input[type="file"] {
    margin-bottom: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.content-section {
    display: none;
}

.content-wrapper {
    max-width: 66%; 
    margin: 0 auto;
}

.personal-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-bottom: 2px solid #ddd;
}


.personal-title {
    font-size: 1.5em; 
    font-weight: bold;
    margin-right: 10px;
}

.button-personal {
    font-size: 0.9em;
    margin: 0;
    padding: 8px 12px;
}

.personal-content {
    padding: 15px;
}

.file-card {
    display: flex;
    align-items: flex-start;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-items: center;
    width: 100%; /* this ensures the card stretches the full width of the container */
}

.file-thumbnail {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.file-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* allows the content to take up available space */
}

.file-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.file-subtitle {
    font-size: 0.8em;
    margin-top: 3px;
    color: #666;
}
.username-icon {
    width: 24px;
    height: 24px;
    background-color: #eee;
    border-radius: 50%;
    margin-right: 5px;
    /* You can use an actual image URL instead of background color */
}

.username-text {
    margin-left: 5px;
    font-weight: bold;
}

.file-meta {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 10px;
}

.file-description {
    font-size: 0.9em;
    margin-bottom: 10px;
    flex-grow: 1;
}

.download-link {
    text-decoration: none;
    background-color: #007BFF;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    align-self: flex-start;
}


.username-link {
    display: inline;
    font-size: 1em;  /* Adjust this value to make it smaller or larger */
    margin-top: 5px;  /* Optional spacing between the title and uploader's name */
    color: #666;  /* A slightly muted color, but you can adjust this */
    text-decoration: none;  /* Removes the underlining from the link */
}
