body {
  background: linear-gradient(lightblue, purple);
  display: grid;
  grid-template-rows: 20% 2.5fr 1fr 1fr;
  grid-gap: 10px;
  height: 100vh;
  margin: 0;
}

header {
  background-color: rgb(0, 0, 194);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

header p {
  color: white;
  font-family: arial;
  font-size: 10vh;
  font-weight: bold;
  margin: 0;
  background: none;
  text-shadow: none;
}

nav {
  background-color: aqua;
  display: flex;
  justify-content: center; 
  align-items: center;     
  padding: 20px;
}

section {
  background-color: aquamarine;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 10px;
  padding: 10px;
}

.section2 {
  background-color: aquamarine;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;
  padding: 10px;
}

article {
  background-color: rgb(0, 129, 172);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

aside {
  background-color: aquamarine;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

aside h3 {
  margin: 0 0 15px 0;
  color: rgb(0, 0, 194);
  font-size: 1.3rem;
  font-weight: bold;
}

aside ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

aside ul li {
  width: 100%;
}

aside ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  background-color: purple;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
}

aside ul li a:hover {
  background: linear-gradient(to right, #11998e, #38ef7d);
  transform: translateY(-2px);
}

footer {
  background-color: rgb(0, 99, 192);
  display: flex;
  justify-content: center;
  align-items: center;
}

.icons {
  display: flex;
  gap: 70px;  
}

.icons .icon {
  display: inline-block;
}

.icons .icon img {
  width: 40px;  
  height: 40px;
  object-fit: contain;
  border-radius: 8px; 
}

.grid1 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 10px;
}

.grid2 {
  display: grid;
  grid-template-columns: 70% 1fr;
  grid-gap: 10px;
}

nav ul {
  list-style-type: none; 
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: center;           
}

nav ul li {
  width: 100%;
  height: 33%; 
  display: flex;
  justify-content: center; 
  align-items: center;
}

ul li a {
  display: flex;           
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 90%;
  border: 3px solid none;
  background-color: purple;
  color: white; 
  text-decoration: none;
  border-radius: 50px;
  box-sizing: border-box;
  font-size: clamp(1rem, 2.5vi, 2rem);
  font-family: sans-serif;
  font-weight: bold;
}

ul li a:hover {
  background: linear-gradient(to right, #11998e, #38ef7d);
  transform: translateY(-2px);
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-text {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.65);
  color: white;
  font-family: sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.double-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: purple;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px; 
  padding: 10px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
}

.half-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.half-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  font-family: sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  z-index: 3;
}

.video-container {
  width: 50%;
  height: auto;
  background-color: purple;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container video {
  width: 90%;
  height: auto;
  object-fit: contain; 
  border-radius: 6px;
}

.contact-box {
  background-color: purple;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  font-family: sans-serif;
  color: white;
  width: 80%;
  max-width: 450px;
}

.contact-box h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: aqua;
  border-bottom: 2px solid aquamarine;
  padding-bottom: 10px;
  font-size: 1.6rem;
}

.contact-box p {
  font-size: 1.1rem;
  margin: 12px 0;
  line-height: 1.5;
}

.contact-box strong {
  color: aquamarine;
}

.contact-link {
  color: aqua;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-link:hover {
  color: #38ef7d;
  text-decoration: underline;
}

.kontakt-sekcija {
  background-color: purple ;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
  padding: 15px;
  align-items: center;
}

.kontakt-slika-kontejner {
  width: 100%;
  height: 100%;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.kontakt-sekcija img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.kontakt-sadrzaj {
  color: white;
  font-family: sans-serif;
  padding: 10px;
}

.kontakt-sadrzaj h3 {
  margin-top: 0;
  color: aqua;
  font-size: 1.4rem;
}

.kontakt-sadrzaj p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.article-portal {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:20px;
}

.info-box {
  background-color: purple;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;


}
@media (max-width: 1024px) {
  body {
    background: linear-gradient(#fffae6, #cca300);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  header {
    background-color: #997a00;
    padding: 15px 0;
  }

  header p {
    font-size: 7vh;
  }

  nav {
    background-color: #ffdb4d;
    padding: 15px;
  }

  nav ul {
    flex-direction: row;
    justify-content: space-around;
  }

  nav ul li {
    width: 30%;
    height: auto;
  }

  ul li a {
    width: 100%;
    padding: 12px 0;
    background-color: #665200;
    font-size: 1.1rem;
  }

  .grid1, .grid2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  section {
    background-color: #ffe680;
    display: flex;
    flex-direction: column;
  }

  .image-container, .double-image-container {
    height: 250px;
  }

  .double-image-container {
    background-color: #665200;
  }

  article {
    background-color: #e6b800;
  }

  .video-container {
    width: 75%;
    background-color: #665200;
  }

  aside {
    background-color: #ffe680;
  }

  aside h3 {
    color: #665200;
  }

  aside ul li a {
    background-color: #665200;
  }

  footer {
    background-color: #997a00;
    padding: 15px 0;
  }

  .icons {
    gap: 50px;
  }

  .contact-box {
    width: 90%;
    padding: 20px;
    background-color: #665200;
  }
  
  .contact-box h2 {
    color: #ffdb4d;
    border-bottom-color: #ffdb4d;
  }
  
  .contact-box strong, .contact-link {
    color: #ffdb4d;
  }

  .kontakt-sekcija {
    background-color: #ffdb4d ;
    display: flex;
    flex-direction: column;
  }

  .kontakt-slika-kontejner {
    height: 200px;
    width: 100%;
    
  }

  .info-box {
    background-color: #665200;
  }


  .kontakt-sekcija h3 {
    color:white;
  }


  .section2 {
    background-color: #ffdb4d ;
  }
}

@media (max-width: 767px) {
  body {
    background: linear-gradient(#ff9999, #800000);
  }

  header {
    background-color: rgb(150, 0, 0);
  }

  header p {
    font-size: 5vh;
  }

  nav {
    background-color: #ff4d4d;
  }

  ul li a {
    background-color: darkred;
    font-size: 0.9rem;
  }

  section {
    background-color: #ff6666;
    display: flex;
    flex-direction: column;
  }

  .image-container, .double-image-container {
    height: 200px;
  }

  .double-image-container {
    background-color: darkred;
  }

  article {
    background-color: #cc0000;
  }

  .video-container {
    width: 95%;
    background-color: darkred;
  }

  aside {
    background-color: #ff6666;
  }

  aside h3 {
    color: white;
  }

  aside ul li a {
    background-color: darkred;
  }

  footer {
    background-color: rgb(150, 0, 0);
  }

  .icons {
    gap: 35px;
  }

  .contact-box {
    background-color: darkred;
  }
  
  .contact-box h2 {
    color: #ff9999;
    border-bottom-color: #ff9999;
  }
  
  .contact-box strong, .contact-link {
    color: #ff9999;
  }

  .info-box {
    background-color: darkred;
  }

  .section2 {
    background-color: #ff9999;
  }

  .kontakt-sadrzaj {
    background-color: #ff9999;
  }
  .kontakt-sekcija {
    background-color: #ff9999;
  }

  .kontakt-sekcija h3 {
    color:white;
  }

  
}

