/* styles from style.css */
body {
    font-family: 'Poppins', sans-serif;
    background: #F5F5F5;
    color: #333;
    margin: 0;
    padding: 0;
}

.site-header {
    background-color: #1A1A2E;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    justify-content: space-between;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.search-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-form input[type="text"] {
    padding: 0.5em 2em 0.5em 1em;
    border: none;
    border-radius: 20px;
    width: 100%;
    background: #fff;
    color: #333;
}

.search-icon {
    position: absolute;
    right: 10px;
    color: #333;
}

.menu-buttons {
    display: flex;
    gap: 10px;
}

.menu-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.menu-btn i {
    font-size: 1.5em;
}

.menu-btn:hover {
    background-color: #0056b3;
}

main {
    padding: 20px;
}

/* styles from styles(1).css */
.chatrooms {
    margin-top: 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.chatroom-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 15px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.chatroom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.chatroom-name {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.chatroom-description {
    font-size: 1em;
    color: grey;
    margin-bottom: 1em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.chatroom-tags {
    font-size: 0.85em;
    margin-bottom: 1em;
}

.chatroom-tags .tag {
    display: inline-block;
    margin-right: 5px;
    padding: 3px 7px;
    background-color: rgba(224, 224, 224, 0.5);
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.chatroom-tags .tag:hover {
    background-color: rgba(192, 192, 192, 0.5);
}

.room-url {
    cursor: pointer;
    color: #4CAF50;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.room-url:hover {
    text-decoration: underline;
}

.info-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: grey;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.join-btn-link {
    text-decoration: none;
}

.join-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.join-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.join-btn-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.permissions-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.permissions-container i {
    font-size: 1.2em;
}

.perm-granted {
    color: lightgreen;
}

.perm-denied {
    color: lightcoral;
}
