body {
  font-family: Tahoma, sans-serif;
  font-size: 11pt;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 100%;
  min-height: 100vh;
}

header {
  grid-column: 1 / -1;
  background: url("slike/zaglavlje.jpg") no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 20px;
  height: 25vh;
}

h1, h2 {
  color: #275070;
}

h1 {
  font-size: 19pt;
}

nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: white;
  padding: 10px;
}

nav a {
  color: #275070;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  white-space: nowrap;
}

nav a:hover {
  text-decoration: underline;
}

.main {
  display: grid;
  grid-template-columns: 100%;
  grid-gap: 0;
  grid-column: 1 / -1;
}

.main-content {
  display: grid;
  grid-template-columns: 100%;
  gap: 30px;
  background-color: #d1e2ef;
  padding: 20px;
  border: 1px solid #275070;
}

.text-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.image-section {
  display: flex;
  justify-content: center;
}

.image-section img {
  margin-top: 20px;
  width: 100%;
  max-width: 270px;
  height: auto;
  border: 1px solid #275070;
}

.sidebar {
  background-color: #3b79a9;
  color: white;
  padding: 20px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.sidebar ul {
  list-style-position: inside;
  padding: 0;
  font-weight: bold;
}

.sidebar li {
  margin: 10px 0;
  color: black;
}

.sidebar li a {
  color: black;
  text-decoration: none;
}

.sidebar li a:hover {
  text-decoration: underline;
}

footer {
  grid-column: 1 / -1;
  background-color: #275070;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 10pt;
}

@media (min-width: 992px) {
  body {
    grid-template-columns: 1fr 20%;
    grid-template-rows: 25% 1fr;
  }
  
  .main {
    grid-template-columns: 1fr 20%;
  }
  
  .main-content {
    grid-template-columns: 2fr 1fr;
    padding: 20px 20px 20px 70px;
  }
  
  .image-section img {
    margin-top: 100px;
    width: 270px;
    height: 200px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .main-content {
    padding: 20px 40px;
  }
  
  .image-section img {
    margin-top: 50px;
  }
}