/* Global*/
* {
  margin: 0;
  padding: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: trasparent;
  line-height: 1.2em;
}


sup {
    vertical-align: super;
    font-size: smaller;
}

sub {
    vertical-align: sub;
    font-size: smaller;
}


html,
body {
  font-family: sofia-pro, sans-serif;
  overflow-x: hidden;
}

header {
  max-width: 1088px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 120px;
}

.picture {
  background-image: url(../img/school.png);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  width: 100%;
  min-height: 620px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -2;
}

.title {
  font-size: 65pt;
  font-weight: bold;
  text-align: left;
  padding-left: 10px;
  display: block;
  color: white;
  float: left;
}

.info {
  font-size: 32pt;
  color: white;
  text-align: right;
  display: block;
  float: right;
  padding-right: 10px;
  margin-top: 20px;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 530px;
  text-align: center;
}

.nav li {
  display: inline;
  font-weight: 400;
}

.nav a {
  display: inline-block;
  margin: 0 30px;
  margin-bottom: 15px;
  color: black;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s ease;
}

.nav #active {
  color: white;
  border-radius: 15px;
  background-color: #6d89fd;
  padding: 7px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.nav #active:hover {
  opacity: 1;
}

.nav a:hover {
  opacity: 0.5;
}

.toast {
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  height: 40px;
  width: 200px;
  padding: 10px;
  z-index: 2;
  border-radius: 3px;
  box-shadow: 1px 1px 6px #0000004f;
  transition: 0.2s;
  opacity: 0;
}

.toast.show {
  bottom: 20%;
  opacity: 1;
}

.toast.success {
  background-color: #4cad29;
  color: white;
}

.toast.alert {
  color: white;
  background-color: #c30000;
}

.toast .close {
  position: absolute;
  top: -1px;
  font-size: 19px;
  right: 5px;
  cursor: pointer;
  transition-duration: 0.1s;
}
.toast .close:hover {
  color: #ccc;
}

/*------------------Content----------------*/
.time {
  margin-top: 10px;
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-size: 30pt;
  font-weight: 500;
}

.prispevek h1 {
  padding: 20px;
}

.time p span {
  font-family: interstate-mono, monospace;
  font-size: 1.2em;
  padding-left: 4px;
}

.content {
  height: auto;
  margin: 40px 10px 0 10px;
}

.item,
fieldset {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  margin: 5px auto 40px;
  transition: 0.8s ease;
}

.item {
  max-width: 500px;
}

.item:hover {
  box-shadow: 0 5px 17px rgba(0, 0, 0, 0.4);
}

fieldset {
  max-width: 580px;
  padding: 0 10px 5px 10px;
  border: 0;
}

#treti {
  float: left;
}

h3 {
  font-size: 24pt;
  font-weight: 700;
  padding: 25px 30px 20px 20px;
}

.item-header {
  padding: 25px 30px 40px 30px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.popis {
  padding: 20px 30px 25px 30px;
  font-weight: 300;
  color: black;
  line-height: 1.3em;
  text-align: justify;
}

.form {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}

.form #username {
  width: calc(100% - 15px);
  margin-bottom: 10px;
  height: 30px;
  border-radius: 20px;
  padding-left: 15px;
  border-style: solid;
  border-color: #999;
  color: #444;
  font-family: sofia-pro, sans-serif;
  margin-left: auto;
  margin-right: auto;
}

.form #password {
  width: calc(100% - 90px);
  float: left;
  height: 30px;
  border-radius: 20px;
  padding-left: 15px;
  border-style: solid;
  border-color: #999;
  border-width: 2px;
  color: #444;
}

#submit {
  width: 60px;
  float: right;
  background-color: #fff;
  color: #6d89fd;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  border-style: solid;
  border-color: #6d89fd;
  height: 34px;
  border-width: 2px;
  transition: 0.3s ease;
}

#submit:disabled {
  color: #999;
  border-color: #999;
  cursor: default;
}

#submit:not(:disabled):hover {
  background-color: #6d89fd;
  color: #fff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.tlacitka {
  margin-top: 20px;
  text-align: center;
}

#ulozit {
  width: 80px;
  background-color: #fff;
  color: #6d89fd;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  border-style: solid;
  border-color: #6d89fd;
  height: 34px;
  border-width: 2px;
  transition: 0.3s ease;
}

#ulozit:hover {
  background-color: #6d89fd;
  color: #fff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

#zrusit {
  width: 140px;
  background-color: #fff;
  color: #e93a5b;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  border-style: solid;
  border-color: #e93a5b;
  height: 34px;
  border-width: 2px;
  transition: 0.3s ease;
}

#zrusit:hover {
  background-color: #e93a5b;
  color: #fff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

[type="radio"] {
  margin: 0 20px 5px 20px;
  display: block;
  float: left;
}
[type="radio"][disabled] + label,
[type="radio"][disabled] + label * {
  opacity: 0.4;
}

label::after {
  display: block;
  content: "";
  margin-top: -5px;
}

label span {
  font-weight: 200;
  opacity: 0.8;
  display: block;
  margin-left: 53px;
}

.error {
  padding: 30px 0 0 0;
  font-size: 14pt;
  font-weight: 700;
  text-align: center;
}

/*Footer*/

footer {
  padding: 30px 0 50px 0;
  display: block;
  text-align: center;
  line-height: 20px;
  font-weight: 300;
  opacity: 0.6;
}

/*Responsive*/

@media only screen and (max-width: 770px) {
  body {
    width: 100%;
  }

  .header {
    padding-top: 50px;
    width: 100%;
  }

  .title {
    padding-left: 20px;
    font-size: 40pt;
    display: block;
    width: 100%;
  }

  .picture {
    min-height: 430px;
  }

  .info {
    display: block;
    float: left;
    text-align: left;
    font-size: 22pt;
    margin: 10px 0 0 20px;
    padding: 0;
  }

  .nav {
    margin-top: 400px;
  }

  .nav li {
    margin-bottom: 5px;
  }

  .time {
    width: calc(100% - 20px);
    margin-right: auto;
    margin-left: auto;
  }

  .item {
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 700px) {
  .nav li {
    display: block;
    margin-bottom: 5px;
  }
}

@media only screen and (max-width: 320px) {
  .form #password {
    width: calc(100% - 15px);
    margin-bottom: 10px;
  }
  .form #submit {
    float: left;
    display: block;
    width: calc(100% + 4px);
    margin-bottom: 20px;
  }
}
