@font-face {
    font-family: 'Source_Code';
    src: url('fonts/sourcecodepro-regular-webfont.woff2') format('woff2'),
         url('fonts/sourcecodepro-regular-webfont.woff') format('woff'),
         url('fonts/sourcecodepro-regular-webfont.ttf') format('truetype'),
         url('fonts/sourcecodepro-regular-webfont.svg#source_code_proregular')
         format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'tds-titles';
    src: url('fonts/tds.woff2') format('woff2'),
         url('fonts/tds.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ss_light';
    src: url('fonts/sourcesanspro-light-webfont.woff2') format('woff2'),
         url('fonts/sourcesanspro-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@keyframes fade_out { 0% { opacity:1; } 100% { opacity:0; } }
@keyframes fade_in { 0% { opacity:0; } 100% { opacity:1; } }

body,html {
    margin:0; padding:0;
    font-family: 'Source_Code', monospace;
    cursor: url(../images/yellow-cir.png), auto !important;
}

a { color:#000; }
a:hover { color:#fff; cursor: pointer; }

img {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

h1 {
    font-family: 'tds-titles', sans-serif;
    text-transform: uppercase;
    font-size: 64px;
    letter-spacing: 21px;
    font-weight: 100;
    text-align: center;
}

h2 {
    font-family: 'tds-titles', sans-serif;
    text-transform: uppercase;
    font-size: 38px;
    letter-spacing: 11px;
    font-weight: 100;
    text-align: center;
    margin: 110px 0px 45px 0px;
}

h3 {
    font-family: 'tds-titles', sans-serif;
    font-size: 36px; font-weight: 100; letter-spacing: 2px;
    margin:0px;
}

h4 {
    text-align: center; font-weight: 100;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

ul, p {
    font-family: 'ss_light', sans-serif; font-size: 1.4em;
    letter-spacing: 0.09em; font-weight: 300; line-height: 1.7em;
}

button {
    border-radius: 4px; border: 1px solid #000;
    padding: 12px 40px; background: #000;
    text-transform: uppercase; color: #fff;
    font: 13px sans-serif; text-align: center;
    cursor: pointer;
}

input {
    border-radius: 4px; border: 1px solid #000;
    padding: 12px 40px; font: 13px sans-serif;
    background-color: rgba(255,255,255,0.5);
}

.center { text-align: center; }

/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~*/
/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~. HOME PAGE */
/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~*/

.splash-bg {
    background: url(../images/bgtile.png) repeat center center fixed;
    background-color: #77d878;
}


section#splash {
    width:100%; height:100vh; min-height:320px;
    display:flex; align-items:center; justify-content:center;
}
#title { width: 90%; margin: 0 auto; display: block; }
#packet { margin: 0 auto; }
#splash-options {
    display: flex; justify-content: space-around;
    max-width: 460px; margin: 0 auto;
}


#project-info {
    width: 100%; display: flex; flex-direction: column;
}
#project-info > .header, #project-info > .footer{
    display: inline-block; width:100%; height:150px;
}
#project-info > .body {
    background-color: #34C8F2; width: 100%;
}
#project-info > .body > div {
    box-sizing: border-box;
    width: 100%; max-width: 780px;
    margin: 50px auto 150px auto;
    position: relative; z-index: 2; padding: 10px;
}

#subForm { display: flex; justify-content: center; }
#subForm > * { margin:0px 3px; }

#supporters { display: flex; justify-content: space-between; margin: 70px 0px; }
#supporters a { text-align: center; }
#supporters img { max-width: 40%; }


#open-source {
    background: url(../images/bgtile-light.png) repeat center center fixed;
    background-color: #222; color: #fff;
    padding: 250px 10px; margin-top: -150px;
}
#open-source > div { width: 100%; max-width: 780px; margin: 0 auto; }
#blog-posts > div { margin: 80px 0px; }
#open-source a { color:#fff; }
#end-card { text-align: center; margin-top: 200px; }


@media (max-width: 800px){
    h1 { font-size: 42px; letter-spacing: 8px; }
    h2 { font-size: 30px; letter-spacing: 4px; }
    h3 { font-size: 28px; }
}

@media (max-width: 500px){
    #subForm { flex-direction: column; }
    #subForm > * { margin: 3px; }
    #supporters { flex-direction: column; }
    #supporters > a:first-child { margin-bottom: 40px; }
    #supporters img { max-width: 60%; }
    #splash-options { padding:12px }
    #splash-options > button { padding:12px;  }
}

@media (max-width: 400px){
    h1 { font-size: 32px; letter-spacing: 2px; }
    h2 { font-size: 24px; letter-spacing: 4px; }
    h3 { font-size: 24px; }
    h4 { font-size: 12px; }
    p { font-size: 1em; }
}


/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~*/
/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~. PLAY PAGE */
/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~*/

section#play {
    width:100%; height:100vh; min-height:320px;
    display:flex; align-items:center; justify-content:center;
    position:absolute; z-index:9999; top:0px;
    background: url(../images/bgtile.png) repeat center center fixed;
    background-color: #77d878;
}

section#play > button { margin: 0px auto; display: block; }

#down-arrow {
    position: absolute; z-index: 999999;
    bottom: 10px;
    left: calc(50% - 60px);
    width: 120px;
}

#loading { text-align: center; margin-top:50px; }

#begin-button {
    margin: 70px auto; display: none;
    max-width: 540px; flex-direction: column;
    background: url(../images/bgtile-light.png) repeat center center fixed;
    background-color: #222; color: #fff;
    border-radius: 4px; padding: 10px;
}

#begin-button > * { margin:10px auto; text-align: center; }
#begin-button > button {
    width:160px;  background-color: #77d878; border-color: #77d878; color:#000;
}
#begin-button a { color:#fff; }


#nfo {
    position: absolute; z-index: 9998;
    top:0px; left:0px;
    width: 100%; height: 100%; background: #000;
    color: #fff; display: none;
}
#nfo > div {
    padding: 10px; margin: 50vh auto; max-width: 450px;
}

@media (max-width: 767px){
    #nfo > div { max-width:90%; }
}

@media (max-width: 540px){
    section#play { height:90vh; }
    #begin-button { margin: 40px 10px; }
}

@media (max-width:500px) {
    #begin-button { margin-top: 25px; }
}

@media (max-width:400px) {
    #down-arrow { display: none; }
}

@media (max-height:713px){
    #down-arrow { bottom:-28px; }
}

@media (max-height:691px){
    #down-arrow { width: 60px; bottom: -15px; left: calc(50% - 30px); }
}

@media (max-height:571px){
    #down-arrow { display: none; }
}


/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~*/
/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~. LEARN PAGE */
/*~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~._.~'~*/

#learn {
    background: url(../images/bgtile-light.png) repeat center center fixed;
    min-height:100vh; background-color: #222; color: #fff;
}
#learn a { color:#fff; }
#learn hr { border: 1px solid #fff; }
#learn > div { max-width: 1200px; margin: 0 auto; padding: 10px; }

#learn *::selection { color:#000; background: #fff; }
#learn *::-moz-selection { color:#000; background: #fff; }

.l-goals { font-size: 2em; }
.l-goals li {  margin:60px; line-height: 1.4em; }

.l-row { display:grid; grid-template-columns:1fr 1fr; grid-column-gap:20px; }

@media (max-width:1000px) {
    .l-row { display:block; }
    .l-goals li { margin: 0px 0px 20px 0px; font-size: 1.4em; }
    .l-goals li { font-size: 0.75em; }
}

@media (max-width:767px) {
    ul { font-size: 1em; }
}

.l-title { margin:100px auto; }
.l-title h3 { font-size: 60px; text-align: center; }
.l-title a {
    border-radius: 4px; border: 1px solid #000;
    padding: 12px 40px; background:rgba(255,255,255,0.6);
    text-transform: uppercase; color: #000 !important;
    font: 13px sans-serif; text-align: center;
    text-decoration: none; display: block;
    width: 80px; margin: 34px auto;
}
.l-title a:hover { background:rgba(255,255,255,1); }

#learn  .secret::selection { background: #f00; }
#learn  .secret::-moz-selection { background: #f00; }

#p1-daemon { height: 490px; }
#p2-daemon { height: 490px; }

.didactic-3js { position: relative; }
.caption-3js {
    color:#000; background-color: rgba(255,255,255,0.6);
    padding: 10px; border-radius: 5px;
    position: absolute; z-index: 10; bottom:0px;
}
.caption-3js:after {
    content: '';
    position: absolute; top: 0; left: 50%;
    width: 0; height: 0;
    border: 20px solid transparent;
    border-bottom-color: rgba(255,255,255,0.6);
    border-top: 0;
    margin-left: -20px; margin-top: -20px;
}
#learn .caption-3js > a { color:#000; }

#packet-graphic {
    margin: 70px auto;
    display:grid; grid-template-columns:1fr 1fr; grid-column-gap:20px;
}

@media (max-width:1000px) {
    #packet-graphic {
        height: auto; margin: 70px auto;
        grid-template-columns:3fr 1fr;
    }
}

#dns-packet {
    background-color: rgba(255,255,255,0.6); color:#000;
    padding: 10px; border-radius: 5px;
}
#dns-packet a { color:#000; }

#dns-packet > div:nth-child(2){
    background: #b1b1fb;  padding: 10px;
    margin-top: 10px;
    border-radius: 5px; line-height: 20px;
}
