body { margin: 0; padding: 0; background-color: #f0f0f0; font-family: 'Söhne', 'Helvetica Neue', Helvetica, Arial, sans-serif; } header { display: flex; justify-content: space-between; align-items: center; margin: auto; padding-top: 0.5%; padding-left: 5%; padding-right: 5%; color: white; background-color: #003b94; user-select: none; pointer-events: auto; -webkit-user-drag: none; z-index: 100; } .logo img { width: 16%; height: auto; -webkit-user-drag: none; } .nav-links { padding-top: 0.5%; display: flex; justify-content: flex-end; align-items: center; gap: 5%; width: auto; } .nav-links a { color: white; font-size: 120%; font-weight: bold; text-decoration: none; margin-left: 10%; white-space: nowrap; } .nav-links a:hover { cursor: pointer; text-decoration: underline; } .nav-links img{ width: auto; height: 80%; cursor: pointer; user-select: none; border-radius: 12px; -webkit-user-drag: none; } .nav-links img:hover{ width: 80%; height: 80%; border-radius: 12px; background-color: #878686; user-select: none; } nav { width: 100%; text-align: left; padding-bottom: 0.5%; margin: 0; overflow-x: auto; white-space: nowrap; } nav::-webkit-scrollbar { height: 4px; } nav::-webkit-scrollbar-thumb { background-color: red; } nav a { padding: 1%; border-radius: 160px; display: inline-block; border: 1px solid transparent; transition: border-color 0.3s ease; } nav a img { height: 24px; object-fit: cover; -webkit-user-drag: none; } nav a:hover { background-color: rgba(255, 255, 255, 0.1); } nav a:focus { border-color: white; } @media screen and (max-width: 800px) { header{ padding-top: 0.5%; padding-left: 0; padding-right: 0; font-size: 90%; width: 100%; } .nav-links { padding-right: 2%; } .nav-links a { font-size: 100%; } .logo img { margin-left: 2%; width: 30%; max-height: 100px; } nav a img { height: 22px; } nav a { margin-left: 1%; margin-top: 2%; padding: 1.2%; } } .hotel { display: flex; flex-direction: column; justify-content: center; align-items: left; border: 1px solid #000000; margin-bottom: 10px; margin-top: 20px; padding: 10px; height: 350px; width:1100px; background-color: #ddd; border-radius: 15px; font-size:40px; } #hint{ font-size: 50px; margin-left:100px; } .pagebutton{ background-color: #ADD8FF; border: none; color: white; padding: 15px 32px; margin-left:100px; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; border-radius: 15px; font-size:30px; transition:background-color 0.3s ease; } .pagebutton:hover{ background-color:#87CEFA; } .pagebutton:active{ background-color:#1E90FF; transform: translateY(1px); } table{ border: 1px solid #000000; background-color: white; border-radius: 15px; padding: 15px; border:1px solid black; width:600px; height:300px; } footer{ bottom: 0; display: flex; justify-content: space-between; align-items: center; margin: auto; padding: 1% 5%; color: white; background-color: #003b94; user-select: none; pointer-events: auto; -webkit-user-drag: none; } .sticky-search-box { display: flex; flex-wrap: wrap; justify-content: center; /* Center align the contents */ align-items: center; position: sticky; /* Default to sticky */ top: 0; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 5px; z-index: 1000; width: 95%; /* Full width */ margin: 0 auto; /* Center align the box itself */ overflow: hidden; border-radius: 5px; } #searchForm { padding-left: 5px; padding-right: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; /* Full width */ justify-content: center; /* Center align form elements */ } .input-field, .input-field.with-button { margin-top: 10px; margin-bottom: 0; flex-grow: 1; /* Allow fields to grow */ flex-shrink: 1; /* Allow fields to shrink */ } .input-field input[type="date"], .input-field.with-button select { width: 90%; /* Full width */ } #searchForm button { margin-top: 10px; margin-bottom: 0; flex-grow: 0; /* Prevent the button from growing */ flex-shrink: 1; min-width: 70px; /* Minimum width for the button */ max-width: 70px; } /* Responsive Design for Computer Screens */ @media screen and (min-width: 1100px) { #searchForm { flex-wrap: nowrap; /* Prevent wrapping on larger screens */ } .input-field, .input-field.with-button { flex-basis: 50%; /* Each field takes half the width */ } #searchForm button { flex-basis: 100%; /* Button takes full width on small screens */ } } /* Responsive Design for Phone Screens */ @media screen and (max-width: 700px) { .sticky-search-box { position: static; /* Non-sticky on small screens */ } } .input-field { position: relative; margin-bottom: 5%; height: 40px; padding: 2px; border: 1px solid #ccc; border-radius: 5px; transition: border-color 0.2s ease; } .input-field input { width: 100%; height: 100%; border: none; outline: none; padding-left: 5px; padding-right: 5px; background-color: transparent; font-size: medium; transition: top 0.2s ease, left 0.3s ease, font-size 0.3s ease, color 0.3s; } .input-field label { position: absolute; top: 50%; left: 10px; color: #999; transform: translateY(-50%); transition: top 0.2s ease, left 0.3s ease, font-size 0.3s ease, color 0.3s; pointer-events: none; } .input-field input:focus + label { top: -1%; font-size: 12px; color: #007bff; background-color: #fdfdfd; border: white 2px solid; } .input-field input:not(:placeholder-shown) + label { top: -1%; font-size: 12px; background-color: #fdfdfd; border: white 2px solid; } .input-field:focus-within { border: 1px solid #007bff; } .input-field.with-button { display: flex; border-radius: 5px; justify-content: space-between; align-items: center; } .input-field.with-button select{ width: 100%; flex-grow: 1; margin-left: 5px; } .input-field.with-button input { flex-grow: 1; width: 100%; } .edit-button { cursor: pointer; margin-right: 2%; color: #007bff; background-color: #fdfdfd; border: 0; border-radius: 5px; padding: 5px 10px; text-decoration: none; transition: background-color 0.2s ease; } .edit-button:hover { background-color: #e5e5e5; } button { width: 100%; height: 43px; padding: 10px; font-size: medium; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; } button:hover { background-color: #0056b3; } .input-field input[type="date"] { width: 100%; /* Full width */ padding: 8px; /* Padding inside input */ border: 1px solid #ddd; /* Border color */ border-radius: 4px; /* Rounded corners */ }