* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
}

header {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    height: 200px;
}

header img {
    padding-left: 8vw;
    padding-top: 20px;
    display: block;
}

header button {
    background-color: #1DD4FF;
    color: white;
    width: 80px;
    margin-left: 30px;
    height: 40px;
    font-size: 24px;
    border: none;
    cursor: pointer;
}

header button:focus {
    outline: none;
}

header input[type=text] {
    display: inline;
    margin-top: 40px;
    width: 180px;
    background-color: transparent;
    border: none;
    border-bottom: 1px white solid;
    color: white;
    font-size: 24px;
}

header input[type=text]:focus,
header #country:focus {
    outline: none;
}

header #country {
    margin-left: 8vw;
    display: inline;
    margin-top: 40px;
    width: 250px;
    background-color: transparent;
    border: none;
    border-bottom: 1px white solid;
    color: white;
    font-size: 24px;
}

header #country option {
    background-color: #001772;
}

header #search {
    margin-left: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    width: 500px;
    grid-gap: 10px;
}

.res {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 40px;
    padding: 0 8vw;
    margin-top: 40px;
}

.res>li {
    box-shadow: 0px 0px 6px 3px #E6E6E6;
    transition: 0.4s ease all;
    padding: 10px;
    position: relative;
    border-radius: 13px;
}

.res>li:hover {
    box-shadow: 0px 0px 6px 3px #c6c6c6;
}

.headline-img {
    width: 81px;
    height: 81px;
    background-size: cover;
    background-position: center;
}

.headline {
    font-size: 16px;
}

.headline a {
    text-decoration: none;
    color: black;
}

.headline a:hover,
.headline a:active,
.headline a:visited {
    text-decoration: none;
}

li>p {
    font-size: 12px;
    margin-bottom: 30px;
}

.top-post {
    display: grid;
    grid-template-columns: 82px 1fr;
    grid-column-gap: 10px;
    font-weight: 700;
}

.read-more {
    background-color: #8446E8;
    color: white;
    text-decoration: none;
    padding: 4px 8px;
    font-size: 12px;
    position: absolute;
    bottom: 10px;
    border-radius: 5px;
}

.read-more:hover {
    background-color: #a07ed8;
}

.read-more:active,
.read-more:visited {
    text-decoration: none;
    color: white;
}

.loading-bar {
    position: relative;
    width: 600px;
    height: 5px;
    border-radius: 0;
    overflow: hidden;
    display: block;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 48px;
}

.load-more {
    color: #001772;
    text-align: center;
    cursor: pointer;
    margin-bottom: 25px;
}

.load-more > .material-icons {
    font-size: 36px;
}

.bar {
    position: absolute;
    display: block;
    height: 5px;
    width: auto;
    min-width: 100px;
    background-color: #00aaf3;
    border-radius: 0;
    animation: bar-animation 2.7s cubic-bezier(0.74, 0.23, 0.32, 0.82) infinite;
}

.error-box {
    font-size: 22px;
    color: darkred;
    text-align: center;
}

@keyframes bar-animation {
  0% {
            transform: translateX(-150px) scaleX(1);
  }
  63% {
            transform: translateX(250px) scaleX(2.2);
  }
  100% {
            transform: translateX(625px) scaleX(1);
  }
}

@-webkit-keyframes bar-animation {
  0% {
            transform: translateX(-150px) scaleX(1);
  }
  63% {
            transform: translateX(250px) scaleX(2.2);
  }
  100% {
            transform: translateX(625px) scaleX(1);
  }
}

@media only screen and (max-width: 1600px) {
    .res {
        grid-template-columns: 1fr 1fr 1fr;
    }
  }

  @media only screen and (max-width: 1200px) {
    .res {
        grid-template-columns: 1fr 1fr;
    }
  }

  @media only screen and (max-width: 740px) {
    .res {
        grid-template-columns: 1fr;
    }
  }