/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.logo {
    max-width: 350px; /* Set a max-width for the logo */
    height: auto; /* Maintain aspect ratio */
}

/* Media queries to adjust the logo size on smaller devices */
@media (max-width: 768px) {
    .logo {
        max-width: 195px; /* Adjust the max width for smaller screens */
        height: 45px;
    }
}

@media (max-width: 576px) {
    .logo {
        max-width: 195px; /* Further reduce max width for very small screens */
        height: 45px;
    }
}

/* Navbar brand logo */
.navbar-brand {
    display: flex;
    align-items: center;
}

/* Navbar nav items */
.navbar-nav {
    flex-grow: 1;
    justify-content: flex-end; /* Aligns nav items to the right */
    display: flex;
    flex-wrap: nowrap; /* Prevents wrapping */
    white-space: nowrap; /* Prevents text from breaking onto multiple lines */
}

.intro-title {
    font-size: 24px; /* Adjust as needed to match .form-title */
    color: #333;     /* Match the color of .form-title */
    margin-bottom: 10px; /* Adjust margin to fit your design */
    text-align: left; /* Align the title if needed */
    margin-left: -10px; /* Use a negative margin to shift the text to the left */
}

.intro-text {
  margin-top: 15px; /* Adjust this value to move the text closer or further away from the form */
  line-height: 1.5; /* Adjust line height for better readability */
  margin-left: -10px; /* Use a negative margin to shift the text to the left */
  /* You can adjust the value above as needed */
  text-align: left; /* Ensure text is aligned to the left */
}

.list-group-item {
   text-align: center;
}


.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

header {
    background: linear-gradient(to right, #0052D4, #4364F7, #6FB1FC);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header .highlight {
    color: #FFD700;
}

nav ul {
    list-style: none;
    padding: 15px 0;
    background: #444;
    text-align: center;
    margin: 20px 0;
    border-radius: 8px;
}

nav ul li {
    display: inline-block;
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFD700;
}

main {
    padding: 20px 0;
}

main h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.chat-rooms {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.chat-room {
    background: #fff;
    margin: 10px;
    padding: 20px;
    width: calc(33.333% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.chat-room h3 a {
    color: #0052D4;
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.chat-room:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.chat-room h3 a:hover {
    color: #FFD700;
}

.chat-room p {
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    border-radius: 8px;
}

footer a {
    color: #FFD700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .chat-room {
        width: 100%;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    header h1 {
        font-size: 2em;
    }
}
