/* style.css */

/* Global Styles */
body{
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #55d11f;
    margin: 0;
    padding: 0;
}

/* Heading Styles */
h1{
    text-align: center;
    color: #fff;
}

h2{
    text-align: left;
    color: #55d11f;
    font-size: 18px;
}

/* Styles for the main container */
#container{
    width: 80%;
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

/* Styles for the Add_New_Events and My_Events containers */
#add-new-events, #my-events{
    background-color: #fff;
    padding: 20px;
    margin: 5px;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#add-new-events{
    width: 32%;
}

#my-events{
    width: 64%;
}

/* Styles for the event form in Add_New_Events container */
#event-form{
    display: flex;
    flex-direction: column;
}

#event-form label{
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

#event-form input, #event-form select, #event-form textarea{
    width: 100%;
    padding: 8px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    align-items: center;
}

#buttons{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
}
/* Styles for the Add and Clear_event buttons */
#add-event, #clear-events, #sample-events{
    background-color: #55d11f;
    color: white;
    border: none;
    cursor: pointer;
}

#add-event{
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: inline-block;
}
#clear-events, #sample-events{
    flex: 0 1 calc(50% - 10px);
    padding: 15px;
    margin: 5px 0;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

#add-event:hover, #clear-events:hover, #sample-events:hover{
    background-color: #45a11f;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

/* Styles for the Event_list in My_Events container */
#event-list{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
}

.event-item{
    flex: 0 1 calc(50% - 40px);
    background-color: #e1ff96;
    padding: 15px;
    margin: 5px 0;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.event-title{
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
}

.event-date{
    font-size: 14px;
    color: #777;
    margin: 0 0 10px 0;
}

.event-category{
    background-color: #55d11f;
    color: white;
    padding: 5px 10px;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 10px;
    margin: 0 0 10px 0;
}

.event-description{
    font-size: 14px;
    color: #555;
    margin: 10px 0 10px 0;
}

.delete-button{
    background-color: transparent;
    border: none;
    cursor: pointer;
    float: right;
    padding: 0;
    margin: 0;
    width: 30px;
}

.delete-icon:hover{
    background-color: transparent;
    transform: scale(1.2);
    transition: all 0.3s ease-in-out;
}

.delete-icon{
    border-radius: 10px;
    position: relative;
    align-items: center;
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #container {
        flex-direction: column;
    }

    #add-new-events, #my-events {
        width: 100%;
        margin: 5px;
    }

    .event-item {
        flex: 0 1 100%;
    }
}