
@font-face {
  font-family: 'Helvetica Neue World';
  src: url('fonts/HelveticaNeueWorld-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

body, h1, h2, h3, h4, h5, h6, p, span, a {
  font-family: 'Helvetica Neue World', sans-serif;
  font-weight: bold;
}


:root {
  --banner-height: 150px;
  --line-height: 10px;
  --logo-bottom: 30px;

  --square-size: 250px;
  --squares-padding: 20px;
  --squares-margin-top: 10px;
  --square-gap: 15px;
  --label-gap: 5px;

  --square-hover-scale: 1.1;
  --square-hover-brightness: 1.2;
  --shadow-color: rgba(0,0,0,0.5);
}


html, body {
  margin: 0;
  padding: 0;
  background-image: url("images/structure.jpeg");
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;

  image-rendering: optimizeSpeed;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}


.banner {
  position: relative;
  width: 100%;
  height: calc(var(--banner-height) + var(--line-height));
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--banner-height);
  background-image: url("images/banner.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.banner-line {
  position: absolute;
  top: var(--banner-height);
  left: 0;
  right: 0;
  height: var(--line-height);
  background-image: url("images/line.png");
  background-repeat: repeat-x;
  background-size: auto;
  z-index: 1;
}

.banner-image {
  position: absolute;
  bottom: var(--logo-bottom);
  left: 20px;
  height: 100px;
  width: auto;
  z-index: 2;
}


.content {
  display: flex;
  justify-content: space-between; 
  align-items: center;          
  padding: 10px 20px;
  flex-wrap: wrap;              
  transition: all 0.5s ease;   
}

/* Left image */
.magic-sun {
  max-width: 60%;
  width: auto;
  height: auto;
  flex-shrink: 1;
  transition: all 0.5s ease; 
}


.sun-right {
  width: 80px;
  height: auto;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.5s ease;    
}

.sun-right:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}


.line2 {
  width: 100%;
  height: 10px;
  background-image: url("images/line2.png");
  background-repeat: repeat-x;
  background-size: auto;
  margin: 10px 0;
}


.squares-container {
  display: flex;
  justify-content: flex-start;
  gap: var(--square-gap);
  padding: 0 var(--squares-padding);
  margin-top: var(--squares-margin-top);
}

.square-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.square-label {
  margin-bottom: var(--label-gap);
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.square {
  width: var(--square-size);
  height: var(--square-size);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.square img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.square:hover {
  transform: scale(var(--square-hover-scale));
  filter: brightness(var(--square-hover-brightness));
  cursor: pointer;
}


.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  margin: 0 auto;
}

.modal-content img {
  flex: 1;
  max-width: 90%;
  height: auto;
  object-fit: contain;
  border: none;
  box-shadow: 0 0 20px #000;
}

#modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 101;
}


@media (max-width: 900px) {
  .content {
    flex-direction: column; 
    align-items: center;
    gap: 10px; 
  }

  .magic-sun {
    max-width: 90%;
  }

  .sun-right {
    width: 80px;
  }

  .squares-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 10px;
  }

  .square {
    width: 80%;
    max-width: 300px;
    height: auto;
  }

  .square img {
    width: 100%;
    height: auto;
  }

  .modal-content {
    flex-direction: column;
    gap: 10px;
  }
  .modal-content img {
    max-width: 90%;
  }
}
