/* Import Open Sans font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&display=swap');

/* Base styles */
:root {
  --main-bg-color: #182838;
  --content-bg-color: #132333;
  --text-color: #C0C0C0;
  --link-color: #66ccff;
  --link-hover-color: #ffffff;
  --max-content-width: 850px;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--main-bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  font-size: 0.75em;
  margin: 0;
  line-height: 1.5;
}

div#textcontent p, div#textcontent2 p {
  font-size: 0.8em;
}

p#pline {
  margin-top: 1rem;
}

p#pline2 {
  margin-top: 2rem;
}

/* Layout */
div#content {
  position: relative;
  max-width: var(--max-content-width);
  margin: 0.25rem auto;
  padding: 0.5rem 2rem;
  background-color: var(--content-bg-color);
  box-sizing: border-box;
}

/* Text and image layouts */
.text-image-layout, .terrain-text-layout {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  align-items: flex-start;
  position: relative;
  max-width: 810px;
  width: 100%;
}

div#textcontent {
  flex: 1;
  max-width: 480px;
  padding-top: 1rem;
}

div#textcontent2 {
  flex: 1;
  max-width: 480px;
  padding-top: 0;
  transform: translateY(-0.2rem);
}

/* Images and their containers */
div#shot {
  width: 280px;
  flex-shrink: 0;
  position: relative;
  transform: translate(0.43rem, 0.33rem);
  margin-top: 1rem;
}

div#terrain {
  width: 160px;
  flex-shrink: 0;
  position: relative;
  transform: translateX(-0.43rem);
  margin-top: 1rem;
}

div#terrain img, div#shot img {
  width: 100%;
  height: auto;
  display: block;
}

div#terrain p, div#shot p {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  line-height: 1.4;
  width: 100%;
}

/* Image row layout */
.image-row {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 100%;
  box-sizing: border-box;
}

div#main, div#complete, div#gamecomplete {
  flex: 0 1 calc(31% - 1rem);
  min-width: 220px;
  margin: 0;
  position: relative;
}

div#main img, div#complete img, div#gamecomplete img {
  width: 100%;
  height: auto;
  display: block;
}

/* Banner image */
div#bigStart {
  position: relative;
  margin: 1rem 0 2rem;
  width: 100%;
  max-width: 810px;
  margin-left: auto;
  margin-right: auto;
}

div#bigStart img {
  width: 100%;
  height: auto;
  display: block;
}

img#terrain, img#shot, img#main, img#bigStart, img#complete, img#gamecomplete {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image captions */
div#terrain p, div#shot p, div#main p, div#complete p, div#gamecomplete p {
  margin-top: 0.5rem;
  width: 100%;
  text-align: left;
  font-size: 0.75em;
  line-height: 1.4;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

/* Video container */
div#video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 2rem 0;
}

div#video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

/* Divider */
hr {
  width: 100%;
  max-width: 810px;
  margin: 2rem auto;
  border-top: 1px dotted #287878;
  border-bottom: 1px solid #286888;
}

/* Typography */
span.emphasis {
  color: var(--link-hover-color);
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:link {
  color: var(--link-color);
  text-decoration: none;
}

a:visited {
  color: var(--link-color);
  text-decoration: none;
}

a:active {
  color: var(--link-color);
  text-decoration: underline;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Copyright */
p#copyright {
  margin: 2rem 0 1rem;
  color: #999999;
  font-size: 0.75em;
}

/* Media Queries */
@media screen and (min-width: 768px) {
  div#content {
    margin-top: 0.25rem;
    padding: 1rem 3rem;
  }

  div#textcontent {
    float: left;
    width: 48%;
  }

  div#textcontent2 {
    float: right;
    width: 48%;
  }

  div#terrain, div#shot {
    width: 48%;
    margin: 1rem 1%;
    float: left;
  }

  .image-row {
    flex-wrap: nowrap;
    gap: 2rem;
    padding: 0;
  }

  div#main, div#complete, div#gamecomplete {
    flex: 1;
    margin: 0;
    padding: 0;
  }

  /* Ensure captions match image width */
  div#terrain p, div#shot p, div#main p, div#complete p, div#gamecomplete p {
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 13px;
  }

  div#content {
    margin: 0;
    padding: 0.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .text-image-layout, .terrain-text-layout {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
  }

  div#textcontent, div#textcontent2 {
    padding-top: 0;
    transform: none;
  }

  div#shot, div#terrain {
    width: 100%;
    max-width: 280px;
    margin: 1rem auto;
    transform: none;
  }

  div#terrain {
    max-width: 280px;  /* Match toughShot width */
  }

  .image-row {
    flex-direction: column;
    gap: 2rem;
    margin: 1rem 0;
  }

  div#main, div#complete, div#gamecomplete {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-width: unset;
  }

  div#video {
    margin: 1rem 0;
  }

  div#bigStart {
    margin: 0.5rem 0 1rem;
  }

  /* Reset all floats */
  .clearfix::after {
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 850px) {
  div#content {
    margin: 0.25rem 1rem;
    padding: 1rem 2rem;
  }

  .image-row {
    gap: 1rem;
  }
}

/* Clearfix */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

div#title {
  font-size: 0.75em;
  margin-top: 8px;
  margin-left: 0px;
  color: #F8F8F8;
}

div#back {
  position: absolute;
  top: 10px;
  left: 30px;
  font-size: 0.75em;
}		
		a          { color: #66ccff; }
		a:link     { color: #66ccff; text-decoration: none; }
		a:visited  { color: #66ccff; text-decoration: none; }
		a:active   { color: #66ccff; text-decoration: underline; }
		a:hover    { color: #ffffff; text-decoration: underline; }

p#videoTitle {
  position: absolute;
  color: #ffffff;
  top: 1237px;
  left: 20px;
  width: 950px;
}
	