@keyframes fadeIn {
  0% { 
    opacity: 0; 
  }

  100% { 
    opacity: 1; 
  }
}

:root {
  --dk_font: #F2E9E4;
  --lk_font: #22223B;
  --ed: #9A8C98;
  --erd-lite: #7278A2;
  --erd: #4A4E69;
  --font: Monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: url("/images/bgMain.png") no-repeat center center;
  background-size: cover;
  overflow: hidden;
  transition-duration: 2s;
  
  font-family: var(--font);
  
  .drum {
    visibility: hidden;
  }
}

header {
  position: fixed;
  top: 0; left: 0; width: 100%; z-index: 10;
  background: var(--erd);
}

header ul { 
  list-style-type: none;
  margin: 0; padding: 0;
  border-bottom: 1px solid var(--erd);
}

header li {
  float: left;
  border-right: 1px solid var(--erd);
}

header li a {
  display: block;
  color: white;
  text-align: center;
  padding: 13px 16px;
  text-decoration: none;
}

header li a:hover {
  background: var(--erd-lite);
}

header li a.active {
  background: var(--erd-lite);
  border: none;
}

body:hover {
  background-image: url("/images/bgHover.png");
  
  .drum {
    visibility: visible;
    animation: fadeIn 3s;
  }
}

.drum {
  position: fixed;
  text-align: center;
  
  width: 100%;
}

/* Săgeți */
.sageata_stanga {
  left: 1%;
}

.sageata_dreapta {
  right: 1%;
}

.sageata {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--dk_font);
  background: var(--erd-lite);
  border: 1px solid var(--erd);
  cursor: pointer;
  z-index: 9999;
}

/* Clădiri */
.cladiri {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2vw;
  z-index: 2;
}

.cladiri img {
  display: block;
  height: auto;
  object-fit: contain;
  
  transition: opacity 0.5s;
}

.contImagini {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.contImagini img {
  display: block;
  transition: opacity 0.3s ease;
  height: auto;
}

.imgHover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

.contImagini:hover .imgHover {
  opacity: 1;
}

.contImagini:hover .imgPrincipala {
  opacity: 0;
}

.cladiri {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2vw;
  padding-bottom: 2vh;
}

.cladiri img {
  max-height: 70vh; 
}

.contImagini {
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.contImagini img {
  width: 100%;
}