#map {
    height: 100vh;
}

h1,h2,h3,h4,h5,h6,p {
  font-family: Arial, Helvetica, sans-serif;
}

.modal {
  text-align: center;
}
.modal-header {
  background-color: #4c92ff;
  color: white;
  align-items: center;
}
.dselect-wrapper .dropdown-item, .dselect-wrapper .dropdown-header {
  overflow-x: hidden;
}
#flag {
  height: 128px;
}

#countrySelect {
  position: absolute;
  z-index: 999;
  width: 15rem;
  left: 50%;
  margin-left: -7.5rem;
  margin-top: 1rem;
  text-align: center;
  background-color: white;
  border-radius: 3rem;
  color: black;
  padding: .75rem 0;
  border: 1px solid black;
  box-shadow: 0 5px 25px black;
  font-weight: bold;
}
#countrySelect:hover {
  cursor: pointer;
}

.markerImg {
  float: right;
}

#weatherIcon {
  width: 8rem;
}
#table-container {
  width: 95%;
  margin: 0 auto;
  overflow-x: auto;
}

.modal-title {
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
}
.leaflet-popup-content h5 {
  font-size: 1.25rem;
  font-weight: bold;
}
.leaflet-popup-content p {
  font-size: 1rem;
}

.leaflet-control a {
  margin: 0 auto;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
  width: 60px;
  height: 60px;
  border: none;
  padding: 0;
}

.leaflet-touch .leaflet-bar button {
  width: 45px;
  height: 45px;
}

#weatherbtn, #infobtn, #randbtn, #newsbtn, #currencybtn, #imagesbtn {
  margin: .5rem auto;
  border-radius: 50rem;
  padding: 0;
  box-shadow: 2px 2px 5px black;
}
#weatherbtn:hover, #infobtn:hover, #randbtn:hover, #newsbtn:hover, #currencybtn:hover, #imagesbtn:hover {
  -webkit-filter: brightness(70%);
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -o-transition: all .3s ease;
  -ms-transition: all .3s ease;
  transition: all .3s ease;
}
#weatherbtn img, #infobtn img, #randbtn img, #currencybtn img {
  position: absolute;
  left: calc(50% - 15px);
  top: calc(50% - 16px);
}
#newsbtn img {
  position: absolute;
  left: calc(50% - 17px);
  top: calc(50% - 16px);
}
#imagesbtn img {
  position: absolute;
  left: calc(50% - 14px);
  top: calc(50% - 16px);
}

#countryInfo .modal-body p {
  font-size: 1rem;
}
.article h3 {
  font-size: 1.2rem;
}
.article-date-readmore {
  width: 100%;
  margin: .5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.article a {
  font-size: 1rem;
  padding: .5rem;
  text-decoration: none;
}
.article p {
  font-size: 1rem;
  color: gray;
}
.article-seperator {
  border-bottom: 1px solid black;
  margin: 1.5rem 0;
}

#images .modal-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 0 auto;
  width: 100%;
}
#images .modal-body img {
  width: 90%;
  margin: .25rem auto;
}

.leaflet-control-layers-toggle {
  position: absolute;
  left: calc(50% - 22px);
  top: calc(50% - 22px);
}

.leaflet-right {
  right: 1%;
}
.leaflet-right .leaflet-control-layers-expanded {
  width: 140px;
  height: 200px;
  padding: .5rem;
}
.leaflet-control-layers-separator {
  width: 130px;
  margin: 5px -10px 5px -4px;
}
.leaflet-control-layers .leaflet-control-layers-list, .leaflet-control-layers-expanded .leaflet-control-layers-toggle .leaflet-control-layers-base {
  width: 150px;
  height: 210px;
}
.leaflet-control-layers-list {
  top: 5%;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #c42828;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 2s linear infinite;
  animation: animate-preloader 2s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}


.lds-roller,
.lds-roller div,
.lds-roller div:after {
  box-sizing: border-box;
}
.lds-roller {
  display: none;
  position: fixed;
  width: 80px;
  height: 80px;
  z-index: 999;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7.2px;
  height: 7.2px;
  border-radius: 50%;
  background: crimson;
  margin: -3.6px 0 0 -3.6px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 62.62742px;
  left: 62.62742px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 67.71281px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 70.90963px;
  left: 48.28221px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 70.90963px;
  left: 31.71779px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 67.71281px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 62.62742px;
  left: 17.37258px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12.28719px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.lds-facebook {
  display: none;
  position: absolute;
  width: 80px;
  height: 80px;
  left: calc(50% - 40px);
  bottom: calc(50% - 40px);
}
.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: #85b5ff;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}
@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%, 100% {
    top: 24px;
    height: 32px;
  }
}

@media only screen and (max-width: 450px) {
  #countrySelect {
    right: 5%;
    left: unset;
  }

  .leaflet-top.leaflet-right .leaflet-control-layers {
    height: 50px;
    width: 50px;
  }

  .leaflet-right .leaflet-control-layers-expanded {
    width: 150px !important;
  }

  @media (-webkit-min-device-pixel-ratio:0) {
    .leaflet-top.leaflet-right {
      top: 10%;
      right: 4%;
    }
    .leaflet-right .leaflet-control-layers-expanded {
      height: 250px !important;
    }
  }
  @-moz-document url-prefix('') {
    .leaflet-top.leaflet-right {
      top: 7%;
      right: 4%;
    }
  }

  .leaflet-popup-content-wrapper, .leaflet-popup-tip {
    margin-left: 3rem;
  }
}

@media only screen and (max-width: 360px) {
    #countrySelect {
      display: block;
      border-radius: 0;
      border-bottom: 2px solid black;
      width: 100%;
      margin: 0 0 1rem;
      right: unset;
      left: 0;
    }

    @media (-webkit-min-device-pixel-ratio:0) {
      .leaflet-top.leaflet-right {
        top: 7%;
        right: 2%;
      }
    }
    @-moz-document url-prefix('') {
      .leaflet-top.leaflet-right {
        top: 5.5%;
        right: 4%;
      }
    }

    .leaflet-control-zoom {
      display: none;
    }

    .leaflet-left {
      margin-top: 3rem;
    }

    .leaflet-popup-content {
      max-width: 50vw;
      max-height: 70vh;
    }
}

/* Fix layers menu height on chrome */
@media screen and (-webkit-min-device-pixel-ratio:0)
and (min-resolution:.001dpcm) {
  .leaflet-right .leaflet-control-layers-expanded {
    min-height: 230px;
    max-height: 250px !important;
  }
}