body {
    font-family:Arial Narrow, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #eae7e7; 
    overflow-x: hidden;
}

header {
    background-color: darkblue; 
    color: white;
    padding: 10px 0;
}

header ul li a:hover {
    color: rgb(84, 217, 84);
 }

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
}

nav ul li.title {
    margin-right: auto;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

main {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 0;
    padding: 0;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.sidebar {
    margin-bottom: 0;
    width: 19%;
    padding: 20px;
    background-color: rgb(0, 0, 139);
    text-align: center;
}

.categories li {
    margin-bottom: 15px; 
}

.categories li:last-child {
    margin-bottom: 0; 
}

.logo {
    text-align: center;
    margin-bottom: 50px;
}

.logo img {
    width: 200px;
    height: auto;
}

.logo h2 {
    margin: 10px 0 0;
    font-size: 2em;
    color: rgb(255, 255, 255);
}

.categories {
    list-style-type: none;
    padding: 0;
}

.categories li {
    margin-bottom: 20px; 
}

 a {
    color: rgb(67, 144, 222);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
}

.categories li a:hover {
    text-decoration: underline;
}

.content {
    width: 75%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.flight-card {
    width: calc(25% - 20px); 
    background-color: #020000;
    padding: 10px;
    box-sizing: border-box;
    text-align: left;
    margin: 2px;
    border-radius: 5px; 
    transition: all 0.3s ease; 
}


.flight-card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px; 
}

.flight-card p {
    margin: 10px 0 0;
    color: black;
    text-align: left;
}


.vertical-line {
    position: absolute;
    top: 60px; 
    bottom: 0;
    right: -1px;
    width: 1px;
    background-color: black;  }

    .flight-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .flight-info p {
        margin: 0;
        color: black;
        flex: 1; 
    }

    .buy-button {
        background-color: green;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 1em;
        border-radius: 5px;
        cursor: pointer;
        margin-left: 10px; 
    }
    
    .buy-button:hover {
        background-color: darkgreen;
    }

    .flight-card img {
        width: 100%; 
        height: 200px; 
        object-fit: cover; 
        border-radius: 5px; 
    }

    button, .buy-button, .home-button {
        background-color: darkblue; 
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 1em;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    button:hover, .buy-button:hover, .home-button:hover {
        background-color: green; 
        color: white;
    }
    
    
    .info-card p strong {
        color: rgb(20, 220, 27); 
    }

    .flight-card {
        background-color: #f1f1f1; 
        border: 2px solid rgb(107, 3, 163);
        border-radius: 20px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .flight-card:hover {
        transform: scale(1.05); 
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }
    
    .flight-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
        border: 2px solid rgb(27, 20, 220); 
    }
    @media (max-width: 768px) {
        main {
            flex-direction: column;
        }
    
        .sidebar {
            width: 100%;
            margin-bottom: 20px;
        }
    
        .content {
            width: 100%;
        }
    
        .flight-card {
            width: 90%;
            margin-bottom: 20px;
        }
        header ul li.title {
            margin: 0 auto;
            text-align: center;
        }
    }
