/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ :root{ /*Theme colors in CSS variables */ --lt-brown: #5B5750; --brown: #654236; --dk-brown: #492C1D; --blue: #13293D; --lt-blue: #18435A; --navy-blue: #2D3047; --lt-green: #B8DBD9; --dk-green: #042A2B; --fade-green: #4A7856; --forest-green: #183A37; --lt-forest-green: #387D7A; --blue-green: #32A287; --beige: #FAE3C6; --lt-beige: #F2F5EA; /* text and background colors*/ --white: #fff; --md-gray: #555; --dk-gray: #222; --stberry-pink: #E75A7C; --lt-gray: #c0cdd4; --yellow: #be8c16; /* font stacks */ --heading-fonts: 'Playfair', 'Merriweather', 'Lora'; --body-fonts: Raleway, Roboto, Open sans; } .container{ max-width: 1440px; width: 100%; margin: 0 auto; } /* Body properties */ body{ font-family: var(--body-fonts); line-height: 1.5; font-size: 1.1rem; color: var(--dk-gray); margin: 0; padding: 0; } /* Header properties */ header{ padding: 1rem; background-color: var(--white); color: var(--white); border-bottom: 8px solid var(--brown); } .hero{ height: 300px; background-image: url('images/swiss-valley.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center; justify-content: center; color: white; text-align: center; } .hero-content{ background: rgba(0, 0, 0, 0.4); padding: 1rem; border-radius: 5px; } h1{ font-size: 50px; } h1, h2, h3{ text-align: center; font-family: var(--heading-fonts); font-style: italic; } h2{ margin: 0; padding: 4px; } h2, h3{ text-decoration: double underline var(--brown) 2px; } nav{ display: flex; justify-content: center; align-items: center; width: 100% } nav ul{ display: flex; justify-content: center; margin: 0 auto; padding: 0.5rem 0; list-style-type: none; } nav li{ margin: 0 1rem; } nav a{ display: block; width: 150px; margin: 1rem auto; padding: 1rem; background-color: var(--white); color: var(--brown); /* text-in nav*/ text-align: center; text-decoration: none; /*No underline*/ font-size: 1.2rem; font-weight: 600; border: dotted var(--brown) 3px; } nav a:hover{ color: var(--forest-green); background-color: var(--lt-gray); font-weight: 600; border: dotted var(--lt-blue) 3px; } nav a.active{ color: var(--stberry-pink); background-color: var(--lt-gray); font-weight: 600; border: dotted var(--lt-blue) 3px; } /* Links in the h1*/ h1 a{ color: var(--white); text-decoration: none; /*no underline*/ } main{ padding: 2rem 1rem; } section{ padding: 1rem; } main > p:first-of-type{ max-width: 80ch; margin: 0 auto; padding: 0.5rem; } section{ display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; } section img{ max-width: 100%; height: auto; } section div{ flex: 1; } section h3{ margin-top: 0; } .form-container{ display: flex; align-items: flex-start; gap: 20px; width: 800px; margin: 0 auto; } .side-image{ width: 300px; height: auto; display: block; } .contact-form{ flex: 1; display: flex; flex-direction: column; gap: 20px; } .contact-us{ text-align: left; max-width: 80ch; margin: 0 auto; padding: 0.5rem; } .image-section{ display: flex; flex-direction: column; gap: 0.5rem; width: 300px; justify-content: flex-start; } footer{ padding: 1rem; background-color: var(--forest-green); color: var(--lt-beige); text-align: center; border-top: 8px solid var(--dk-brown); }