/* ----------------------------------
 * Reset & Global Defaults
 * ---------------------------------- */

body {
  font-family: Lucida, sans-serif;
  text-shadow: 2px 2px whitesmoke;
}

p, td {
  font-size: 24px;
}

/* ----------------------------------
 * Background & Layout
 * ---------------------------------- */
.background_picture {
  background: url(pics/pozadi.png) no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

.content-panel {
  background-color: rgba(255, 255, 255, 0.9);
  margin: 4rem auto;
  padding: 2rem;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------
 * Header & Navigation
 * ---------------------------------- */

nav {
  height: 80px;
  width: 100%;
}

nav ul li a {
  color: black;
  font-size: 27px;
  padding: 7px 13px;
  border-radius: 3px;
  text-transform: uppercase;
}

a.active, a:hover {
  border-style: groove;
  transition: 0.5s;
}

.nav-link.active {
  font-weight: bold;
  color: #d5d7da37 !important;
  border-bottom: 2px solid #717272;
  background-color: rgba(201, 203, 206, 0.959);
  border-radius: 5px;
}

/* ----------------------------------
 * Navigation - hamburger menu
 * ---------------------------------- */

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1050;
    padding-top: 100px;
    text-align: center;
  }

  .navbar-collapse .nav-link {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  nav ul li {
    margin: 20px 0;
    line-height: 30px;
    text-align: center;
    width: 100%;
  }

  nav ul li a {
    font-size: 24px;
    display: block;
    width: 100%;
    text-align: center;
  }

  body.offcanvas-open {
    overflow: hidden;
  }

  .navbar-toggler {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
  }
}

/* ----------------------------------
 * Content Specific Styling
 * ---------------------------------- */
#form {
  padding: 5%;
}

footer {
  font-size: 24px;
  font-weight: 500;
  text-shadow: 2px 2px whitesmoke;
  margin: 20px;
}

footer span {
  background-color: rgba(249, 232, 232, 0.5);
  padding: 10px;
  border-radius: 3px;
}

pre {
  background-color: rgba(249, 232, 232, 0.5);
  font-size: large;
  margin-left: 10%;
}

.table-container table, th, td {
  align-content: center;
  border: 2px double black;
  text-align: center;
  width: 100%;
  table-layout: fixed;
}

td:first-child {
  width: 20%;
  vertical-align: middle;
  text-align: center;
}

td:nth-child(2) {
  width: 60%;
  padding: 1rem;
  font-weight: bold;
}

td:nth-child(3), td:nth-child(4) {
  width: 10%;
  text-align: center;
}

#table > tr:nth-child(2n) {
  background-color: rgba(245, 245, 245, 0.7);
}

#table > tr:nth-child(2n+1) {
  background-color: rgba(135, 172, 226, 0.7);
}

.cistic {
  clear: both;
}

/* ----------------------------------
 * Cards and Mobile Responsiveness
 * ---------------------------------- */

.card img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  body, p, td {
    font-size: 18px;
  }

  h1, h2, h3, h5 {
    font-size: 1.3rem;
  }

  .content-panel {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }

  .row.g-4 > div {
    flex-direction: column !important;
    text-align: center;
  }

  .row.g-4 > div > div {
    width: 100% !important;
    margin-bottom: 1rem;
  }
}

.equal-height {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* ----------------------------------
 * Language Flags in nav
 * ---------------------------------- */

.flag {
  width: 24px;
  height: auto;
  cursor: pointer;
}

.flag:hover {
  transform: scale(1.1);
}

.lang-switch {
  position: absolute;
  top: 20px;
  right: 20px;
}