/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #343a40;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background-color: #0056b3;
    color: white;
    padding: 20px 0;
}

.header .logo {
    font-size: 2em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.navbar {
    text-align: right;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    display: inline-block;
    margin-left: 20px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #ffdd57;
}

/* Hero section styles */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-image.jpg') no-repeat center center/cover;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.5em;
    max-width: 600px;
    margin: 0 auto;
}

/* Study materials section styles */
#study-materials {
    padding: 80px 0;
}

#study-materials h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: bold;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #dddddd;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item h3 {
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.grid-item p {
    color: #666;
    font-size: 1em;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Chat section styles */
#chat-section {
    background-color: #f4f4f9;
    padding: 80px 0;
}

#chat-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: bold;
}

#create-join {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px; /* Add some space between elements */
}

#create-join input, #create-join button {
    padding: 15px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#create-join input {
    flex: 1;
    margin-right: 10px;
    border: 1px solid #cccccc;
    padding: 10px;
}

#create-join button {
    background-color: #0056b3;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
}

#create-join button:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
}

.chat-container h3 {
    text-align: center;
    margin-bottom: 20px;
}

.messages {
    max-height: 64px;
    overflow-y: auto;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
}

.input-container {
    display: flex;
    align-items: center;
}

.message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 1em;
}

.send-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: #004494;
}

/* Footer styles */
.footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer p {
    margin: 0;
    font-size: 1em;
}
