* {
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: auto;
  line-height: 1.8em;
  color: #3D204E;
  background-color: #F4F4F6;
}

/* Background image in navigation */
nav {
  background-image: url('../img/bg/warsaw_skyline.svg');
  background-size: auto;
  background-position: bottom;
  background-repeat: repeat-x;
  width: 100%;
}

@media screen and (max-width: 966px) {
  nav {
    background-size: 966px;
  }
}

/* @media screen and (max-width: 768px) {
  nav {
    background-size: 0px;
  }
} */

/* Menu in navigation */
.menu {
  padding: 10px;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  margin: auto;
}

.menu li {
  display: inline-flex;
  vertical-align: top;
  padding: 2px;
  padding-left: 8px;
  padding-right: 8px;
}

.menu a {
  text-decoration: none;
  background: #3D204E;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  font-size: larger;
  max-lines: 1;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: #F9BFF9;
}

/* .menu a:active {
  background-color: #7F5E8D;
} */

@media screen and (max-width: 768px) {
  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    width: 90%;
  }

  .menu li {
    display: inline-block;
    width: 45%;
    box-sizing: border-box;
    padding: 5px;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 10px 20px;
  }
}

/* Top logo */
.logo-top {
  max-width: 10%;
  min-width: 200px;
  float: centre;
  padding: 10px;
  margin: 0 auto;
  display: block;
}

/* Links */
a {
  color: #3D204E;
  text-decoration: underline gray;
}

a:hover {
  color: #B95094;
}

/* Line */
hr {
  display: block;
  height: 0px;
  border: 0;
  border-top: 1px solid #003321;
  margin: 1em 0;
  padding: 0;
}

/* Headers */
h1 {
  line-height: 1.2;
  font-size: 150%;
  text-align: left;
}

h2 {
  line-height: 1.2;
  font-size: 130%;
  text-align: left;
}

h3 {
  line-height: 1.2;
  font-size: 110%;
  text-align: left;
}

strong {
  line-height: 1.2;
  font-size: large;
  /* text-align: left; */
}

/* Images */
img {
  display: block;
  margin: auto;
}

/* Main text */
.main-text {
  width: 705px;
  margin: auto;
  line-height: 1.5;
  font-size: 110%;
  text-align: justify;
  padding: 10px;
  text-justify: inter-word;
}

@media screen and (max-width: 768px) {
  .main-text {
    width: 90%;
  }
}

/* Footer */
footer {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  margin: auto;
}

footer a {
  text-decoration: none;
  padding: 0;
}

/* Grid of logos in footer */
footer {
  padding: 10px 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 705px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logos {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 10px;
  padding: 0;
  display: block;
}

.footer-text {
  font-size: 14px;
  color: #333;
  text-align: center;
  flex-grow: 1;
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-logos {
    margin-bottom: 10px;
    display: none;
  }

  .left-logos {
    order: 1;
  }

  .footer-text {
    order: 2;
    margin: 10px 0;
  }

  .right-logos {
    order: 1;
  }
}


/* Register button */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.register-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #72124E;
  color: #F4F4F6;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.register-button:hover {
  background-color: #F9BFF9;
}