@font-face {
  font-family: Raleway;
  src: url(../webfonts/Raleway-Bold.ttf);
}

@font-face {
  font-family: Inter;
  src: url(../webfonts/Inter_24pt-Bold.ttf);
}

@font-face {
  font-family: Allura;
  src: url(../webfonts/Allura-Regular.ttf);
}
@font-face {
  font-family: Roboto;
  src: url(../webfonts/Roboto-Regular.ttf);
}

#selectContainer {
  position: fixed;
  top: 10px;          
  left: 50%;           
  transform: translateX(-50%); 
  z-index: 1001;
  width: 200px;      
  border-radius: 8px;
}

html, body {
  margin: 0;
  padding: 0;
}

i{
  margin-right: 7px;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 9999;
}

#preloader h3{
  position: relative;
  text-align: center;
  font-family: Allura;
  font-size: 90px;
  color: #65b1f2;
  top: 40vh;
  animation: preloaderTitle 01s ease-in;
}

#preloader p{
  position: relative;
  font-size: 16px;
  font-family: Roboto;
  text-align: center;
  top: 39vh;
  color: white; 
  font-weight: bold;
  animation: preloaderText 1s ease-in 0.9s forwards;
}

@keyframes preloaderText {
  from{
    opacity: 0;
    color: white;
  }
  to{
    opacity: 1;
    color: #686868;

  }
}

@keyframes preloaderTitle {
  from{
    opacity: 0; 
    transform: translateY(-2%);
  }
  to{
    opacity: 1;
    transform: translateY(0%);
  }
}


#map {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
}

.modal{ 
  animation: modalFadeIn 0.8s;
  
}

.modal-dialog{
  width: 60vw !important;
  max-width: 60vw !important;
  margin-left: 20vw !important;
  border-radius: 30% !important;
}

.modal-container-custom{
  margin-left: 30vw;
  height: 65vh !important;
}

.modal-content {
  max-height: 70vh !important;
  overflow: hidden;
  border-radius: 30px !important;
}

.modal-body-custom {
  overflow-y: auto;
  max-height: calc(85vh - 120px); 
}


.modal-title-custom{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.modal-header-custom {
  display: flex;
  align-items: center;
  justify-content: center !important;
  flex-direction: column !important;
  display: inline-block !important;
}

.modal-closebutton-container{
  width: 100vw;
  
}

.modal-closebutton-container button{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
}

.modal-body-custom{
  width: 100%;
  text-align: center;
  height: 100vh;
  align-content: center;
}

.modal-body-custom-countryInfo{
  margin-top: 4vh;
  width: 100%;
  text-align: center;
  height: 100vh;
  align-content: center;
  overflow-y: auto !important;
}

.fetched-data-title{
  font-size: 22px;
  color: #65b1f2 ;
  font-family: Raleway;
}

.fetched-data-text{
  color: #686868;
  font-size: 34px;
  font-family: Inter;
}

.modal-dialog-scrollable {
  max-height: 85vh;
}


@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(3%)
  }
  to{
    opacity: 1;
    transform: translateY(0%)
  }
}

.currency-exchange-container{
  max-width: 320px;
}

/* Combined currency modal tweaks */
.currency-exchange-container input,
.currency-exchange-container select {
  font-size: 18px;
  font-family: Inter;
  color: #686868;
}

.currency-exchange-container label {
  font-size: 18px;
  font-family: Raleway;
  color: #65b1f2;
}

#convert {
  font-family: Raleway;
  font-weight: bold;
}

#result {
  font-size: 26px;
  font-family: Inter;
  color: #686868;
}

#currency .modal-body-custom {
  padding: 2rem;
  text-align: center;
}

.humidity, .wind-speed, .feels-like, .weather-description{
 font-size: 15px !important;
 padding: 12px 0px;
}

.weather-forecast-title{
  margin-bottom: 40px !important;
}

.weather-icon{
  max-height: 100px;
}

.weather-icon,
.forecast-icon-1,
.forecast-icon-2,
.forecast-icon-3,
.forecast-icon-4,
.forecast-icon-5 {
  max-width: 100%;
  height: auto;
}

.forecast-icon-1,
.forecast-icon-2,
.forecast-icon-3,
.forecast-icon-4,
.forecast-icon-5{
  max-height: 60px;
}

.wiki-summary-text {
  font-size: 13px !important; 
}

.news-description {
  font-size: 13px;
  font-family: Roboto, sans-serif;
  color: #686868;
  margin-bottom: 0.5rem;
}

.news-img {
  width: 100px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.news-title {
  font-size: 16px;
  font-family: Raleway;
  color: #333;
  font-weight: bold;
}

#wiki-image{
  max-height: 140px; 
  object-fit: contain;
}

/* Responsive tweaks */
@media (max-width: 1328px) {
  .modal-dialog {
    width: 90vw !important;
    max-width: 90vw !important;
    margin: auto !important;
  }

  .modal-body-custom-countryInfo {
    padding: 1rem;
    height: auto !important;
  }

  .fetched-data-text {
    font-size: 20px;
  }

  .fetched-data-title {
    font-size: 20px;
  }
}
