Когда вы используете media screen
, вам нужно добавить ключевое слово and
между screen
и (width)
. У вас 3 пропущенных скобки для медиазапросов. Пожалуйста, используйте CSS валидаторы онлайн или IDE.
См. Ниже рабочий css.
body {
margin: 0;
padding: 0;
background-color: hsl(0, 0%, 90%);
box-sizing: border-box;
text-align: center;
}
a {
text-decoration: none;
outline: none;
}
nav {
width: 100%;
background: #f5f0ec;
padding: 0 50px;
box-sizing: border-box;
position: sticky;
z-index: 1;
}
nav h1 {
margin: 0;
float: left;
padding: 15px 20px;
}
nav h1 a {
color: #000000;
font-family: "multiverseregular";
font-size: 2em;
text-decoration: none;
content: "?";
}
nav h1 span {
margin-left: 10px;
font-weight: 100;
}
nav ul {
margin: 0;
padding: 0;
float: right;
}
nav ul li {
list-style: none;
display: inline-block;
padding: 45px 30px;
transition: 0.5s;
}
nav ul li a {
color: #000000;
font-family: "Simonetta";
text-transform: uppercase;
text-decoration: none;
}
nav ul li:hover {
background: #3cdde8;
border-radius: 8px;
}
.responsive-bar {
width: 50%;
background-color: #f5f0ec;
padding: 10px 30px;
box-sizing: border-box;
display: none;
}
.responsive-bar h3 {
margin: 0;
padding: 3px 0;
color: #000000;
float: left;
}
.responsive-bar a {
color: #fff;
text-decoration: none;
}
.responsive-bar .menu {
margin: 16px auto;
padding: 0;
color: #fff;
float: right;
padding: 5px 10px;
background-color: #3cdde8;
text-transform: uppercase;
cursor: pointer;
}
.banner {
position: relative;
min-height: 350px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
color: rgb(255, 255, 255);
padding: 35px 0 10px;
}
.banner .container {
z-index: 1;
}
.container {
max-width: 1238px;
padding: 0 34px;
margin: 0px auto;
}
.banner h1 {
position: relative;
font-size: 30px;
font-family: "joules_et_jaqueshand";
letter-spacing: 5px;
font-weight: 700;
line-height: 50px;
color: black;
top: -90px;
margin-bottom: 12px;
}
.banner p {
position: relative;
max-width: 750px;
margin-left: auto;
margin-right: auto;
text-transform: uppercase;
color: black;
font-family: "Simonetta";
font-size: 15px;
top: -90px;
opacity: 0.73;
font-weight: 400;
line-height: 32px;
}
.search {
position: relative;
top: -50px;
overflow: auto;
border-radius: 5px;
left: 150px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
.search input[type="text"] {
border: 0px;
width: 65%;
padding: 10px 10px;
}
.search input[type="text"]:focus {
outline: 0;
}
.search input[type="submit"] {
position: relative;
left: -72px;
border: 0px;
background: none;
background-color: #88d1b3;
color: #fff;
float: right;
padding: 10px;
text-transform: uppercase;
outline: 0;
border-top-right-radius: 5px;
-moz-border-radius-top-right: 5px;
-webkit-border-radius-top-right: 5px;
border-bottom-right-radius: 5px;
-moz-border-radius-bottom-right: 5px;
-webkit-border-radius-bottom-right: 5px;
cursor: pointer;
}
.search button {
background-color: #0074d9;
color: #f2f2f2;
padding: 5px 10px;
margin-right: 16px;
font-size: 12px;
border: none;
cursor: pointer;
border-radius: 2px;
}
#stretch1 {
background-image: url(img/austin.jpg);
}
#stretch2 {
background-image: url(img/kaboompics.jpg);
}
#stretch3 {
background-image: url(img/save-money.jpg);
}
#stretch4 {
background-image: url(img/cheap-travel.jpg);
background-position: center center;
}
.bg-stretch {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
background-size: cover;
margin: 0px;
background-position: 80% 80%;
background-repeat: no-repeat;
}
.container {
max-width: 1238px;
padding: 0 34px;
margin: 0 auto;
}
.container h2 {
color: #000000;
font-family: "joules_et_jaqueshand";
letter-spacing: 5px;
font-size: 30px;
margin-top: 70px;
font-weight: 700;
text-align: center;
margin-bottom: 70px;
word-spacing: -1.5px;
}
.cards {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.card {
flex: 0 1 32%;
background: white;
margin-bottom: 2em;
}
.cards a {
text-decoration: none;
color: #2e4152;
font-family: "Cardo", serif;
font-size: 22px;
font-weight: 700;
background-color: transparent;
}
.cards a:hover {
color: #1fe767;
transition: color 0.25s ease-in-out;
}
.cards h3 {
text-align: center;
font-family: "Cardo", serif;
}
.cards p {
margin: 1em;
font-family: "Cardo", sans-serif;
color: rgb(0, 0, 0);
display: block;
line-height: 28px;
font-size: 18px;
}
img {
display: block;
border: 0;
width: 100%;
height: auto;
}
.coming-up h2 {
text-align: center;
font-family: "joules_et_jaqueshand";
letter-spacing: 5px;
font-size: 30px;
color: #000000;
margin-bottom: 70px;
margin-top: 70px;
}
.coming-up-block {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin-left: -15px;
margin-right: -15px;
}
.coming-up-item {
flex: 0 2 43.7%;
max-width: 50%;
padding: 0 15px;
margin-bottom: 30px;
}
.coming-up-inner {
background-color: #fff;
display: flex;
align-items: center;
padding: 40px 62px;
}
.coming-up-ico {
margin-right: 31px;
flex: 0 0 auto;
max-width: 100px;
}
.coming-up-block img {
max-width: 100%;
height: auto;
vertical-align: top;
}
.coming-up-name {
line-height: 1.5;
}
.coming-up-name {
overflow: hidden;
text-overflow: ellipsis;
}
#stretch5 {
display: flex;
justify-content: center;
align-items: center;
height: 30em;
background-image: url(img/newsletter.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: 50% 50%;
}
.frame {
position: relative;
height: 25em;
top: 50px;
bottom: 100px;
margin: auto;
width: 100%;
border: 5px solid #fff;
margin-left: auto;
margin-right: auto;
transform: scale(0.8975, 0.8975) translate(-68.5808px, -31.2925px);
}
.frame h2 {
font-size: 1.4em;
}
form {
position: relative;
left: -100px;
margin-left: 25%;
margin-right: 25%;
width: 50%;
}
.frame input[type="button"] {
padding: 5px 15px;
background: #f7e0cd;
position: relative;
left: 100px;
text-transform: uppercase;
border: 0 none;
display: inline-block;
margin: auto;
outline: 0;
cursor: pointer;
border-radius: 4px;
height: 3em;
width: 100px;
box-sizing: border-box;
}
.vip-list-paragraph {
font-family: "Simonetta";
text-align: center;
position: relative;
top: -30px;
text-transform: uppercase;
font-weight: 400;
opacity: 0.73;
}
.vip {
color: #e0b080;
}
.coming-up a {
text-decoration: none;
padding-left: 20px;
margin-bottom: 10px;
color: #000000;
font-size: 22px;
font-weight: 600;
font-family: "Cardo", serif;
transition: color 0.25s ease-in-out;
}
.coming-up>a:hover {
color: #1fe767;
}
.most-popular {
width: 90%;
max-width: 1240px;
margin: 50px;
}
.most-popular h1 {
text-align: center;
font-family: "joules_et_jaqueshand";
letter-spacing: 5px;
font-size: 30px;
margin-bottom: 80px;
}
.item-3 {
height: 100%;
}
.item-4 {
height: 100%;
}
.footer {
width: 100%;
height: auto;
background: #272727;
margin-top: 20px;
}
.footer-social-icons {
width: 100%;
height: auto;
margin: auto;
}
.footer-social-icons ul {
margin: 0px;
padding: 0px;
text-align: center;
}
.footer-social-icons ul li {
display: inline-block;
width: 50px;
height: 50px;
margin: 30px 10px;
border-radius: 100%;
background: #fff;
}
.footer-social-icons ul li a {
color: #272727;
font-size: 25px;
}
.footer-social-icons ul li i {
line-height: 55px;
position: relative;
left: -25px;
top: -15px;
}
.footer-menu-one {
width: 100%;
height: auto;
margin-top: 2px;
text-align: center;
}
.footer-menu-one ul {
display: inline-table;
margin-top: 0;
justify-content: center;
}
.footer-menu-one ul li {
display: inline;
margin: 0;
padding: 0;
}
.footer-menu-one ul li a {
font-family: "Cardo", serif;
font-size: 15px;
font-weight: 500;
color: #fff;
text-transform: uppercase;
}
.footer-bottom p {
width: 100%;
height: 100%;
padding-bottom: 10px;
background-color: #272727;
padding: auto;
font-family: "Vollkorn SC", serif;
font-size: 14px;
font-weight: 400;
text-align: center;
color: #fff;
}
.footer-bottom a {
font-family: "Vollkorn SC", serif;
font-size: 14px;
color: #fff;
font-weight: 400;
white-space: normal;
}
#contact-form {
display: block;
width: 100%;
max-width: 640px;
margin: 0 auto;
}
.label {
font-size: 0.8rem;
margin: 2rem 0 0;
display: block;
}
input,
textarea {
font-family: "Cardo", serif;
-webkit-appearance: none;
-moz-appearance: none;
}
textarea {
height: 8rem;
}
.error-msg {
margin-top: -8px;
}
input#submit {
border: none;
margin: 3rem auto;
}
.field {
position: relative;
margin-bottom: 1rem;
}
.contact-field {
width: 100%;
font-size: 16px;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border: 1px solid #dcdcdc;
background-color: #ffffff;
padding: 0.75rem 1rem;
max-width: 600px;
}
p.antispam {
display: none;
}
.error-status {
font-size: 1.2rem;
font-weight: bold;
text-align: center;
color: red;
}
.btn {
padding: 0.5rem 1rem;
background-color: #117fb2;
display: block;
max-width: 250px;
margin: 0 auto;
font-size: 1em;
font-weight: 400;
color: #ffffff;
text-decoration: none;
opacity: 0.8;
border-radius: 1px;
transition: all 0.3s ease;
margin-bottom: 5px;
border: none;
}
.btn:hover {
opacity: 1;
}
.container {
max-width: 1238px;
padding: 0 5px;
margin: 0 auto;
}
.contact-section {
display: flex;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
font-size: 18px;
line-height: 34px;
color: #92a3b0;
padding: 86px 0 67px 0;
margin-left: 4em;
}
.contact-section .col {
width: 100%;
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
align-items: start;
padding: 4px 30px 0 0;
}
.contact-section h1 {
font-size: 38px;
letter-spacing: 0.85px;
color: #2e4152;
width: 100%;
margin-bottom: 44px;
}
.send-block {
padding-bottom: 0.5em;
}
.send-block .title {
margin-bottom: 4px;
}
.contact-section .title {
font-size: 14px;
text-transform: uppercase;
letter-spacing: 2.33px;
color: #2e4152;
display: block;
}
.fa-paper-plane .fa-envelope {
position: relative;
font-size: 16px;
}
.follow-block {
width: 48%;
margin-left: 3em;
overflow: hidden;
}
.follow-block .title {
margin-bottom: 12px;
}
.contact-section .title i {
color: #04e77a;
}
.contact-section .social-networks {
margin: 0 -26px 0 -5px;
}
.contact-section .social-networks i {
font-size: 26px;
}
.contact-section .social-networks a {
display: block;
}
.social-networks a i {
padding-top: 2px;
}
.fa-facebook-f,
.fa-pinterest,
.fa-instagram-square {
font-size: 5px;
color: #04e77a;
}
.social-networks {
display: flex;
flex-wrap: wrap;
max-width: 500px;
}
.social-networks {
list-style-type: none;
}
.social-networks li {
position: relative;
padding-right: 25px;
left: -30px;
}
.icon-thumbs-up {
margin-right: -1px;
top: 0;
}
.send-block a {
-webkit-transition: color 0.25s ease-in-out;
transition: color 0.25s ease-in-out;
text-decoration: none;
}
.fa-paper-plane {
top: 2px;
margin-right: 8px;
}
.email-button {
font-size: 12px;
font-weight: 500;
text-transform: none;
padding: 6px 24px 6px 20px;
}
.fa-envelope {
position: relative;
font-size: 18px;
margin-right: 4px;
top: 1px;
left: -35px;
}
.btn1 {
-webkit-transition: color 0.25s ease-in-out;
transition: color 0.25s ease-in-out;
background-color: #04e77a;
border-radius: 2px;
color: #fff;
padding: 8px 60px;
text-transform: uppercase;
border: none;
font-weight: 700;
position: relative;
overflow: hidden;
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
display: block;
z-index: 1;
text-align: left;
}
@media screen and (min-width: 320px) {
.frame {
position: relative;
left: 66px;
right: 0;
margin-left: 0 auto;
margin-right: 0 auto;
width: 70%;
}
.frame input[type="submit"] {
position: relative;
left: 7em;
right: 0;
top: 0.5em;
margin-left: 0 auto;
margin-right: 0 auto;
width: 40%;
}
.footer-social-icons ul li {
display: inline-block;
width: 40px;
height: 40px;
margin: 30px 10px;
border-radius: 100%;
background: #fff;
}
.footer-social-icons ul li a {
color: #272727;
font-size: 20px;
}
.footer-social-icons ul li a i {
line-height: 55px;
position: relative;
left: -0.47em;
top: -0.43em;
}
.footer-menu-one ul li {
display: flexbox;
flex-direction: column;
margin-right: 3.125em;
}
}
@media screen and (min-width: 480px) {
.band {
grid-template-columns: 1fr 1fr;
}
}
@media screen and (min-width: 60em) {
.band {
grid-template-columns: repeat(4, 1fr);
}
.item-1 {
grid-column: 1 / span 2;
}
.band h1 {
font-size: 24px;
}
}
@media screen and (max-width: 900px) {
nav {
display: none;
}
.responsive-bar {
display: block;
}
nav h1 {
display: block;
float: none;
}
nav ul {
float: none;
}
nav ul li {
display: block;
text-align: center;
background: #f5f0ec;
padding: 15px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
nav ul li:hover {
background: #3cdde8;
}
nav ul li a {
color: #000000;
}
h1.brand {
display: none;
}
.responsive-bar h3 a {
color: #000000;
}
.coming-up a {
font-size: 13.5px;
}
#newsletter-block {
width: 100%;
display: block;
}
}
@media only screen and (min-width: 150px) and (max-width: 780px) {
.search {
width: 95%;
margin-left: 45px;
top: -80px;
}
}
@media (max-width: 767px) {
.responsive-bar .brand span {
margin-left: 10px;
}
.responsive-bar .brand a {
color: #000000;
font-family: "multiverseregular";
src: url(fonts/multiverse-webfont.woff2);
font-size: 1.9em;
text-decoration: none;
content: "?";
}
.banner h1 {
font-size: 20px;
}
.banner p {
font-size: 10px;
}
.cards {
display: flex;
justify-content: space-between;
flex-direction: column;
}
.card {
flex: 0 1 100%;
}
.coming-up-block {
margin-left: 0;
margin-right: 0;
}
.coming-up-name a {
font-size: 15px;
display: block;
}
.coming-up-block .coming-up-item {
flex-basis: 100%;
max-width: 100%;
margin-bottom: 15px;
}
.coming-up-block {
display: flex;
flex-direction: column;
flex-wrap: wrap;
margin-left: 15px;
margin-right: 15px;
}
.coming-up-ico {
display: block;
}
.container {
padding: 0;
}
.contact-section {
padding: 60px 34px 49px 34px;
}
.send-block {
position: relative;
width: 130%;
left: -55px;
margin-right: 10px;
}
.follow-block {
position: relative;
width: 100%;
margin: 10px 10px 10px;
}
.form-contact {
position: relative;
left: -50px;
}
.footer-social-icons ul li {
display: inline-block;
width: 40px;
height: 40px;
margin: 30px 10px;
border-radius: 100%;
background: #fff;
}
.footer-social-icons ul li a {
color: #272727;
font-size: 20px;
}
.footer-social-icons ul li a i {
line-height: 55px;
position: relative;
left: -9px;
top: -7px;
}
.footer-menu-one ul li {
display: inline-block;
margin-right: 15px auto;
}
.footer-menu-one ul {
display: flex;
line-height: 30px;
flex-direction: column;
}
.follow-block {
margin: 20px auto;
}
.contact-section .social-networks {
justify-content: flex-start;
-webkit-box-pack: start;
}
.col h1 {
position: relative;
left: -20px;
font-size: 1.5em;
text-align: left;
}
.email-button {
font-size: 12px;
}
}
@media (max-width: 784px) and (min-width: 768px) {
.coming-up .coming-up-inner {
padding: 35px;
}
}
@media (min-width: 1023px) {
.coming-up .coming-up-inner {
padding: 40px;
}
.contact-section {
flex-wrap: wrap;
}
.contact-section .col {
padding: 4px 0 0 0;
margin-bottom: 25px;
}
.social-networks {
width: 100%;
}
}
<body>
<nav>
<h1 class="brand"><a href="#">Enomad<span style='font-size:12px;'>🌴</span></a></h1>
<ul>
<li><a href="money.html">Make money online</a></li>
<li><a href="management.html">Money management</a></li>
<li><a href="social.html">Rock your social media</a></li>
<li><a href="travel.html">Cheap travel</a></li>
</ul>
<div style="clear: both"></div>
</nav>
<div class="responsive-bar">
<h3 class="brand">
<a href="#"></a>
</h3>
<h4 class="menu">Menu</h4>
<div style="clear: both"></div>
</div>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.menu').click(function() {
$('nav').slideToggle('500');
});
});
</script>
<div class="banner">
<div class="container">
<h1>Money management</h1>
<p>
Do you want to save money and pay off debt? Try this top money management tips to get your finances in order.
</p>
<div class="search">
<form action="#">
<input type="text" name="search" placeholder="Search for articles...">
<input type="submit" value="Submit">
</form>
</div>
</div>
</div>
<div class="bg-stretch" id="stretch3"></div>
<div class="centered">
<div class="container">
<div class="help">
<h2>What is your main problem?</h2>
<div class="cards">
<section class="card">
<picture class="thumbnail"><img src="img/savemoneytips.jpg"></picture>
<h3 class="help-item-title"><a href="#">50 top saving money tips</a></h3>
<p>How to save money without much effort and even a small salary? Here are some ways everyone can benefit, regardless of earnings.
</p>
</section>
<section class="card">
<picture class="thumbnail"><img src="img/coupons.jpg"></picture>
<h3 class="help-item-title"><a href="#">20 best coupon websites</a></h3>
<p>All promotions and sales available online. Discount codes and coupons for hundreds of online stores. Find your store and take advantage of discounts!</p>
</section>
<section class="card">
<picture class="thumbnail"><img src="img/groceryapps.jpg"></picture>
<h3 class="help-item-title"><a href="#">Smart apps for save money on groceries</a></h3>
<p>Don't waste food and save money! Here are the best applications for everyday use that everyone should know.</p>
</section>
</div>
</div>
</div>
<div class="coming-up">
<h2>Learn more about</h2>
<div class="coming-up-block">
<div class="coming-up-item">
<div class="coming-up-inner">
<div class="coming-up-ico">
<img src="img/icons/gadgets.png">
</div>
<div class="coming-up-name">
<a href="#">Save on gadgets</a>
</div>
</div>
</div>
<div class="coming-up-item">
<div class="coming-up-inner">
<div class="coming-up-ico">
<img src="img/icons/meal.png">
</div>
<div class="coming-up-name">
<a href="#">Plan your meals</a>
</div>
</div>
</div>
<div class="coming-up-item">
<div class="coming-up-inner">
<div class="coming-up-ico">
<img src="img/icons/subscription.png">
</div>
<div class="coming-up-name">
<a href="#">Subscription services</a>
</div>
</div>
</div>
<div class="coming-up-item">
<div class="coming-up-inner">
<div class="coming-up-ico">
<img src="img/icons/transport.png">
</div>
<div class="coming-up-name">
<a href="#">Cut transport costs</a>
</div>
</div>
</div>
<div class="coming-up-item">
<div class="coming-up-inner">
<div class="coming-up-ico">
<img src="img/icons/yoga.png">
</div>
<div class="coming-up-name">
<a href="#">Reduce entertainment expenses</a>
</div>
</div>
</div>
<div class="coming-up-item">
<div class="coming-up-inner">
<div class="coming-up-ico">
<img src="img/icons/travel.png">
</div>
<div class="coming-up-name">
<a href="#">Budget travel</a>
</div>
</div>
</div>
</div>
<div>
</div>
<div id="stretch5" class="newsletter-opt-in">
<div class="frame">
<h2>Join our<span class="vip">VIP list</span></h2>
<p class="vip-list-paragraph">For the exclusive tips, free resources and best tips</p>
<form action="#>
<input type=" button " value="SUBSCRIBE ">
</form>
</div>
</div>
<div class="most-popular ">
<h1>Most popular articles</h1>
</div>
<div class="band ">
<div class="item-1 ">
<a href="# " class="card ">
<div class="thumb ">
<article>
<h1></h1>
<span></span>
</article>
</div>
</a>
</div>
</div>
<div class="footer ">
<div class="footer-social-icons ">
<ul>
<li><a href="# " target="blank "><i class="fab fa-facebook "></i></a></li>
<li><a href="# " target="blank "><i class="fab fa-instagram "></i></a></li>
<li><a href="# " target="blank "><i class="fab fa-twitter "></i></a></li>
<li><a href="# " target="blank "><i class="fab fa-pinterest-square "></i></a></li>
</ul>
</div>
<div class="footer-menu-one ">
<div>
<ul>
<li><a href="# ">About us</a></li>
<li><a href="# ">Make money online</a></li>
<li><a href="# ">Money management</a></li>
<li><a href="# ">Rock your social media</a></li>
<li><a href="# ">Cheap Travel</a></li>
<li><a href="contact.html ">Contact</a></li>
</ul>
</div>
</div>
<hr>
<div class="footer-bottom ">
<p>Design by:<a href="# ">SF Studio</a></p>
</div>
</body>
</html