body { font-family: Arial, sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 0; display: flex; height: 100vh; overflow: hidden; /* Add this to prevent body overflow */ } .top-right { position: absolute; top: 20px; right: 20px; } .login-button { background-color: #007bff; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } .login-button:hover { background-color: #0056b3; } .sidebar { width: 300px; background-color: #ffffff; padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; box-sizing: border-box; } .logo { margin-bottom: 20px; } .logo img { max-width: 100%; height: auto; } .searchBar { width: 100%; } .searchBar form { display: flex; flex-direction: column; } .searchBar label { margin: 10px 0 5px; font-weight: bold; } .searchBar input[type="text"], .searchBar input[type="date"], .searchBar input[type="number"] { border: 1px solid #ccc; border-radius: 5px; padding: 10px; font-size: 16px; width: 100%; margin-bottom: 20px; box-sizing: border-box; } .searchBar input[type="submit"] { background-color: #007bff; color: #fff; border: none; border-radius: 5px; padding: 10px; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease; } .searchBar input[type="submit"]:hover { background-color: #0056b3; } .content { flex: 1; padding: 20px; overflow-y: auto; overflow-x: hidden; /* Add this to prevent horizontal overflow */ box-sizing: border-box; } #givenOptions { width: 100%; margin-top: 20px; padding: 20px; border-radius: 10px; box-sizing: border-box; } .option { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 1px solid #ccc; border-radius: 10px; margin-bottom: 20px; padding: 20px; box-sizing: border-box; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); background-color: #f4f4f9; overflow-x: auto; /* Add this to handle overflow within option */ } .btnWrapper{ display: flex; flex-direction: column; justify-content: space-evenly; } .favBtn{ display: none; } .image { width: 100%; max-width: 300px; height: auto; border-radius: 10px; margin-bottom: 15px; } .option-details { display: flex; flex-direction: column; align-items: center; width: calc(100% - 300px); /* Adjust width to fit within option */ box-sizing: border-box; } p, h1, h2 { margin: 0; padding: 5px 0; text-align: center; } h1 { font-size: 24px; font-weight: bold; } h2 { font-size: 20px; color: #007bff; } .country { font-size: 18px; color: #555; } .price { font-size: 22px; font-weight: bold; color: #e74c3c; } .loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; display: none; } .loading-content { text-align: center; } .spinner { border: 8px solid #f3f3f3; border-top: 8px solid #3498db; border-radius: 50%; width: 60px; height: 60px; animation: spin 2s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .popup { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); } .popup-content { background-color: #fff; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 400px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); text-align: center; display: flex; flex-direction: column; align-items: center; } .close { color: #aaa; align-self: flex-end; font-size: 28px; font-weight: bold; cursor: pointer; margin-bottom: 10px; } .close:hover, .close:focus { color: black; text-decoration: none; } form { width: 100%; } form label { margin: 10px 0 5px; font-weight: bold; width: 100%; text-align: left; } form input[type="email"], form input[type="password"], form input[type="text"] { width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-size: 16px; } .button { width: 100%; padding: 10px; margin: 10px 0; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; } .button:hover { background-color: #0056b3; } .button[type="button"] { background-color: #dd4b39; } .button[type="button"]:hover { background-color: #c23321; } form p { margin-top: 20px; text-align: center; } form a { color: #007bff; } form a:hover { color: #0056b3; } /* Response Messages */ .response { margin-top: 10px; color: red; } .accDetails { display: none; } .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; } .overlay-content { position: relative; margin: 5% auto; padding: 20px; width: 80%; max-width: 1000px; background-color: #fff; display: flex; justify-content: space-between; } .close { position: absolute; top: 10px; right: 25px; color: #aaa; font-size: 35px; font-weight: bold; cursor: pointer; } .close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; } .saved-trips-container, .price-changes-container { width: 48%; overflow-y: auto; max-height: 600px; } h2 { text-align: center; } #savedTripsList, #priceChangesList { list-style-type: none; padding: 0; } #savedTripsList .option, #priceChangesList .price-change { padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px; background-color: #f4f4f9; } .btn { margin: 15px; width: 200px; height: 30px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } .btn:disabled { background-color: grey; cursor: not-allowed; opacity: 0.65; }