@import url(https://fonts.googleapis.com/css?family=Fjalla+One);
@import url(https://fonts.googleapis.com/css?family=Oswald);
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro');

:root {
  --leftnote: 20vw;
  --rightnote: 20vw;
  --edge: 1rem;           /* outer viewport edge buffer – applied to html */
}

html {
    margin: 0; padding: 0;
    min-height: 100%;
    position: relative;
}

body {
    margin: 0; padding: 0;
    background: white;
    font-family: "Open Sans", sans-serif;
}

a {
    color: #379;
    text-decoration: none;
    xfont-style: italic;
    xborder-bottom: 1px #fff dotted;
}

q::before { content: "\201c" }
q::after { content: "\201d" }
q { font-style: italic }

figure { text-align: center; margin: 3rem auto }
figure img { border: thin solid black; margin: 0.3rem }

audio { display: block; margin: 2rem auto 2rem }
video { display: block; width: 100%; }

.clear {clear: both;}
*:focus {outline: none;}
.toggle {cursor: pointer;}

h1, h2, h3 {
    font-weight: normal;
    font-family: "Fjalla One", Oswald, sans-serif;
    margin: 4rem 0 2rem;
    padding: 0;
    text-align: center;
}

article::after {
  content: "";
  display: block;
  width: 10rem;
  height: 1px;                 /* or use border-bottom */
  margin: 2rem auto 3rem;      /* ← centers horizontally + adds top/bottom spacing */
  border-bottom: 1px solid black;
}


h1 { font-size: 5em; text-transform: uppercase; }
h2 { font-size: 3em; }
h3 { font-size: 1.3em; font-style: italic }

p.byline { font-style: italic; text-align: center }

#subtitle {
	font-size: 16px;
	padding: 0 0 10px 0;
	text-transform: uppercase;
}



footer {
  border-top: thin solid black;
  padding: 2rem 1rem;
  background: white;
  text-align: center;
}



/* wrapper */

div#wrapper { clear: both }

@media (min-width: 800px) {

    div#wrapper {
        clear: both;
        max-width: calc(100vw - (var(--leftnote) + var(--rightnote)));
        margin: 0 auto;
        padding-left: var(--leftnote);
        padding-right: var(--rightnote);
    }

    aside, span.fn {
	background: yellow;
        box-sizing: border-box;
        float: left;
        clear: left;
        width: calc(var(--leftnote) - 2rem);
        height: 100px;
        margin-left: calc(-1 * var(--leftnote));
        img { width: 100%; }       
    }

}


/* navigation */

#nav {
    font: 24px Open Sans, sans-serif;
    min-height: 400px;
/*    background: url(/img/tangaroa-raft-header.jpg) #1F2B33 no-repeat;
    background: url(/img/newbg.jpg) #1F2B33 no-repeat;*/
    background: url(/img/bg3.jpg) black no-repeat;
    background-size: cover;
    padding: 20px 0 0 0;
    box-sizing: border-box;
    z-index: 2;
}

#nav a { text-decoration: none; color: white }

#nav #logo { float: left; background: #0b4253; padding: 2px 4px 10px; margin: 0 0 20px 2%; border: 3px solid white; border-radius: 3px; width: 20vw; }

#nav ul {
    margin: 0;
    text-align: right;
}

#nav li {
    display: inline;
    font-size: 14px;
    list-style: none;
    padding: 5px; 
    margin: 3px; 
    background: #38a9a2; background: #0b4253;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.2s;
    border-radius: 3px;
}

#nav li:hover {
    background: #1F2B33; 
}

#nav #social { 
    position: absolute; top: 52px; right: 0%;
    background: white; background: #0b4253;
    padding: 5px 20px 0 0;
}

#nav #social a {
    margin-left: 5px;
}


#nav #motto { 
  font: 40px Crimson Pro;
  font-weight: normal;
  clear: left; 
  color: white;
  text-wrap: balance;
  text-align: center;
  position: relative;
  margin: 18vw auto 0;
  min-height: 200px;
  text-align: center;
}

#motto .phrase {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  line-height: 1.4;
  pointer-events: none;
  transition: opacity 1.4s ease-in-out;
}

/* Total cycle = 18 seconds (3 phrases × 6s each) */
#motto .phrase:nth-child(1) { animation: fade 18s infinite }
#motto .phrase:nth-child(2) { animation: fade 18s infinite 6s }
#motto .phrase:nth-child(3) { animation: fade 18s infinite 12s }

@keyframes fade {
   0%    { opacity: 0; }
   8%    { opacity: 1; }   /* appear quickly */
   25%   { opacity: 1; }   /* stay visible ~3s */
   33%   { opacity: 0; }   /* fade out */
   100%  { opacity: 0; }
}


@media (max-width: 800px) {
  #motto .phrase {
    font-size: 1.6rem;
    padding: 0 15px;
  }
}

div.third, div.half, div.twothirds  {
  box-sizing: border-box;
  width: 100vw;
  height: 100vw;
  margin: 0; padding: 0

  iframe {
    width: 100vw;
    height: 100vw;
  }
}

@media (min-width: 800px) {
  div.third {
    float: left; width: 30vw; height: 30vw;
    iframe { width: 30vw; height: 30vw; }
    margin-bottom: 2rem;
  }

  div.half {
    float: left; width: 50vw; height: 50vw;
    iframe { width: 50vw; height: 45vw; margin: 0; padding: 0 }
    margin-bottom: 3rem;
  }

  div.twothirds {
    float: left; width: 68vw; height: 30vw; padding: 3vw; background: orange;
    img { float: left; height: 25vw; }
    * { text-align: center }
    margin-bottom: 3rem;
  }
}
 
