@import url("https://fonts.googleapis.com/css2?family=Shippori+Antique"); html, body { font-family: "Shippori Antique", sans-serif; margin: 0; padding: 0; color: black; } a, a:visited { text-decoration: none; color: black; transition: color 0.3s ease-in; } a:hover { color: white; } header { display: flex; } nav { flex-grow: 1; } header div { text-align: right; flex-grow: 0; white-space: nowrap; } header a:hover { color: #ffb444; } nav ul { padding: 0; } nav ul li { padding: 10px 10px; list-style: none; margin-top: 8px; font-size: 24px; /* text-align: center; */ color: black; display: inline-block; /* background-color: linear-gradient(90deg, rgba(64,64,64,0.8) 0%, rgba(64,64,64,0.3) 75%, rgba(64,64,64,0) 100%); */ } nav a:hover { color: #39dbff; } main { height: 100%; margin-left: auto; margin-right: auto; display: flex; flex-wrap: wrap; justify-content: space-between; flex-direction: row; } section { flex: 1; } .red-bg { background-color: #ff5e5e; } .orange-bg { background-color: #ffb444; } .yellow-bg { background-color: #fef500; } .green-bg { background-color: #00ff75; } .blue-bg { background-color: #39dbff; } .purple-bg { background-color: #dd7dfd; } .shadow { box-shadow: black 4px 4px; } .hero { background-position: center; background-repeat: no-repeat; background-size: cover; color: black; padding-left: 30px; box-sizing: black 4px 4px; padding: 8px; flex-basis: 100%; } .hero h1 { font-size: 36px; padding: 20px 30px; margin-left: auto; margin-right: auto; font-weight: 800; color: black; } .hero h2 { font-size: 28px; font-weight: normal; padding: 0 20px; margin-left: auto; margin-right: auto; font-weight: 500; } .hero p { padding: 0 20px; font-weight: 500; } .splash { width: 50%; height: 100vh; background: url("../images/marios-gkortsilas-JCeQHpTpU24-unsplash.jpg"); background-repeat: no-repeat; background-size: cover; background-position: center; } .summary { width: 50%; padding: 30px; } .news { padding: 30px; flex-grow: 1; flex-basis: 100%; } .news article { box-shadow: black 4px 4px; padding: 30px; } .news article p.signoff { text-align: right; } a.button.primary { color: black; text-decoration: none; text-shadow: none; border: 4px solid black; padding: 10px; border-radius: 8px; background-color: white; box-shadow: black 0px 0px 0px; transition: color 0.3s ease-in, background-color 0.3s ease-in, border-color 0.3s ease-in; } a.button.primary:hover { background-color: black; color: white; } footer { text-align: center; } footer a:hover { color: #ff5e5e; } .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s, height 0.35s; overflow: hidden; background: black; z-index: -1; } #main-menu { /* display: block; */ height: 100px; width: 100%; margin: 0px; } #main-menu ul { max-width: 800px; width: 100%; height: 100%; margin: 0px; padding: 0px; } #main-menu li { list-style-type: none; font-size: 2rem; } #main-menu a { font-size: 1.5rem; text-decoration: none; } #hamburger-input { display: none; } #hamburger-menu { position: fixed; top: 15px; left: 15px; width: 40px; height: 40px; display: none; border: none; padding: 0px; margin: 0px; font-family: "Cabin", Sans-serif; background: linear-gradient( to bottom, black, black 20%, transparent 20%, transparent 40%, black 40%, black 60%, transparent 60%, transparent 80%, black 80%, black 100% ); } #hamburger-menu #sidebar-menu { visibility: hidden; position: fixed; top: 0; left: -250px; width: 200px; height: 100%; background-color: #dd7dfd; border-right: solid black 5px; transition: 0.3s; padding: 0px 10px; box-sizing: border-box; } #hamburger-menu h3 { font-size: 36px; } #hamburger-menu ul { padding-left: 0px; } #hamburger-menu li { list-style-type: none; line-height: 36px; display: block; } #hamburger-menu a { font-size: 1.3rem; } #hamburger-input:checked + #hamburger-menu #sidebar-menu { visibility: visible; left: 0; } #hamburger-input:checked ~ .overlay { visibility: visible; opacity: 0.4; } /* Too big */ @media screen and (min-width: 1280px) { nav ul li { font-size: 28px; } .hero h1 { font-size: 48px; } .hero h2 { font-size: 36px; } } /* Too small */ @media screen and (max-width: 750px) { header { padding: 0; } .hero h1 { font-size: 32px; } .hero h2 { font-size: 20px; } #main-menu { display: none; } #hamburger-menu { display: block; } #sidebar-menu { flex-flow: column; } main { flex-flow: column; } .splash { flex: auto; width: 100%; height: 300px; } .summary { flex: auto; flex-basis: 100%; width: auto; } }