/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } :root { --fonts: "multi-display", sans-serif, serif; --off-white: #edede9; --tan: rgb(245, 235, 224); --pink: rgb(224, 175, 160); } body { background-color: var(--off-white); font-family: var(--fonts); line-height: 1.35; margin: 0; } header { width: 1440px; height: 10vh; display: flex; justify-content: space-around; align-items: center; margin: 0 auto; } h1 { justify-content: flex-start; font-size: 2rem; font-weight: bold; background-color: var(--pink); padding: 1rem; border-radius: 8px; box-shadow: 10px 5px 5px grey; } .img { width: 1440px; margin: 0 auto; } a { text-decoration: none; color: black; background-color: var(--pink); padding: 1rem; border-radius: 8px; } a:hover { text-decoration: none; color: black; background-color: var(--pink); padding: 1.5rem; border-radius: 8px; border: 2px solid black; box-shadow: 10px 5px 5px gray; } ul { list-style-type: none; } li { display: inline-block; margin: 0 2em; } main { width: 1440px; margin: 0 auto; } h2 { display: flex; justify-content: center; font-size: 1.5rem; font-weight: bold; background-color: var(--pink); width: 250px; padding: 0.5rem; margin: 2em auto; border-radius: 8px; box-shadow: 10px 5px 5px gray; } main > p { display: flex; justify-content: center; width: 600px; margin: 0 auto 2em auto; } .group1 { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 2rem; } h3 { margin-bottom: 2em; font-size: 1.25rem; font-weight: bold; background-color: var(--pink); width: 350px; display: flex; justify-content: center; padding: 1rem 0 1rem 0; border-radius: 8px; box-shadow: 10px 5px 5px gray; } .group2 { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 2rem; } footer { width: 1440px; margin: 0 auto; } footer p { margin: 1rem auto; display: flex; justify-content: center; } .img-sunset { margin: 0 auto 2rem auto; display: flex; justify-content: center; } form { width: 300px; padding: 1rem; margin: 0 auto; } input, label, textarea{ display: block; } .required { color: var(--pink); } input, textarea{ margin: 0.25rem 0 1rem 0; width: calc(100% - 8px); border: 2px solid var(--red); } input:focus, input:focus-visible, textarea:focus, textarea:focus-visible{ border-color: var(--pink); outline: 2px solid var(--pink); } input{ height: 2rem; } fieldset{ display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1rem; margin: 1rem 0; padding: 0.35em 0.75em 0.625em 0.75em; border-color: var(--pink); border: 2px groove var(--pink); } legend { padding: 0 2px; } textarea{ height: 5rem; } #my-submit{ padding: 1rem 8px; margin: 1rem auto; width: 100%; height: auto; background-color: var(--pink); color: black; border: none; font-size: 1.1rem; font-weight: bold; border-radius: 8px; } #my-submit:hover{ color: black; background-color: var(--pink); padding: 1.5rem; border-radius: 8px; border: 2px solid black; box-shadow: 10px 5px 5px gray; }