@import url('https://fonts.cdnfonts.com/css/sigmar');
@import url('https://fonts.cdnfonts.com/css/roboto');
@import url('https://fonts.cdnfonts.com/css/geomanist');

:root {
    --blue-color: #43afcf;
    --yellow-color: #f0bd1a;
    --green-color: #80cc28;
    --light-green-color: #C9E8C9;
    --dark-text-color: #484848;
    --dark-text-color2: #023c2a;
    --light-yellow-color: #F3F2C9;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Geomanist', sans-serif;
    color: var(--dark-text-color);
}

/* Headings using Sigmar */
h1 {
    font-family: 'Sigmar', cursive;
    color: var(--dark-text-color2);
}

h2 {
    font-family: 'Sigmar', cursive;
    color: var(--dark-text-color);
}


h3,
h4,
h5,
h6 {
    font-family: 'Geomanist', sans-serif;
    color: var(--dark-text-color);
}

/* Paragraphs and other text using Roboto */
p,
button,
.btn,
.navbar a,
.footer p,
.footer a,
label {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text-color);
}

.logo img {
    width: 80px;
}

header {
    background-color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.logo a img {
    height: 60px;
    width: auto;
}

.nav-btn .btn {
    background-color: var(--yellow-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    width: 50px;
}

.nav-btn .btn:hover {
    background-color: var(--yellow-color);
}


section {
    display: flex;
    flex-direction: column;
    width: 100vw;
    justify-content: center;
    margin-bottom: 100px;
}

#itinerarySummary {
    background-color: var(--light-yellow-color);
}

#calendar {
    max-width: 900px;
    margin: 0 auto;
}

#myItinerarySection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#itineraryForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 600px;
}

/* Styling for form groups */
.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#date-group label {
    margin-top: 5px;
}

.form-group label {
    margin-top: -10px;
    font-size: 16px;
    font-weight: 400;
}

/* Styling for the date group to make it flex row */
#date-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}



/* Styling for date containers inside the date group */
.date-container {
    display: flex;
    flex-direction: column;
    width: 48%;
    margin-bottom: 20px;
}

/* Input field styling */
input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Label styling to position it 5px below the input fields */


.form-group.button-group {
    display: flex;
    justify-content: center;
    /* Center the button horizontally */
    align-items: center;
    margin-top: 20px;
    margin-bottom: 50px;
}

.form-group button {
    padding: 10px 20px;
    width: 350px;
    background-color: var(--yellow-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.form-group button:hover {
    background-color: var(--green-color);
}



#myCalendar h1{
    display: flex;
    justify-content: center;
    padding: 20px;
    font-size: 2rem;
}

#calendar {
    width: 80vw;
    margin: 0 auto;
    
}

#itinerarySummary h1 {
    display: flex;
    justify-content: center;
}

 #itinerary-container {
    display: flex;
    flex-wrap: wrap;  /* Allow items to wrap to the next line */
    gap: 20px;  /* Add some space between the items */
    justify-content: flex-start; 
    padding: 40px;
}

.itinerary-section {
    flex: 0 0 250px;  /* Set a fixed width of 250px for each itinerary section */
    box-sizing: border-box;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;  /* Ensure there's space between rows */
}

.itinerary-section img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 10px; /* Add space between the image and the list */
}

.itinerary-section ul {
    list-style: none; /* Remove bullets */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

.delete-button {
    margin-top: 15px;
    padding: 0 auto;
    width: fit-content;
    height: 45px;
    background-color: var(--yellow-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    

    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;  
}

.delete-button:hover {
    background-color: var(--green-color);
}



/* modal css */
#eventModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modalContent {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"] {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}



.itinerary-section ul li ul li {
    margin-left: 10px;
    color: var(--yellow-color);
}

@media (max-width: 600px) { 
    #calendar {
        width: 70%px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    #itineraryForm {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 400px;
        margin: 10px auto;
        flex-wrap: wrap;
    }

    #date-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 0;
    }

    #start-date,
    #end-date{
        width: 100%;
    }


    .form-group button {
        width: 300px;
    }

    #calendar {
        width: 80%px;
        margin: 0 auto;
    }
}