/* Global box-sizing */
*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

#main_container {
  width: 860px;
  max-width: 100%;
}

@media screen and (max-width: 860px) {
  #main_container {
    width: 100% !important;
    display: block;
    /* Tables can be tricky */
  }

  #layout_row {
    display: flex;
    flex-direction: column;
  }

  #sidebar {
    width: 100% !important;
  }

  .vsebina {
    width: 100% !important;
    display: block;
    padding: 10px !important;
  }

  ul.meni {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  li.meni {
    display: inline;
    margin: 5px 10px;
  }

  li.meni>a {
    font-size: 14px;
    white-space: nowrap;
  }

  /* Ensure all tables inside content are responsive */
  table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
  }

  /* Specific fix for elements with float */
  .vsebina div,
  .vsebina p {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 !important;
  }

  /* Hide ads on mobile if they break layout, or let them scale */
  #sidebar ins,
  .vsebina ins,
  #main_container ins {
    max-width: 100%;
    overflow: hidden;
    display: inline-block;
  }
}

body {
  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 14px;
  background-image: url("bg.png");
}

h1,
h1>a {
  font-size: 22px;
  color: navy;
  margin-bottom: 2px;
}

td {
  text-decoration: none;
  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #000000;
}

td.vsebina {
  line-height: 18px;
  background: #ffffff;
}

A {
  text-decoration: none;
  font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #000080;
}

li.meni>a {
  text-decoration: underline;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #000099;
  padding-left: 1px;
  padding-top: 1px;
  padding-bottom: 2px;
}

.meni {
  display: block;
  margin-left: 0px;
  list-style: none;
  margin: 0;
  margin-left: 3px;
  padding: 0;
  line-height: 1.4em;
}

div.noga {
  font-size: 14px;
  text-align: center;
}

div.noga>a {
  font-size: 14px;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}