:root { --font-light: #fff; --dark-background: #363535; --active-highlight: #055cdf; } /* alternative highlight: #ff4500 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { margin: 0; padding: 0; font-family: "Lato", sans-serif; } #page-wrapper { position: relative; } img { width: 100%; } ul { margin: 0; width: 100%; } li { list-style: none; cursor: pointer; display: block; transition: 0.05s; width: auto; height: 100%; } li:hover { cursor: pointer; background: var(--active-highlight); } a { text-decoration: none; color: none; height: 100%; width: 100%; } p { width: 100%; background: var(--font-light); font-style: italic; padding: 1em; line-height: 1.5em; } figcaption { background: var(--font-light); padding: 0.5em; font-style: italic; font-size: 14px; } header { width: 100%; height: 200px; max-height: 200px; } /* *********************** */ /* DROPDOWN, TABS, ARROWS */ /* ********************** */ /**** creating the drop down ****/ ul li ul { visibility: hidden; opacity: 0; position: absolute; left: 0; display: none; width: 100%; } ul li:hover > ul, ul li:focus-within > ul, ul li ul:hover { visibility: visible; opacity: 1; display: block; margin-top: 16px; width: auto; background: var(--active-highlight); color: var(--font-light); padding-bottom: 10px; border-top: none; padding: 10px; } ul li ul li { text-align: left; position: relative; padding: 1em 1.5em; width: 100%; height: 100%; } ul li ul li a { width: 100%; padding: 5px; } /* typography */ .header-title { margin: 0; padding: 2rem; } .header-title > a { color: #055cdf; } .beta { font-size: 10px; margin-left: 10px; color: var(--font-light); border-radius: 10px; background: var(--dark-background); padding: 5px 10px; } .airline-logo img { max-height: 100px; width: 50%; position: absolute; top: 0; right: 0; } .dropdown-container > ul { display: flex; justify-content: space-evenly; align-items: center; position: relative; background: var(--dark-background); color: var(--font-light); height: 100%; z-index: 1; } .region { position: relative; text-align: center; padding: 1em; height: 100%; width: 16.2em; } .carriers { height: 100%; width: 100%; } .carriers a { color: var(--font-light); width: 100%; height: 100%; } .carriers:hover { border-bottom: solid 2px var(--font-light); /* text-align: center; */ } .seat-map { display: block; margin-top: 20px; font-weight: 900; } .seat-map img { width: auto; margin-top: 20px; margin-left: 20%; } /* ************************* */ /********** main ************/ #main { display: flex; justify-content: center; align-items: center; background: var(--dark-background); margin-top: 0; } .main-container { width: 40em; padding: 100px 0 50px 0; min-height: 750px; } /***** TAB *****/ .sub-menu { width: auto; } .sub-menu ul { display: flex; align-items: center; height: 2.5em; width: 50%; background: var(--font-light); } .sub-menu ul li { width: 100%; padding: 10px; } .gallery-container { width: 100%; display: flex; justify-content: center; align-items: center; } .gallery { display: none; padding: 20px; min-height: 450px; } .gallery.active, .tab.active { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; border: 1px solid var(--active-highlight); } .tab.active { border-top-right-radius: 5px; height: 50px; margin-bottom: 8px; background: var(--active-highlight); color: var(--font-light); font-weight: bold; } /* slideshow */ .slide-container { position: relative; height: auto; width: auto; } /* prev and next */ .prev, .next { cursor: pointer; position: absolute; top: 0; width: auto; height: 100%; padding: 16px; font-weight: bold; font-size: 30px; color: var(--active-highlight); display: flex; justify-content: center; align-items: center; } .prev:hover, .next:hover { background: rgba(5, 92, 223, 0.9); color: var(--font-light); } .prev { left: -1.5px; border-radius: 3px 0 0 3px; } .next { right: -1.5px; border-radius: 0 3px 3px 0; }