@font-face {
  font-family: MeteoDigits;
  src: local('Arial Narrow');
}
@font-face {
    font-family: 'Goodland';
    src: url('font/Goodland Compressed.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Goodland';
    src: url('font/Goodland Compressed Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Goodland';
    src: url('font/Goodland Compressed Extra Bold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
  --gold: #9b841b;
  --metal: #737373;
  --dark: #303030;
  --paper: #efeceb;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #111;
  font-family: 'Goodland', Arial, sans-serif;
  
}

/* ===== HEADER ===== */
header {
    background: #8f7400;
    padding: 10px 20px;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.icons {
    height: 34px;
}

.nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
	font-size: clamp(20px, 3vw, 26px);
}

.panel {
  position: relative;
  width: 100vw;
  height: 62.5vw;
  background-image: url('alap.png');
  background-size: cover;
  
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 7px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .045) 0 1px, transparent 1px 9px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.plate-lines {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  background: rgba(40, 40, 40, .55);
  box-shadow: 0 2px rgba(255, 255, 255, .18);
}

.line-top {
  top: 19%;
}

.line-mid {
  top: 50%;
}

.city-block {
  font-family: 'Goodland';
  position: absolute;
  top: 19vw;
  left: 12vw;
  transform: translateY(-50%);
  width: 34%;
  z-index: 2;
  text-transform: uppercase;
}

.city-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 5.5vw;
  color: #1f1f1f;
  text-shadow: 0 1px rgba(255, 255, 255, .25);
}

.globe-mark {
  font-size: .9em;
  font-weight: 400;
}

.date-row {
  font-size: 5vw;
  color: #333;
  font-weight: 300;
  letter-spacing: 2px;
}

.country-row {
  font-size: 3vw;
  color: #2f2f2f;
  letter-spacing: 1px;
  opacity: .85;
}

.dial {
  border-radius: 50%;
  background: linear-gradient(145deg, #f9f7f6, #d9d4d2);
  border: 6px solid #9b9b9b;
  box-shadow: 0 0 0 5px #343434, 0 0 0 8px #b7b7b7, inset 0 0 18px rgba(0, 0, 0, .23), 0 8px 18px rgba(0, 0, 0, .45);
}

.large {
  position: absolute;
  top: 6.0vw;
  left: 36.1vw;
  width: 25.3vw;
  height: 25.3vw;
  z-index: 3;
}

.dial-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;  
}

.gauges {
  position: absolute;
  left: 11.5vw;
  right: 14.5vw;
  top: 38vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.gauge {
  width: 19vw;
  height: 19vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.value {
  font-family: 'Goodland', Arial, sans-serif;
  font-size: 8vw;
  line-height: .82;
  color: var(--gold);
  font-weight: 300;
}

.unit {
  font-size: 4vw;
  color: var(--gold);
  line-height: 1;
}

.mini-icon {
  position: absolute;
  top: 18%;
  font-size: clamp(18px, 2.1vw, 30px);
  color: #8b3141;
  opacity: .85;
}

#pressureValue {
  /*font-size: clamp(46px, 6.2vw, 80px);*/
}

.globe-svg {
  width: 100%;
  height: 100%;
  display: block;
  /*background: radial-gradient(circle at 35% 30%, #bfeeff, #1b82bd 70%, #0b4566);*/
  opacity: 1;
  transition: opacity .8s ease;
}

.graticule {
  fill: none;
  stroke: rgba(255, 255, 255, .35);
  stroke-width: .7;
}

.land {
  fill: #d7d7d7;
  stroke: rgba(40, 40, 40, .35);
  stroke-width: .35;
}

.active-land {
  fill: #005495;
  stroke: #ffffff;
  stroke-width: .75;
}

.target-dot {
  fill: #ffdb38;
  stroke: white;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px #fff);
}

.weather-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 108px;  
  transition: opacity .8s ease;
}

.weather-icon.hidden,
.globe-svg.hidden {
  opacity: 0;
  pointer-events: none;
}


.weather-icon.day-clear {
  background-image: url(derult_nappal.png);
  background-size: contain;
}

.weather-icon.day-partly {
  background-image: url(felig_derult_nappal.png);
  background-size: contain;
}

.weather-icon.day-cloudy {
  background-image: url(borult_nappal.png);
  background-size: contain;
}

.weather-icon.day-fog {
  background-image: url(kodos_nappal.png);
  background-size: contain;
}

.weather-icon.day-rain {
  background-image: url(esos_nappal.png);
  background-size: contain;
}

.weather-icon.day-freezing {
  background-image: url(onos_nappal.png);
  background-size: contain;
}

.weather-icon.day-snow {
  background-image: url(havazas_nappal.png);
  background-size: contain;
}

.weather-icon.day-storm {
  background-image: url(zivatar_nappal.png);
  background-size: contain;
}

.weather-icon.night-clear {
  background-image: url(derult_ejjel.png);
  background-size: contain;
}

.weather-icon.night-partly {
  background-image: url(felig_derult_ejjel.png);
  background-size: contain;
}

.weather-icon.night-cloudy {
  background-image: url(borult_ejjel.png);
  background-size: contain;
}

.weather-icon.night-fog {
  background-image: url(kodos_ejjel.png);
  background-size: contain;
}

.weather-icon.night-rain {
  background-image: url(esos_ejjel.png);
  background-size: contain;
}

.weather-icon.night-freezing {
  background-image: url(onos_ejjel.png);
  background-size: contain;
}

.weather-icon.night-snow {
  background-image: url(havazas_ejjel.png);
  background-size: contain;
}

.weather-icon.night-storm {
  background-image: url(zivatar_ejjel.png);
  background-size: contain;
}

.status {
  position: absolute;
  right: 24px;
  bottom: 12px;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  letter-spacing: .5px;
  z-index: 4;
  display: none;
}

#globeSvg {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#globeSvg.hidden {
  opacity: 0;
  transform: scale(0.9);
}

/* ===== RESZPONZÍV ===== */

@media (min-width: 1025px) {

	.panel {
        width: 100%;			
    }
	
    body {
        background-position: center top;
		background-size: 100%; 
		margin: 0;
        overflow-y: auto; 
    }
	
}

@media (max-width: 1024px) {

    .panel {
        grid-template-columns: 1fr; 
    }

	 body {
        background-position: center top;
		background-size: 100%; 
    }
}