/* CSS VARIABLES */ :root{ --bt-red: #e63946; --white: #F6F3EA; --dk-green: #2E8B57; --dk-gray: #222; --gray: #b9b7b7; --fonts: "Roboto", Verdana, sans-serif, cursive; } body { font-family: var(--fonts); font-size: 1rem; line-height: 1.6; background-color: var(--white); color: var(--dk-gray); } body > * { width: 1280px; margin: 0 auto; } header { background: url(images/swiss-valley.jpg) no-repeat center center/cover; height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; text-align: center; padding-top: 40px; } nav { margin-top: 20px; display: flex; gap: 60px; } nav ul { display: flex; gap: 1rem; list-style-type: none; } nav a { text-decoration: none; font-weight: bold; color: var(--dk-gray); font-size: 1.1rem; padding: 5px; border-bottom: 2px solid transparent; transition: all 0.3s ease; } nav a:hover, nav a:focus { color: var(--white); border-bottom: 2px solid var(--white); } nav a.active { color: var(--white); border-bottom: 2px solid var(--white); } h1 { font-size: 2.8rem; color: var(--dk-gray); } h2, h3 { color: var(--dk-green); margin-bottom: 10px; } main { padding: 40px 20px; } main > section:first-of-type { text-align: center; margin-bottom: 60px; } main > section:first-of-type h2 { font-size: 2rem; } .imagepair { display: flex; gap: 40px; margin-bottom: 60px; } .box { flex: 1; background-color: var(--gray); padding: 20px; border-radius: 10px; text-align: center; } .box img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 15px; } .box p { font-size: 1rem; } footer { background-color: var(--gray); text-align: center; padding: 30px 0; font-size: 0.9rem; margin-top: 60px; } footer p { margin: 5px 0; } .form-section { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; margin-top: 60px; } .form-left { width: 45%; display: flex; flex-direction: column; } .form-left h2 { font-size: 2rem; margin-bottom: 10px; text-align: left; } .form-left p { margin-bottom: 0; text-align: left; } .form-left img { width: 100%; height: auto; border-radius: 8px; margin-top: auto; } .form-right { width: 50%; text-align:left; } form { display: flex; flex-direction: column; margin: 0; } form label { font-weight: bold; margin: 15px 0 5px; } form input, form textarea { padding: 10px; font-size: 1rem; border: 2px solid var(--gray); border-radius: 5px; transition: border-color 0.3s; width: 100%; } form input:focus, form textarea:focus { border-color: var(--dk-green); outline: none; } form input:invalid { border-color: var(--bt-red); } .radio-group { display: flex; gap: 30px; margin-top: 10px; margin-bottom: 20px; padding: 15px; border: 2px solid var(--gray); border-radius: 5px; background-color: var(--white); } .radio-group input{ margin-right: 5px; accent-color: var(--dk-green); } #my-submit{ margin-top: 20px; padding: 12px; background-color: var(--dk-green); color: var(--white); font-size: 1rem; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; width: 100%; } #my-submit:hover{ box-shadow: -3px 3px 5px var(--dk-gray); }