@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,600,600italic,700');
@import url('../../../assets/css/navbar.css');
@import url('../../../assets/css/contactbar.css');

/* Global Styles */
body {
  padding-top: 80px;
  background-image: url('images/bg.png');
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  color: #333;
  background-color: #f5f5f5;
}

h1 {
  margin: 0.2em 0 0 0;
  font-size: 3.25em;
  letter-spacing: -0.025em;
  font-weight: 300;
}

h2 {
  font-size: 1.5em;
  letter-spacing: -0.015em;
}

p {
  line-height: 1.6em;
  font-size: 1.1em;
}

.subheader {
  font-size: 1.25em;
  font-weight: 300;
  color: #555;
  margin: 0 0 0.5em 0;
  text-align: left;
}

.wrapper {
  padding: 6em 2em 2em;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
}

.file-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f4f4f4;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.file-tile .image-wrapper,
.file-tile .iframe-wrapper {
  flex-grow: 1; /* Makes the iframe take up available space */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  height: auto;
}

img {
  width: 100%;
}

a {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.file-tile .img,
.file-tile iframe {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  object-fit: cover;
  border-radius: 10px;
}

.file-tile h4 a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

.file-tile h4 a:hover {
  color: #0073e6;
}

/* Header Image Styles */
.image.fit {
  float: left;
  margin: 1.5em 2.5em 0 1em;
}

.image.fit img {
  max-width: 15em;
  height: auto;
  border-radius: 25px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .image.fit {
    float: none;
    margin: 0 auto 1.5em auto;
    display: block;
    text-align: center;
  }

  .image.fit img {
    display: block;
    margin: 0 auto;
  }
}

.preview-button {
  display: inline-block;
  width: 120px;
  padding: 8px 12px;
  margin: 10px auto 0;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  background-color: #005aaf;
  box-shadow: 6px 6px 0px #002d81;
  position: relative;
}

.preview-button:hover {
  background-color: #006acd;
  transform: translateX(-2px) translateY(-2px);
  box-shadow: 8px 8px 0px #002d81;
}

.preview-button:active {
  background-color: #00407b;
  transform: translateX(2px) translateY(2px);
  box-shadow: 4px 4px 0px #002d81;
}
