@CHARSET "UTF-8";

body {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 400;
    font-size: 1.2em;
    height: 100%;
}

html {
    height: 100%
}

#content {
    max-width: 50em;
    min-width: 12em;
    width: inherit;
}

div.centered {
    float: none;
    clear: none;
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    margin: auto;
}

img.small {
    max-width: 10em;
    min-width: 5em;
    width: 20vw; 
}

img.logo {
    width: 75%;
    margin: auto;
}

.caption {
    font-size: 0.7em;
}

h1, h2, h3 {
    font-family: 'Alegreya', serif;
    display: block;
}

h3.date {
    font-size: 0.9em;
}

table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
}

th, td {
    padding: 0.5em;
}

/* prev/next page buttons */

a.pagebutton:link, a.pagebutton:visited {
    background-color: #5FBBC7;
    color: white;
    padding: 0px 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: 0px;
    border-radius: 5px;
}

a.pagebutton:hover, a.pagebutton:active {
    background-color: #B6D7DB;
}

a.no-color {
    background-color: transparent;
    padding: 0;
}


/* adjust for desktops and other large landscape windows */

@media only screen and (orientation: landscape) and (min-width: 50em) {
    html {
        margin: 0;
        padding: 0vw 5vw;
        background-image: url('http://www.cruzviz.com/css/background.svg');
        background-position: 85% 0px;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: 10vw 100vh;
    }
    #content {
        max-width: 66%;
    }
    img.logo {
        width: 50%;
        margin: auto;
    }
    .caption {
        font-size: 1em;
    }
    h3.date {
        font-size: 1.2em;
    }
}


/* d3 plot styles */

.axis line, .axis path {
    fill: none;
    shape-rendering: crispEdges;
    stroke: #000;
}

.axis text {
    font-size: 0.7em;
}

.tidearea {
    fill: #52ABB7;
}

.sunintensityarea {
    fill: gold;
    fill-opacity: 0.30;
}

.sunarea {
    fill: gold;
}

.moonarea {
    fill: #D7A8A8;
    fill-opacity: 0.20;
}


/*  d3 tooltips  */

.d3-tip {
    float: none;
    clear: none;
    line-height: 1;
    padding: 8px;
    font-size: 1em;
    min-width: 1%;
    max-width: 20%;
    background: #DDECEE;
    border: 0px;
    border-radius: 5px;
    text-align: center;
}

@-webkit-keyframes smoothIn {
    0% {
      opacity: 0;
      -webkit-transform: scale(0.1);
    }

    50% {
        opacity: 0.25;
        -webkit-transform: scale(0.9);
    }

    100% {
      opacity: 1;
      -webkit-transform: scale(1);
    }
}

@keyframes smoothIn {
    0% {
      opacity: 0;
      transform: scale(0.1);
    }

    50% {
        opacity: 0.25;
        transform: scale(0.9);
    }

    100% {
      opacity: 1;
      transform: scale(1);
    }
}

.d3-tip.animate {
    animation: smoothIn 0.3s cubic-bezier(0, 0.55, 1, 0.57);
    -webkit-animation: smoothIn 0.3s cubic-bezier(0, 0.55, 1, 0.57);
}

rect {
    opacity: 0;
}
