/* 
  Design and code: Ines Meršak
  Adapted for mathematicsinljubljana.fmf.uni-lj.si
 */


html {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #eedcdc;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 400;
    font-size: 100%;
  }
  
  header {
    margin: 0;
    margin-top: 1em;
    width: 900px;
    height: 320px;
    background-image: url('../img/header.png');
    background-color: #ba232b;
    background-size: 42%;
    background-position: top left;
    background-repeat: no-repeat;
  }
  
  footer {
    margin-bottom: 1em;
    margin-top: 2.15em;
    border-top: 1px solid #C4C4C4;
    text-align: center;
    font-size: 0.7em;
    padding: 0.4em;
    clear: both;
  }

  footer div {
    float: left;
    min-width: 250px;
    width: 30%;
    height: 60px;
  }

  footer div.copyright {
    float: right;
  }
  
  main {
    width: 700px;
    margin: auto;
    line-height: 1.4em;
  }
  
  #container {
    margin: auto;
    width: 1000px;
    min-height: 100%;
    padding-top: 0.8em;
    background-color: #FFFFFF;
    border-left: 1px solid #C4C4C4;
    border-right: 1px solid #C4C4C4;
  }
  
  #content-wrapper {
    width: 900px;
    margin: auto;
    height: 95%;
  }
  
  /* NAVIGACIJA */
  
  nav {
    width: 100%;
    margin: 0;
    text-align: center;
  }
  
  nav ul {
    /* background: linear-gradient(#f0e9e9, #c4c0c0);
    background: -moz-linear-gradient(#f0e9e9, #c4c0c0);
      background: -webkit-linear-gradient(#f0e9e9, #c4c0c0);
    background: -o-linear-gradient(#f0e9e9, #c4c0c0); */
    background: #615559;
    width: 100%;
    height: 100%;
    padding-left: 0;
    list-style: none;
    margin: 0;
    margin-bottom: 2em;
    border: 0px collapse;
    display: inline-table;
    text-align: center;
    text-transform: uppercase;
    /*font-weight: bold;*/
    font-size: 0.8em;
    position: relative;
  }
  
  nav ul:after {
    content: "";
    clear: both;
    display: block;
  }
  
  nav ul li {
    display: inline-block;
    border: 0px collapse;
  }
  
  nav ul li:hover {
    background-color: #e0202e;
    color: #eedbdb;
  }
  
  nav ul li:hover a {
    color: #eedbdb;
  }
  
  nav ul li a {
    display: block;
    text-decoration: none;
    /*text-shadow: 1px 1px #B2B4D1;*/
    color: #ffffff;
    padding: 0.4em 0.8em 0.4em 0.8em;
  }
  
  .clicked {
    background-color: #e0202e;
    color: #eedbdb;
    margin: 0;
  }
  
  /* Podmeni */
  nav ul ul {
      display: none;
  }
  nav ul li:hover > ul {
    display: block;
  }
  nav ul ul {
    width: auto;
    height: auto;
      background-color: #C4C4C4;
      font-size: 0.88em;
      padding: 0;
      position: absolute;
      top: 100%;
  }
  nav ul li:hover > ul li {
    width: 100%;
    float: none;
    border-top: 1px solid #7c686f;
    position: relative;
  }
  nav ul li:hover > ul li a {
    padding: 0.4em 0.8em 0.4em 0.8em;
    color: #cc1420;
    font-weight: 600;
  }
  nav ul li:hover > ul li:hover {
    background: #615559;
    color: #ffffff;
  }
  nav ul li:hover > ul li a:hover {
    background: #615559;
    color: #ffffff;
  }
  
  /* .clicked a {
    color: #eedbdb;
  } */
  
  /* KONEC NAVIGACIJE */
  
  /* TIMETABLE */

  .minicourse {
    background-color: rgb(244, 194, 197);  
  }

  .researchgroup {
    background-color: rgb(217, 211, 213);
  }

  .info {
    background-color: rgb(240, 237, 238);
  }

  .timetable {
    font-size: 75%; 
  }

  /* ZACETEK FOOTERJA */
  
  footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  footer table {
    /*border: 1px solid black;*/
    margin: auto;
    padding: 0;
  }
  
  footer table td {
    /*border: 1px solid black;*/
    padding: 0;
    margin: 0;
    min-width: 20px;
    max-width: 290px;
    padding-left: 0.7em;
    padding-right: 0.7em;
  }
  
  .logo {
    padding-right: 1em;
  }
  
  .copyright, .contact {
    text-align: justify;
    padding-left: 1em;
  }
  
  /* KONEC FOOTERJA */
  
  h1 {
    color: #e0202e;
    font-size: 1.5em;
    padding: 0;
    /*border-bottom: 1px solid #C4C4C4;*/
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    margin-top: 1.1em;
  }
  
  h2 {
    color: #e0202e;
    font-size: 1.3em;
    padding: 0;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    margin-top: 1.1em;
    margin-bottom: 0.35em;
  }
  
  h3 {
    color: #e0202e;
    font-size: 1.14em;
    padding: 0;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    margin-top: 0.4em;
    margin-bottom: 0.35em;
  }
  
  main p {
    font-size: 0.93em;
    padding: 0.2em;
    text-align: left;
    margin: 0 0 0.88em 0;
  }
  
  main a, footer a {
    color: #e0202e;
  }
  
  main a:hover, footer a:hover {
    text-decoration: none;
    color: #615559;
  }
  
  main ul {
    font-size: 0.93em;
    list-style: circle outside url('../img/plusbullet.png');
    margin-left: -0.6em;
    margin-bottom: 1.3em;
  }
  
  main li {
    padding-left: 0.45em;
    margin-top: 0.18em;
  }
  
  main strong {
    font-weight: 600;
    color: #e0202e;
  }
  
  main dl {
    font-size: 0.95em;
  }
  
  main dt {
    font-weight: 600;
    font-size: 1.06em;
    margin-top: 0.4em;
  }
  
  .toggle {
    border-bottom: 1px dotted #000000;
    display:inline;
  }
  
  .toggle:hover {
    text-decoration: underline;
    border-bottom: none;
    cursor: pointer;
  }
  
  .important {
    border: 1px solid #C4C4C4;
    background-color: #ffe0e0;
    margin: 1.2em 0.5em;
    padding: 0.6em 1em;
    font-size: 0.93em;
    text-align: justify;
  }
  
  .small {
    font-size: 0.85em;
  }
  .profesor {
    margin: 1.1em 0.5em 1.1em 0.5em;
    clear: both;
    height: auto;
    overflow: auto;
  }
  
  .profesor img {
    float: left;
    margin-right: 1em;
  }
  
  .profesor h2 {
    margin-top: 0em;
    margin-bottom: 0.35em;
  }
  
  .button {
    float: left;
    background-color: #e0202e;
    color: #ffffff;
    border: 1px solid #C4C4C4;
    padding: 0.4em 0.6em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.8em;
    margin-bottom: 1em;
  }
  
  .button:focus {
    outline:0;
  }
  
  .check {
    background-color: rgb(238, 220, 220);
    border: 1px solid rgb(209, 193, 193);
    color: rgb(207, 62, 73);
    font-weight: 600;
    font-size: 0.82em;
    font-family: 'Titillium Web', sans-serif;
    text-transform: uppercase;
    width: 100px;
    padding: 3px 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 5px;
    letter-spacing: 0.3px;
  }
  
  .check:hover, .check:focus {
    background-color: rgb(251, 218, 218);
    border-color: rgb(237, 200, 200);
    color: rgb(213, 64, 75);
  }
  
  .check:focus {
    outline:0;
  }
  
  .check:active {
    background-color: rgb(243, 196, 196);
  }

  /* Dodatki KB */

#site_title {
    float: right;
    text-align: right;
    padding: 0 2em;
    max-width: 50%;
    min-width: 1%;
    height: 250px;
    background-color: #ba232b;
}

#site_title a {
    text-decoration: none;
}
#site_title h1 {
    font-size: 1.8em;
    line-height: 1.8em;
    margin: 0;
    margin-top: 2em;
}
#site_title h1 a {
    color: #ffffff;
    font-size: 1.7em;
    font-weight: 300;
    text-transform: uppercase;   
}
#site_title h2 {
    color: #ffffff;
    font-weight: 200;
    margin-top: 0;
}

.clr {
  clear: both;
}

@media handheld and (max-width: 900px), screen and (max-width: 900px) {

  header {
    margin-top: 0;
    width: 100%;
    height: 100px;
    background-size: auto 100%;
  }

  #container {
    margin: 0;
    padding-top: 0;
    width: 100%;
    min-height: 100%;
    border: 0;
  }

  #content-wrapper {
    width: auto;
    padding: 0 1em;
  }

  main {
    width: 100%;
  }

  #site_title {
    padding: 0 1em;
    height: 100px;
  }
  
  #site_title a {
      text-decoration: none;
  }
  #site_title h1 {
      font-size: 1.2em;
      line-height: 1.4em;
      margin: 0;
      margin-top: 0.5em;
  }
  #site_title h1 a {
      font-size: 1.2em;
      text-transform: uppercase;   
  }
  #site_title h2 {
      font-size: 1.1em;
  }

  footer div.copyright {
    float: left;
  }
  
  }
