/* css styles used by all pages of the Channel J site, Robert Goodwin 2016 */


@font-face {
    font-family: kirvy;
    src: url(../fonts/Kirvy-Regular.otf)
}
/*@font-face {
    font-family: nukamiso;
    src: url(../fonts/nukamiso__beta08.ttf)
}*/
/*@font-face {
    font-family: ipa;
    src: url(../fonts/ipaexg.ttf)
}*/
@font-face {
    font-family: mplus;
    src: url(../fonts/mplus-2-regular-sub.ttf)
}
#bootstrap-override {
    font-family: mplus, Arial, Helvetica, sans-serif;
}

/* The mplus font causes funny squares to appear when the <br> tag is used only on Microsoft Edge.
   So use this hack to go back to the Arial font if the browser is detected to be Microsoft Edge */
@supports (-ms-ime-align:auto) {
    #bootstrap-override {
        font-family: Arial, Helvetica, sans-serif;
    }
}


h4 {font-size: 22px;}
h6 {font-size: 16px;}

#main-container {
    max-width: 1080px;
    padding: 0px;
    margin: auto;
    margin-bottom: 0px;
}
.secondary-container {
    max-width: 1080px;
    padding: 0px;
}

/*fix issue with containers and rows that causes horizontal scroll bar to appear*/
.row {
    margin-left: 0;
    margin-right: 0;
}


/* top header stuff */

#bootstrap-override #top-header {
    position: relative;
    margin: 0px;
}

#top-header > img {
    width: 100%;
}

#logo {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, 0);
}

#logo > h4 {
    text-align: center;
    font-size: 1.6vw;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 1px white, -1px -1px 1px white, -1px 1px 1px white, 1px -1px 1px white;
}

#logo > img {
    width: 50%;
    margin: auto;
}


@media (max-width: 768px) {
    #logo > h4 {font-size: 12px;}
}

@media (max-width: 520px) {
    #logo > h4 {display: none;}   
    #logo {top: 35%;}
    #logo > img {width: 85%;}
}


/* nav stuff */

#bootstrap-override .navbar {
    margin: 0px;
}

.navbar-default {
    background: #222;
    border-radius: 0px;
    padding: 0px 0px;
    margin: 0px;
    min-height: 0px;
}

.navbar-collapse {
    padding: 0px;
}

.navbar-header {
    background: #333;
}

.navbar-header > div {
    margin: auto;
    display: block;
    width: 45px;
}

.navbar-toggle {
    background: #444;
    float: none;
}

.navbar-nav {
    float: none;
    margin: 0px auto;
    display: table;
    table-layout: auto;
    width: 100%;
    max-width: 1080px;
}

#bootstrap-override .navbar-nav > li > a {
    padding: 0px;
    padding-left: 0px;
    padding-right: 0px;
    margin: 0px;
}


.navbar-nav li {
    display: table-cell;
    float: none;
    text-align: center;
    margin: auto; 
}


#bootstrap-override .nav li a {
    background: #222;
    color: #fff;
    text-align: center;
    font-size: larger;
    padding: 8px;
}

#bootstrap-override .dropdown-menu li a {
    padding: 8px 15px;
}

#bootstrap-override nav li a:hover {
    background: #999;
    color: #fff;
}

#bootstrap-override nav li.active a {
    background: #444;
}


@media (max-width: 767px) {
    .navbar-nav {width: auto;}
    .navbar-nav li {display: block;}
}

/*    
@media (max-width: 1175px) {
    #bootstrap-override nav li a {
        padding: 8px 48px;
    }
    
}

@media (max-width: 1100px) {
    #bootstrap-override nav li a {
        padding: 8px 44px;
    }  
}
*/



#top-header {
    background: #222;
}

#top-header > img {
    display: block;
    margin: auto;
}



#language-links {
    /*margin: 6px 12px;*/
    float: left;
    padding-top: 5px;
    position: absolute;
    top: 10px;
    left: 20px;
}

#language-links a {
    margin: 8px;
    color: black;
}

#language-links span {
    border: 1px; 
    border-style: solid;
    border-color: #555;
}




/* adjust position of language links on very large screens */
@media (min-width: 1750px) {
    #language-links {left: 10%;}
}

/* move channel j logo on small screens */
@media (max-width: 625px) {
    #header-right-logo {
        position: absolute;
        top: 46px;
        left: -15px;
    }
    
    #language-links {
        top: 0px;
        left: 0px;
        font-size: 12px;
    }
    
    #header-right-hawaii {
        max-width: 140px;
        top: 50px;
    }
    
    #top-header {
        margin-bottom: 47px;
    }
}

/* shrink channel j logo greatly on tiny screens */
@media (max-width: 420px) {
    #header-right-logo {
        max-width: 100px;
        top: 68px;
        left: -25px;
    }
}

#top-div {
    background: white;
    width: 100%;
    min-height: 50px;
    
    border: 2px;
    border-color: #0055ff;
    border-left: 0px;
    border-right: 0px;
    border-style: solid;
    font-size: larger;
}

#top-div-single-border {
    width: 100%;
    border: 2px;
    /*border-color: #0055ff;*/
    border-color: black;
    border-left: 0px;
    border-right: 0px;
    border-style: solid;
    background: grey;
    min-height: 6px;
}

#top-div-contents {
    border: 2px;
    border-style: solid;
    border-color: #0055ff;
    border-left-color: white;
    border-right-color: white;
    padding: 10px 20px;
    font-size: 20px;
    min-height: 50px;
    font-family: kirvy;
}


.middle-section {
    background: #fff;
    
}


/* front parts */

#front {
    margin: 0px;
    padding: 0px;
}

.front-title {
    margin: 0px 0px 15px;
    text-align: center;
    font-size: 24px;
    min-height: 50px;
    padding: 10px;
    /* font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; */
    
    background: #eee;
    background: -webkit-linear-gradient(top, #eee, #eee, #eee, #ddd); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(bottom, #eee, #eee, #eee, #ddd); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(bottom, #eee, #eee, #eee, #ddd); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to bottom, #eee, #eee, #eee, #ddd); /* Standard syntax */
}

#front-left {
    background: #eee;
    padding-bottom: 30px;
    padding-top: 30px;
    margin-bottom: 0px;
}

#front-right {
    margin: 20px 0px 10px;
}

.button-like {
    border: 5px;
    border-bottom-style: solid;
    
    border-radius: 10px;
    text-align: center;
    max-width: 182px;
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    color: white;
    font-size: 20px;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    transition: all 1s;
}


#campaign-button {
    background: #6677ff; /*#8899cc;*/
    border-bottom-color: #5566aa; 
}

#campaign-button:hover {
    background: #aaaaff;
    cursor: pointer;
}

#moshikomi-button {
    background: #aa77aa;
    border-bottom-color: #885599; 
}

#moshikomi-button:hover {
    background: #ddaadd;
    cursor: pointer;
}

#payment-options {
    display: none;
    font-size: larger;
}

#ankeeto-button {
    background: #999999; 
    border-bottom-color: #777777; 
}

#ankeeto-button:hover {
    background: #cccccc;
    cursor: pointer;
}

#vid-container {
    display: block;
    margin: auto;
    float: right;
}

#vid-container video {
    width: 94%;
    height: auto;
    display: block;
    margin: 30px auto 0px;
}

#in-between-vid {
    height: 200px;
}

@media (max-width: 767px) {
    #in-between-vid {height: 420px;}
}

@media (max-width: 440px) {
    #in-between-vid {height: 220px;}
}



.info-box-top {
    max-width: 800px;
    /*max-width: 540px;*/
    
    border: 1px;
    border-style: solid;
    border-radius: 10px 10px 0px 0px;
    border-color: #222;
    
    padding: 5px;
    
    background: #222;
    color: white;
    text-align: center;
    font-weight: bold;
    
    display: block;
    margin: auto;
}

.info-box-bottom {
    max-width: 800px;
    /*max-width: 540px;*/
    
    border: 1px;
    border-style: solid;
    border-top-style: none;
    border-radius: 0px 0px 10px 10px;
    
    padding: 15px 5px 0px;
    
    background: #eef;
    
    text-align: center;
    font-weight: normal;
    
    display: block;
    margin: auto;
}

/* shrink willfon channel j logo on tiny screens */
@media (max-width: 420px) {
    .info-box-bottom img {
        max-width: 100px;
    }
}



#contact-container-border {
    background: #bbbbbb;
    min-height: 10px;
    border: 2px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-color: #444444;
}

#contact-container {
    background: #f2f2f2;
    background: url("../imgs/egg_shell.jpg");
    background: #444;
    padding: 20px 10px 20px;
    margin-left: 0px;
    margin-right: 0px;
}


#contact-form-box {
    padding-left: 20px;
    padding-right: 20px;
}

input {
    margin-top: 12px;
    max-width: 100%;
}

.styled-button {
    font-size: 20px;
    padding: 10px 10px;
    margin-top: 10px;
    color:#010101;
    border: 1px;
    border-style: solid;
    
    background: white;
    border-radius: 8px;
}

.styled-button:hover {
    padding: 8px 8px;
    border: 3px;
    border-style: solid;
}


/* footer stuff */

#serious-links-list {
    margin: 20px auto 40px;
    display: block;
    font-size: 12px;
}

#serious-links a {
    list-style-type: none;
    width: 150px;
    display: block;
    margin: auto;
    border: 2px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-color: #999;
    padding: 6px;
    
}

#serious-links a {
    color: white;
    text-decoration: none;
}

#serious-links a:hover {
    color: #7bf; /* #abf;*/
}

#footer {
    margin: auto;
    position: relative;
    /*background: #0055ff;*/
    background: #222;
    color: white;
    padding: 5px;
}

/* small screens */
@media (max-width: 767px) {
    h4 {font-size: 18px;}
    h6 {font-size: 12px;}
    
    #contact-form-box {margin-top: 20px;}
}

/* bigger screens */
@media (min-width: 1080px) {
    h4 {font-size: 28px;}
    h6 {font-size: 18px;}
}


/* link to top */

.link-to-top {
    display: none;
}

.link-to-top a {
    font-size: 18px;
    position: fixed;
    right: 20px;
    bottom: 3px;
    color: white;
    text-shadow: 0px 0px 10px black, 0px 0px 1px black;
    text-decoration: none;
    transition: all .2s;
}

.link-to-top a:hover {
    -ms-transform: scale(1.2, 1.2); /* IE 9 */
    -webkit-transform: scale(1.2, 1.2); /* Chrome, Safari, Opera */
    transform: scale(1.2, 1.2);
}

@media (max-width: 460px) {
    .link-to-top a {bottom: 44px;}
}



/* special campaign (not related to news.xml stuff) */

#news-box-holder {
    /*position: fixed;*/
    margin: auto;
    width: 60%;
    border: 5px;
    border-style: groove;
    border-color: silver;
    z-index: 800;
    
    display: none;
    position: absolute;
    top: 5%;
    left: 20%;
    /*margin: 0% 20% 10% 20%;*/
    padding: 3%;
    
    background: firebrick; 
    background: -webkit-linear-gradient(left top, red, white); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(bottom right, red, white); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(bottom right, red, white); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to bottom right, red, white); /* Standard syntax */
    
}

#news-box {
    
    overflow: hidden;
    
    /*background-image: url("/imgs/floral-pattern.jpg");*/
    background-image: url("../imgs/pink-beach.jpg");
    background-size: auto;
    background-origin: content-box;
    background-repeat: repeat-y;
    background-position: center top;

    
    border-color: black;
    border-style: solid;
    border-width: 0px;
    
    padding: 0 10px;
    
}

#news-box span {
    font-family: "Lucida Grande", sans-serif;
    font-weight: bold;
    background: white;
    padding: 0px 5px;
    color: black;
    position: relative;
    letter-spacing: 1.5px;
    border: 1px;
    border-style: solid;
}

#news-box h2 span {
    border: 1px;
    border-style: solid;
    padding: 2px 9px;
}
#news-box h5 span {
    border: 1px;
    border-style: solid;
}

#news-box > div {
    padding: 0px;
    display: block;
    margin: 6% auto;  
}

#news-box .row {
    padding: 10px 20px;
}

/* position of blocks in row */
.news-half-box {
    display: block;
    width: 80%;
    margin: auto;
}

.komakai-ol {
    margin-top: 8px;
    padding: 10px 5px 10px 28px;
    background: lightgray;
    list-style: decimal;
    list-style-position: outside;
    border: 1px;
    border-style: solid;
}
.komakai-ol li {
    background: white;
    margin: 5px;
    padding: 2px 3px;
    
}

.news-half-box form {
    margin-top: 8px;
    padding: 5px 15px 10px;
    background: lightgray;
    border-width: 1px;
    border-style: solid;
}

#not-now-button {
    float: right;
    position: absolute;
    bottom: 12px;
    right: 18%;
}



/* super large screens */
@media (max-width: 1800px) {
    /* remove border from image when there would be padding between it */
    #news-box {
        border-width: 1px;
    }
    
    #not-now-button {
        right: 15%;
    }
}

/* large screens */
@media (max-width: 1200px) {
    #news-box-holder {
        width: 80%;
        left: 10%;
    }
    
   .news-half-box {
       width: 90%;
       top: 3%;
    }
}

/* medium screens */
@media (max-width: 922px) {
    #news-box-holder {
        width: 90%;
        left: 5%;
    }
    
    .news-half-box {
        width: 100%;
    }
    
    #news-box .row {
        padding: 10px 10px;
    }
    
    #not-now-button {
        right: 10%;
    }
}

/* small screens */
@media (max-width: 767px) {
    
    #news-box-holder {
        top: 1%;
        width: 94%;
        left: 3%;
    }
    
    #news-box {
        padding-left: 0px;
        padding-right: 0px;
    }
    
    #news-box .row {
        padding: 5px 5px;
    }
}

/* tiny screens */
@media (max-width: 450px) {
    #news-box-holder {
        /*width: 96%;*/
        width: 96%;
        left: 2%;
        /*
        position: absolute;
        top: 120%;*/
    }
    
    #news-box .row {
        padding: 5px 0px;
    }
    
    #news-box form input {
        max-width: 100%;
    }
}


/* form submission received */

.thank-you-text {
    text-align: center;
    font-family: 'Trebuchet MS', Helvetica, sans-serif; 
    font-size: larger;
    margin: 10px 20px;  
}



#language-links .active {
    font-weight: bold;
    font-size: 16px;
}


/* news display */

#news-mother-box {
    position: relative;
     
    height: 120px;
    margin: 7px 0px;
}

#news-background-image {
    position: relative;
    left: 0;
    top: 0;
    opacity: .6;
    width: inherit;
    height: inherit;
    
    background-image: url("../imgs/tattoo.jpg");
    background-repeat: no-repeat;
    background-position: center;
    -ms-background-size: cover;
    -o-background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
    
   padding: 10px 18px; 
    border: 2px;
    border-bottom-style: solid;
    border-bottom-color: black;
    border-top-style: solid;
    border-top-color: black;
}

#news-display-box {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: 100%;
    height: inherit;
    opacity: 1;
   
    margin: 7px 10px;
    
    /*
    background-image: url("../imgs/tattoo.jpg");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    */
    
    text-shadow: -2px -2px 1px white, 2px 2px 1px white, -2px 2px 1px white, 2px -2px 1px white, -1px -1px white, 1px 1px white, -1px 1px white, 1px -1px white, -3px -3px 3px white, 3px 3px 3px white, -3px 3px 3px white, 3px -3px 3px white, 4px 4px 6px white, -4px -4px 6px white, -4px 4px 6px white, 4px -4px 6px white;
    
    font-weight: bold;
}


#news-date {
    font-size: initial;
    font-weight: bold;
    margin-right: 18px;
    color: black;
    
}

#news-title {
    font-size: 20px;
    color: #e41;
    
}

#news-desc {
    font-size: initial;
    margin-top: 5px;
    margin-left: 18px;
    color: black;
}

#news-desc a {
    text-decoration: none;
}

#news-link {
    margin: 25px 25px 20px;
    float: right;
    
    font-size: 16px;
    text-shadow: none;
    
    background: white; 
    background: -webkit-linear-gradient(left top, silver, white, white, silver); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(bottom right, silver, white, white, silver); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(bottom right, silver, white, white, silver); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to bottom right, silver, white, white, silver);
    
    padding: 5px 10px;
    border: 2px;
    border-style: groove;
    border-color: darkgray;
    transition: all .1s;
}

#news-link:hover {
    text-decoration: none;
    /* color: skyblue; */
    -ms-transform: scale(1.08); /* IE 9 */
    -webkit-transform: scale(1.08); /* Chrome, Safari, Opera */
    transform: scale(1.08);
    
}

@media (max-width: 768px) {
    #news-desc {font-size: 14px;}
}

@media (max-width: 620px) {
    #news-mother-box {height: 150px;}
}

@media (max-width: 480px) {
    #news-mother-box {height: 180px;}
}


