:root{ --font-family: "Henny Penny", system-ui; --h1-font: "Luckiest Guy", cursive; --p-font: "Cinzel", serif; --md-green: #B2CD9C; --green:#255F38; --dk-green:#27391C; --yellow:#FFF4A4; --dkr-green:#18230F; --lt-green: #D5E7B5; --black: #212121; --orange:#E67514; } * { margin: 0; padding: 0; box-sizing: border-box; } body { min-width: 1200px; overflow-x: auto; background-color: var(--md-green); } #hero { position: relative; width: 100vw; height: 500px; overflow: hidden; } #hero:before { content: ""; position: absolute; width: 100vw; height: 500px; top: 0; left: 0; background-color: rgba(37, 95, 56, 0.4); z-index: 1; pointer-events: none; /* position: relative; width: 100vw; height: 600px; overflow: hidden;*/ } .hero-img { width: 100%; height: 100%; object-fit: cover; display: block; } .hero-content { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 1280px; max-width: 90%; text-align: center; z-index: 10; } header h1 a{ color: var(--dkr-green); text-shadow: 1px 1px 2px var(--md-green); } header h1 a:hover{ color: var(--md-green); text-shadow: 1px 1px 2px var(--dkr-green); cursor: pointer; } header h1 a:active{ color: var(--md-green); } header h1{ font-size: 3rem; margin-bottom: -5rem; font-family: var(--h1-font); font-size: 5rem; font-weight: 700; font-style: normal; z-index: 2; font-size: clamp(2.5rem, 5vw, 5rem); } .hero-content a{ text-decoration: none; } .hero-content ul a{ text-decoration: none; font-size: 1.2rem; } nav{ position: absolute; top: 70px; left: 50%; transform: translateX(-50%); padding: 10px 30px; border-radius: 8px; z-index: 10; } nav ul{ display: flex; flex-direction: row; gap: 8rem; list-style: none; padding: 0; text-align: center; font-size: 2rem; font-family: var(--p-font); font-weight: bold; } nav a{ color: var(--dkr-green); } nav a:active { color: var(--md-green); } nav a:hover{ text-shadow: 1px 1px 3px var(--green); cursor: pointer; } #start h2{ text-align: center; width: 100%; max-width: 65ch; margin: 0 auto; padding: 1rem 0; font-size: 2.5rem; font-family: var(--font-family); color: var(--dk-green); text-shadow: 1px 1px 3px var(--yellow); font-size: clamp(1.8rem, 4vw, 2.5rem); } #start p{ text-align: center; width: 100%; max-width: 65ch; margin: 0 auto; padding: 2rem 0; font-size: 1.2rem; font-family: var(--p-font); font-weight: bold; color: var(--dkr-green); font-size: clamp(1rem, 2.5vw, 1.2rem); } .container { width: 1280px; margin: 0 auto; display: flex; gap: 30px; justify-content: center; } @media (max-width: 768px) { .container { padding: 1rem; flex-direction: column; } } .image-container{ width: 590px; text-align: center; font-size: clamp(1.2rem, 3vw, 1.7rem); } .image-container img { width: 100%; height: auto; display: block; margin: 0 auto; } .image-container h3{ text-align: center; width: 100%; max-width: 65ch; margin: 0 auto; padding: 1rem 0; font-size: 1.7rem; font-family: var(--font-family); font-weight: bold; color: var(--dk-green); text-shadow: 1px 1px 3px var(--yellow); } .image-container p{ text-align: center; width: 100%; max-width: 65ch; margin: 0 auto; padding: 1rem 0; font-size: 1.1rem; font-family: var(--p-font); font-weight: bold; color: var(--dkr-green); font-size: clamp(0.9rem, 2vw, 1.1rem); } /* CONTACT PAGE */ #contact-page #hero h1{ position: absolute; top: 2.7rem; left: 2rem; z-index: 2; padding: 0.5rem 1rem; border-radius: 6px; font-size: 2.6rem; margin: 0; } #contact-page #hero h1 a { text-decoration: none; } #contact-nav ul{ position: absolute; top: -1.5rem; left: 2rem; } #contact-nav a{ text-decoration: none; font-size: 1.2rem; } #contact-us{ display: flex; justify-content: center; align-items: flex-start; gap: 2rem; max-width: 350px; margin: 2rem auto; padding: 1rem; flex-wrap: wrap; } .contact-container { align-items: center; display: grid; grid-template-columns: 1fr 1fr; } .contact-img img{ margin: 16px auto; padding: 16px; } .text h2{ font-family: var(--font-family); font-size: 2rem; color: var(--dk-green); text-shadow: 1px 1px 3px var(--yellow); } .text p{ font-family: var(--p-font); font-size: 1rem; font-weight: bold; } .text h2, .text p{ position: relative; padding: 10px; max-width: 282px; margin-left: -20rem; bottom: -60px; } .form{ width: 350px; margin: 18px auto; margin-top: -5rem; padding: 20px; } label{ margin: 0 0 4px 16px; font-weight: bold; color: var(--dkr-green); text-shadow: 1px 1px 2px var(--yellow); } #full-name, #my-email, #my-phone, #my-comments, #my-submit { margin-bottom: 40px; display: block; width: 100%; box-shadow: 1px 1px 10px var(--yellow); } #my-comments{ padding: 20px; } #my-submit{ margin-top: -10px; height: 50px; background-color: var(--lt-green); } #my-submit:hover, #my-submit:focus { background-color: var(--yellow); cursor: pointer; border: 2px solid var(--dk-green); } #my-submit:active { background-color: var(--orange); transform: scale(0.98); } fieldset{ height: 60px; font-size: 1rem; font-weight: bold; margin-bottom: 25px ; border-radius: 4px; } #pref-phone, #pref-email{ margin-right: 2rem; } label[for="pref-email"], label[for="pref-phone"] { margin-right: 2rem; display: inline-block; } input, select, textarea{ padding: 8px; font-size: 1rem; margin-bottom: 50px; border-radius: 4px; } legend{ color: var(--dkr-green); text-shadow: 1px 1px 2px var(--yellow); } input:focus, textarea:focus { outline: 2px solid var(--md-green); background-color: var(--yellow); } input:invalid { border: 2px solid var(--orange); } footer { background-color: var(--dkr-green); color: var(--yellow); text-align: center; padding: 1rem 0; font-size: 0.9rem; font-family: Arial, sans-serif; margin-top: 3rem; border-top: 1px solid #444; } footer p { margin: 0.25rem 0; font-size: clamp(0.9rem, 2vw, 1.1rem); }