/* Reset styles */
*, *::before, *::after {
    box-sizing: border-box;  
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #F5F7FA;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Main container layout */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Left sidebar (Intro section) */
.intro {
    width: 100%;
    background-image: url('bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #40E0D0; /* Turquoise */
    color: white;
    text-align: center;
    padding: 40px;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.2rem;
}

/* Input section */
.trip-input {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.trip-input label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #354CA1;
}

.trip-input input, 
.trip-input textarea {
    width: 280px;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #354CA1;
    font-size: 16px;
    color: #354CA1;
}

.trip-input textarea {
    resize: none;
    height: 75px;
}

/* Button styling */
button {
    margin-top: 1em;
    background: #354CA1;
    width: 280px;
    padding: 15px 0;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

button:hover {
    background-color: #0F5BBB;
    transform: scale(1.05);
}

/* Output display (Itinerary result) */
.trip-output {
    display: none;
    width: 80%;
    margin: 20px auto;
    background: white;
    border: 3px solid #354CA1;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
}

.trip-output p {
    font-size: 1.1rem;
    color: #354CA1;
    line-height: 1.6;
}

/* Dark Mode */
.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode input, .dark-mode textarea {
    background-color: #333;
    color: #fff;
    border: 1px solid #666;
}

.dark-mode .trip-output {
    background: #1E1E1E;
    border-color: #666;
}

/* Responsive Design */
@media (min-width: 768px) {
    main {
        flex-direction: row;
    }

    .intro {
        width: 40%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .trip-input {
        width: 60%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

