* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #f7f7f1;
  font-family: "Lato", sans-serif;
}

body {
  overflow-y: scroll;
}

nav {
  width: 100%;
  background-color: #565353;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

nav ul {
  display: flex;
  width: 100%;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
}

nav ul li {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  height: 80px;
}

nav ul li a {
  display: block;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding-left: 15px;
  padding-right: 15px;
  font-weight: bold;
  text-decoration: none;
  height: 80px;
  line-height: 77px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, .05);
}

nav ul li a.selected {
  background-color: rgba(255, 255, 255, .1);
  border-bottom: 2px solid rgba(255, 255, 255, .6);
}

.top-level-menu li:hover>ul {
  display: inline;
}

.second-level-menu {
  position: absolute;
  top: 80px;
  left: 0;
  width: 250px;
  display: none;
  box-shadow: 5px 10px 5px rgba(0, 0, 0, 0.2);
}

.second-level-menu>li {
  position: relative;
  height: 40px;
  width: 250px;
  margin: 0;
  padding: 0;
  background-color: #eee;
}

.second-level-menu>li a {
  color: #666;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: left !important;
}

.second-level-menu>li a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.third-level-menu {
  position: absolute;
  display: none;
  top: 0;
  right: -250px;
  width: 250px;
}

.third-level-menu>li {
  height: 40px;
  margin: 0;
  padding: 0;
  background-color: #ddd;
}

.hero {
  width: 100%;
  min-height: 600px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: rgba(34, 35, 20, 1);
}

#social_icons {
  display: block;
  position: fixed;
  right: 5px;
  bottom:5px;
}

#social_icons a {
  width: 48px;
  height: 48px;
  display: block;
  background-repeat: no-repeat;
  margin-bottom: 10px;
  opacity: 0.5;
  transition: opacity ease-in .4s;
}

#social_icons a:hover {
  opacity: 1;
}

#social_icons a.facebook {
  background-image: url(../img/facebook.png);
}

#social_icons a.twitter {
  background-image: url(../img/twitter.png);
}

#social_icons a.insta {
  background-image: url(../img/instagram.png);
}

#social_icons a.yt {
  background-image: url(../img/you-tube.png);
}

.hero.main {
  background-image: url(../img/hero_main.jpg);
}

.hero.kontakt {
  background-image: url(../img/kontakt.jpg);
}

.hero.wideo {
  background-image: url(../img/wideo.jpg);
}

.text_adv {
  background-color: rgba(0,0,0,.3);
  position: absolute;
  right: 100px;
  top: 80px;
  padding: 30px;
  padding-top: 100px;
  text-align: center;
  color: #fff;
  font-size: 2em;
}

.wrapper_kontakt {
  padding: 30px;
  display: flex;
  flex-flow: row nowrap;
}

.address {
  font-size: 1.2em;
  margin-top: 30px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.map {
  border: 15px solid #818181;
}

.info_kontakt {
  text-align: center;
  width: 100%;
}

.text_adv span.up {
  text-transform: uppercase;
  font-weight: bold;
}

.hero.main .slowo_wstepu {
  color: #fff;
  padding: 30px;
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(21, 22, 12, 1) 62%, rgba(34, 35, 20, 1) 100%);
  background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(21, 22, 12, 1) 62%, rgba(34, 35, 20, 1) 100%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(21, 22, 12, 1) 62%, rgba(34, 35, 20, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#222314', GradientType=0);
}

.hero.main .slowo_wstepu p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero.uczest {
  background-image: url(../img/wojna_pokoj.jpg);
}

.hero.tresc {
  background-image: url(../img/modul_6.jpg);
  background-position: top center;
}

.hero.realiz {
  background-image: url(../img/modul_7.jpg);
  background-position: top center;
}

.site_title {
  width: 500px;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(255, 255, 255, .6);
  padding: 10px;
  margin-left: 300px;
}

.site_title h1 {
  font-size: 30px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  text-align: center;

}

.aan_logo {
  background-image: url(../img/logo_aan.png);
  background-color: rgba(0, 0, 0, .7);
  border: 10px solid rgba(0, 0, 0, 0);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 215px;
  height: 113px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 30px;
  margin-bottom: 75px;
}

.wstep p {
  line-height: 1.7;
  font-size: 1.2rem;
  text-indent: 2rem;
}

.wstep {
  width: 80%;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
}

span.bigger {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 2;
  margin: 0;
  padding: 0;
}

section.sect_left,
section.sect_right {
  width: 90%;
  height: 400px;
  background-color: #d6d2d2;
  display: flex;
  flex-flow: row wrap;
}

.section_wrapper {
  display: flex;
  flex-flow: column nowrap;
}

section.sect_left {
  align-self: flex-start;
}

section.sect_right {
  align-self: flex-end;
}

.left_part,
.right_part {
  width: 50%;
  height: 400px;
  padding: 30px;
  padding-left: 50px;
  padding-right: 50px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

.pic_wall {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.wojna_i_pokoj_img {
  background-image: url(../img/wojna_pokoj_small.jpg);
}

.uczestnicy {
  background-image: url(../img/uczestnicy_small.jpg);
}

.rokowania_minsk {
  background-image: url(../img/minsk_small.jpg);
}

.rokowania_ryga {
  background-image: url(../img/modul_4_small.jpg);
}

.preliminaria {
  background-image: url(../img/modul_5_small.jpg);
}

.traktat {
  background-image: url(../img/modul_6_small.jpg);
}

.postanowienia {
  background-image: url(../img/modul_7_small.jpg);
}

.dabski_pic {
  background-image: url(../img/modul_7_ksiazka_small.jpg);
}

.top_section {
  width: 80%;
  background-color: #d6d2d2;
  height: 30px;
  margin: 0 auto;
}

.left_part h2,
.right_part h2 {
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 800;
}

.left_part p,
.right_part p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

a.read_more {
  display: block;
  align-self: flex-end;
  margin-right: 20px;
  padding: 10px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  background-color: #595959;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.bibliografia {
  padding: 50px;
  font-family: "Lato", sans-serif;
}

.bibliografia p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.video_container {
  width: 80%;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 3%;
  row-gap: 20px;
}

.video_container iframe {
  width: 100%;
  height: 220px;
  border: #818181 solid 10px;
}

.bibliografia h2 {
  margin-bottom: 30px;
  text-transform: uppercase;
}

.bibliografia h3 {
  margin-bottom: 20px;
  font-family: "Lato", sans-serif;
}

.bibliografia ul {
  margin-bottom: 20px;
  list-style-type: none;
}

.bibliografia ul li {
  margin-bottom: 10px;
  font-family: "Lato", sans-serif;
}

.bibliografia ul li a {
  text-decoration: none;
  color: #ba0305;
}

footer {
  display: flex;
  flex-flow: row wrap;
  background-color: #565353;
  color: #fff;
  font-size: 12px;
  align-items: center;
  justify-content: center;
  height: 80px;
}

footer .col-3 {
  margin-right: 50px;
  line-height: 1.5;
}

.list_wrapper {
  display: flex;
  font-family: row wrap;
  width: 80%;
  margin: 0 auto;
  justify-content: space-between;
}

.site_wrapper {
  display: flex;
  flex-flow: row wrap-reverse;
}

.left_site {
  width: 42%;
  min-height: 300px;
  padding: 30px;
  background-color: #d6d2d2;
}

.right_site {
  width: 58%;
  min-height: 300px;
  padding: 30px;
  padding-left: 50px;
  padding-right: 50px;
}

.right_site h2 {
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 30px;
  font-size: 1.6rem;
}

.right_site p {
  margin-bottom: 30px;
  line-height: 1.5;
  font-size: 1.2rem;
}

.right_site p span {
  font-weight: bold;
  font-size: 1.5rem;
}

.gallery {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
}

a.figure {
  display: block;

  margin-right: 10px;
  margin-bottom: 20px;
  text-decoration: none;
}

.photo {
  width: 236px;
  height: 300px;
  background-position: center center;
  background-size: cover;
  border: 10px solid #818181;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: flex-end;
}

.caption {
  color: #ffffff;
  padding: 10px;
  font-weight: bold;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  background-color: rgba(0, 0, 0, .5);
}

.hero.uczestnicy_hero {
  background-image: url(../img/uczestnicy.jpg);
  background-position: center center;
}

.hero.biblio {
  background-image: url(../img/baner_bibliografia.jpg);
}

.side_wrapper {
  width: 100%;
  padding: 60px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
}

.right_site h4 {
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

.right_site h3 {
  text-align: center;
}

.podpis {
  font-weight: bold;
  font-size: 1.4em;
  font-style: italic;
  text-align: right;
  display: block;
  margin-right: 20px;
}

.polska ul,
.sowiecka ul {
  list-style: none;
}

.polska ul li,
.sowiecka ul li {
  margin-bottom: 15px;
}

.polska ul li.hdr,
.sowiecka ul li.hdr {
  color: #000;
  cursor: default;
}

.polska ul li a,
.sowiecka ul li a {
  color: #ba0305;
  text-decoration: none;
  font-weight: bold;
}

/* MODAL */

.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.6);
  /* Black w/ opacity */
  cursor: default;
}

/* Modal Content/Box */

.modal-content {
  background-color: #fefefe;
  margin: 50px auto;
  /* 15% from the top and centered */
  width: 80%;
  /* Could be more or less, depending on screen size */
  display: flex;
  flex-flow: row nowrap;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, .5);
}

/* The Close Button */

.close {
  color: #aaa;
  float: right;
  font-size: 38px;
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal_left {
  width: 50%;
}

.modal_right {
  width: 50%;
  padding: 20px;
}

.modal_right h2 {
  margin-bottom: 5px;
}

span.dates {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

.modal_right p {
  font-size: 100%;
  line-height: 1.7;
}

.picture_person {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.info {
  font-size: 12px;
  color: #444;
}

.hero.minsk {
  background-image: url(../img/minsk.jpg);
}

.hero.ryga {
  background-image: url(../img/modul_4.jpg);
  background-position: top center;
}

.hero.prelim {
  background-image: url(../img/modul_5.jpg);
  background-position: top center;
}

.hero.ksiazka {
  background-image: url(../img/modul_7_ksiazka.jpg);
  background-position: top center;
}

h3.names {
  text-align-last: left;
  margin-bottom: 10px;
}

.ppl_info_wrapper {
  margin-top: 50px;
  display: flex;
}

.ppl_right {
  padding-left: 20px;
}

span.italic {
  font-style: italic;
}

a.book {
  display: block;
  width: 451px;
  margin: 20px auto;
}


/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: rgba(0, 0, 0, 0.0);
  width: 100%;
  color: #444;
  font-weight: bold;
  cursor: pointer;
  padding: 18px;
  margin-bottom: 10px;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  line-height: 22px;
  background-image: url(../img/folder.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  padding-left: 90px;
}

.accordion.active {
  background-image: url(../img/folder_open.png);
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.0);
  transition: max-height 0.4s ease-out;
}

.accordion:after {
  content: '\02795';
  /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2796";
  /* Unicode character for "minus" sign (-) */
}