
@font-face{
  font-family: 'OceansideTypewriter';
  src: url("fonts/Oceanside Typewriter.ttf") format('truetype');
  font-display: swap;
}

body{
  margin: 0;
  font-size: 1.2rem;
  font-family: serif;
}

a { color: black; }
a:visited { color: black; }

h2{
  font-family: 'OceansideTypewriter', monospace;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 12px 0;
}

h1, h3, h4, h5, h6{
  font-family: 'OceansideTypewriter', monospace;
}

.content-container{
  display: grid;
  grid-template-columns: 250px minmax(615px, 1fr) 250px;
  height: 100vh;
  width: 100%;
}

.nav, .resources{
  border: 1px solid;
  overflow: hidden;
}

.center{
  border: 1px solid;
  overflow-y: auto;
  overflow-x: hidden;
  /* Offset content down and leave clear space at the bottom. */
  padding-top: 150px;
  padding-bottom: 150px;
  box-sizing: border-box;
}

/* Use the same background for the left and right columns. */
.nav, .resources{
  background-image: url("images/digital-decay-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Middle column background (main content). */
.center{
  background-image: url("images/digital-decay-background-presentation.png");
  /* Fill the entire middle column (edges line up on all sides). */
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.nav section{
  padding: 16px;
  width: 80%;
  margin: 0 auto;
}

.main-frame, .side-frame{
  width: 100%;
  height: 100%;
  border: 0;
}

.nav a.active{
  text-decoration: underline;
}

/* Mobile layout: stack left / middle / right columns vertically. */
@media (max-width: 700px){
  .content-container{
    grid-template-columns: 1fr;
    grid-template-rows: 152px 1fr 152px;
    height: 100vh;
    min-height: 100vh;
  }

  /* Fixed-height top and bottom panels with their own scroll. */
  .nav{
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .resources{
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .nav section{
    width: 100%;
  }

  .center{
    padding-top: 0;
    padding-bottom: 0;
    overflow-y: auto;
    background-image: none;
    background-color: #fff;
    background-size: auto;
  }

  /* Let iframe fill the grid row. */
  .main-frame, .side-frame{
    height: 100%;
  }
}
