@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../img/l.jpg'), linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
}


.header {
    background: linear-gradient(45deg, #6d28d9, #b5179e);
    color: #e2e8f0;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.event-section {
    margin-bottom: 40px;
}

.event-section h2 {
    color: #e0e0e0;
    font-size: 1.8em;
    margin-bottom: 10px;
    border-bottom: 2px solid #3a3a3a;
    padding-bottom: 5px;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: space-between;
}

.event-card {
    background: #2e2e2e7e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: block;
    flex: 1 1 calc(25% - 20px);
    min-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease;
    backdrop-filter: blur(10px);
}

.event-card h3 {
    color: #d1d1d1;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.event-card p {
    color: #a0a0a0;
    margin: 5px 0;
}

.event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
    background: linear-gradient(45deg, #6d28d950, #b5179e50);
    cursor: pointer;
}

.event-card p img {
    vertical-align: -4px;
    width: 20px;
    height: 20px;
}

.event-card > img {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 8px;
    margin-bottom: 12px;
    object-fit: cover;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(45deg, #6d28d9, #b5179e);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.site-title {
    color: #e2e8f0;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.nav-left, .nav-right {
    display: flex;
}

.nav-link {
    color: #c9d1d9;
    text-decoration: none;
    font-size: 1em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a8a8a8;
}

.qw{
    display : linear;
}

.login-form {
    max-width: 400px;
    margin: 80px auto;
    background: #2e2e2e7e;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(10px);
}


.login-form label, .login-form input {
    text-align: left;
    display: block;
    width: 100%;
    color: #d1d1d1;
}

.login-form label {
    margin-top: 15px;
}


.login-form input {
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: #3a3a3a;
    color: #ffffff;
}

#usrtype {
    padding: 8px;
    display: inline-block;
}

#usrtype label {
    gap: 5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.button {
    background-color: #4a4a4a;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 20px 0 0;
}

.button:hover {
    background: linear-gradient(45deg, #6d28d950, #b5179e50);
}

.search-bar {
    margin: 20px auto;
    text-align: center;
}

#search-input {
    width: 75%;
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    background-color: #3a3a3a;
    color: #e0e0e0;
}

#search-input::placeholder {
    color: #888;
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    animation: fadeIn 0.5s ease;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    animation: fadeIn 0.5s ease;
}

.filter-buttons button {
    padding: 8px 12px;
    font-size: 0.9em;
    background-color: #3a3a3a;
    color: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.filter-buttons button:hover {
    background: linear-gradient(45deg, #6d28d950, #b5179e50);
}

.eventDetails {
    background: #2e2e2e7e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    display: block;
    width: 75%;
    backdrop-filter: blur(10px);
    margin-left: auto;
    margin-right: auto;
}

.eventDetails h1 {
    color: #d1d1d1;
    margin-bottom: 15px;
    text-align: center;
}

.eventDetails p {
    color: #a0a0a0;
    margin: 5px 0;
}

.eventDetails a {
    color: #a0a0a0;
    text-decoration: none;
}

.eventDetails a:hover {
    color: #ffffff;
    text-decoration: none;
}

.eventDetails img {
    vertical-align: -4px;
    width: 20px;
    height: 20px;
}

.eventDetails > img {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 8px;
    margin-bottom: 12px;
    margin-top: 18px;
    object-fit: cover;
}

.keyDes {
    display: flex;
    gap: 70px;
    justify-content: center;
    margin: 30px;
}

.register {
    cursor: pointer;
    width: 75%;
    padding: 6px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.register:hover {
    background: linear-gradient(45deg, #6d28d950, #b5179e50);
}

.login-form a {
    color: #a0a0a0;
    text-decoration: none;
}

.login-form a:hover {
    color: #ffffff;
    text-decoration: none;
}

.login-form img {
    vertical-align: -4px;
    width: 20px;
    height: 20px;
}

.login-form p {
    color: #a0a0a0;
    font-size: 14px ;
}


@media (max-width: 1200px) {
    .keyDes {
        gap: 40px;
        margin: 30px 0;
    }
}

@media (max-width: 600px) {
    .event-list {
        flex-direction: column;
    }
    .eventDetails {
        width: 100%;
    }
    .filter-buttons {
        flex-direction: column;
    }
    .keyDes {
        gap: 10px;
        margin: 30px 0;
    }
    .filter-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    #search-input {
        width: 100%;
    }
    .register {
        width: 100%;
    }
}