/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Self-hosted Quicksand font from Google Fonts */
@font-face {
  font-family: 'Quicksand';
  src: url('/fonts/Quicksand/Quicksand-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

body {
  font-family: 'Quicksand', 'Trebuchet MS', Arial, sans-serif;
  font-size: 14px;
  background-color: #1a1a2e; /* Fallback dark background while Three.js loads */
  background: -webkit-canvas(threejscanvas);
  background-attachment: fixed;
}

.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 15px;
}

.grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0px;
  margin-bottom: 0px;
}

.grid-full {
  grid-column: 1 / -1;
}

.grid-col {
  min-width: 0; /* Prevents grid blowout */
}

/* Responsive - single column on mobile */
@media (max-width: 768px) {
  .grid-row {
    grid-template-columns: 1fr;
  }

  .grid-col {
    grid-column: 1;
  }
}

.page-header {
  color: white;
  border-bottom: 0;
  margin: 40px 0px 40px 0px;
}

.page-header h1 {
  font-size: 36px;
  margin: 0;
}

h3, h2 {
  color: white;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 24px;
}

span {
  color: white;
  font-size: 100%;
  text-align: justify;
}

p {
  color: white;
}

a {
  color: #66b3ff;
  text-decoration: none;
}

a:hover {
  color: #99ccff;
  text-decoration: underline;
}

.img-responsive {
  max-width: 100%;
  min-width: 100%;
  height: auto;
  display: block;
}

video.img-responsive {
  width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px 5px 5px 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  -webkit-user-select: all;
  -moz-user-select: all;
  -ms-user-select: all;
  user-select: all;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.btn-default {
  color: #fff;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-default:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #eee;
}

hr.soften {
  height: 1px;
  background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(255, 255, 255, 0.8), rgba(0,0,0,0));
  border: 0;
}
