/* Base styles */
* {
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
  font-size: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background-color: #f4f4f4;
}

h1 {
  font-weight: 700;
  margin-bottom: 20px;
}

h3 {
  font-weight: 700;
  margin-bottom: 20px;
}

p {
  margin-bottom: 0;
}

/* Media queries */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 14px;
  }
}

/* Layout styles */
main {
  margin-top: 4.5rem;
}

.container-fluid {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.intro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60%;
  margin-top: 20px;
}

.results-container {
  align-items: flex-start;
  flex-direction: column;
  width: 60%;
}

/* media queries */
@media (max-width: 768px) {
  .intro-container {
    width: 80%;
  }

  .results-container {
    width: 80%;
  }
}

.card {
  width: 80%;
  background-color: #d4cfcf;
  margin-bottom: 20px;
}

.card-body {
  padding: 20px;
  flex-direction: column;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-container {
  display: flex;
  justify-content: space-evenly;
}

.button-wrap {
  z-index: 10;
  position: relative;
}

.button,
.button-link,
input[type='submit'] {
  display: inline-block;
  background-color: #1d6355;
  border-radius: 10px;
  border: 4px double #cccccc;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  padding: 8px 8px;
  width: 110px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px 0px;
}

.button:hover,
.button-link:hover,
input[type='submit']:hover {
  background-color: #555;
}

input[type='file'] {
  position: absolute;
  z-index: -1;
  top: 12px;
  left: 3px;
  font-size: 17px;
  color: #6e6565;
}

/* Button media query */
@media (max-width: 768px) {
  .btn-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }
}

/* PDF preview block */
iframe {
  display: block;
  margin-bottom: 10px;
  margin-top: 20px;
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 5px;
}

/* Navbar styling */
.navbar {
  display: block;
  margin: 0 auto;
  align-self: stretch;
  padding: 10px 20px;
  background-color: #333;
  text-decoration: none;
}

.navbar a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  float: left;
  text-align: left;
}

.navbar-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.navbar-text {
  text-align: center;
  color: #fff;
}

/* Navbar media query */
@media (max-width: 958px) {
  .navbar {
    margin: 0;
  }

  .navbar a svg {
    font-size: 16px;
  }

  .navbar-container {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .navbar-text {
    display: none;
  }
}

/* Base64 block */
.base64 {
  display: block;
  margin: 0 auto;
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #f9f9f9;
  word-wrap: break-word;
}

.base64 p {
  color: #333;
  font-size: 18px;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  height: 100px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 5px;
  columns: 50;
}

/* media queries */
@media (max-width: 768px) {
  .base64 {
    width: 80%;
  }
  textarea {
    width: 100%;
    font-size: 10px;
  }
}

/* Error images */
.img-error {
  display: block;
  margin: 0 auto;
  margin-top: 20px;
  width: 100%;
  height: auto;
  max-width: 500px;
}

p.lost {
  color: #000;
  font-size: 18px;
  margin-top: 10px;
  text-align: center;
}

.alert {
  z-index: 10;
  margin-bottom: -4em;
}

.messages {
  font-size: 14px;
  margin-bottom: 10px;
}

.error {
  font-size: 14px;
  margin-bottom: 10px;
}
