@import url('https://fonts.cdnfonts.com/css/proxima-nova-2');
                
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: block;
  font-family: 'Proxima Nova', sans-serif;
  width: 100vw;
  min-height: 100vh;
  position: relative;
  line-height: 1.2;
}

/* h2, p {
  margin: 0.5rem 0;
} */

.no-news-container {
  height: 100vh;
  width: 100vh;
}

.no-news {
  width: 100vw;
  text-align: center;
  padding: 5rem 0;
}

.navbar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1px 8px;
  align-items: center;
}

#nav-left {
  display: flex;
}

a.navbar-brand {
  font-family: 'Newsreader', 'serif';
  font-size: 1.75rem;
  height: 2.25rem;
  align-self: center;
  margin: 0 16px 0 0;
}

.nav-item a {
  position: relative;
  padding-top: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  z-index: 12;
}

.navbar-collapse ul li a.nav-link:before {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    content: '';
    opacity: 0;
    -ms-transition: opacity 0.3s, -webkit-transform 0.3s;
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
    transition: opacity 0.3s, transform 0.3s;
    -ms-transform: translateY(10px);
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
}

.navbar-collapse ul li:hover a.nav-link:before {
	opacity: 1;
	-ms-transform: translateY(0px);
	-webkit-transform: translateY(0px);
	transform: translateY(0px);
	bottom: 5px;
	background: #dd4343;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #ffffff;
    text-decoration: none;
    background-color: #dd4343;
}

#search-container {
  display: flex;
  align-items: center;
}

.search, #countries, .select {
  border: 1px solid white;
  font-size: 14px;
  background-color: #dddddd;
  color: rgba(0,0,0,1);
  height: 1.25rem;
  width: 150px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  padding: 0 .5rem;
}

.search, #countries {
  padding-top: 2px;
}

input#search {
  padding-bottom: 2px;
}

.select {
  overflow: hidden; 
  border: none;
  position: relative;
  display: block;
  align-items: center;
  margin: 0;
}

.navbar-toggler, .select, #countries, .search {
  margin-right: 8px;
}

.select:after {
  content:"\f150";
  font-family: FontAwesome;
  color: rgba(0,0,0,0.6);
  position: absolute;
  right: 8px;
  top: 3px;
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;   
}

.dropdown {
  justify-self: center;
  position: absolute;
  top: 0;
  left: 0;
}

.search:focus, #countries:focus {
  outline: none;
}

.search::placeholder {
  color: rgba(0,0,0,0.6);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.main-screen .news-list {
  background-color: whitesmoke;
  columns: 200px;
  column-gap: 1rem;
  padding: 0 1rem 1rem 1rem;
  margin: 0;
  width: 100%;
}

.main-screen .news-list > .item {
  background-color: whitesmoke;
  width: 100%;
  display: inline-block;
  margin-top: 1rem;
  position: relative;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
}

.main-screen .news-list > .item .thumbnail img {
  width: 100%;
  object-fit: contain;
  background-color:black;
}

.main-screen .news-list > .item .content h2 {
  /* font-size: 1.2rem;
  line-height: 1.2rem; */
  font-size: 1.1rem;
  line-height: 1.1;
  font-weight: 500;
  margin: 8px 0 8px;
}

.main-screen .news-list > .item .desc {
  font-size: 15px;
  line-height: 1.2;
  color: black;
  margin-bottom: 8px;
}

.main-screen .news-list > .item .source {
  font-size: 13px;
  color: #555555;
  margin-bottom: 0;
}

.footer {
  position: static;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2rem;
  width: 100%;
  background-color: rgba(0,0,0,0.7);
  padding: 5px 2rem;
  z-index: 5;
}

#footer-link {
  align-items: center;
}

mark.red {
  color:red;
  background: none;
}

mark.white {
  color:#fff;
  background: none;
}

mark.green {
  color: green;
  background: none;
}

/* @media(min-width: 1050px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex!important;
    display: -ms-flexbox!important;
  }
} */

@media(max-width: 1050px) {

  .head-section, .footer {
    position: static;
  }

  .main-screen .news-list > .item .content h2 {
    font-size: 16px;
    font-weight: 600;
  }
  
  .main-screen .news-list > .item p {
    font-size: 15px;
  }
}

@media(max-width: 550px) {

  .navbar-brand {
    display: none;
  }

  #nav-left {
    display: flex;
  }

  #countries, .select, .search {
    width: 120px;
  }

  .navbar-toggler {
    margin-left: 0;
    height: fit-content;
  }

  .footer {
    display: none;
  }
}