/*** general Settings */
/*****************************************************/

/* Font */
@font-face {
    font-family: mysans;
    src: url("../font/THSarabunNew001.ttf");
}
@font-face {
    font-family: mysans;
    src: url("../font/THSarabunNewBold001.ttf");
    font-weight: bold;
}
@font-face {
    font-family: mysans;
    src: url("../font/THSarabunNewItalic001.ttf");
    font-style: italic;
}
@font-face {
    font-family: mysans;
    src: url("../font/THSarabunNewBoldItalic001.ttf");
    font-weight: bold;
    font-style: italic;
}

/*** Font size, weight, headings and paragraph ***/
/* set base size to 22 px/1.4rem*/
body { font-size: 22px; font-size:1.4rem;}

h1, h2, h3, h4, h5, h6 {
    color: #000000;
    line-height: 1.3;
    margin-top: 1em;
    text-align: center;
    font-weight: bold;
}
h1 {
    font-size: 1.5em;
    background: rgba(255,255,255,0.3);
}
h2 {
    font-size: 1.25em;
}
h3 {
    font-size: 1.1em;
}

a {
    color: #333333;
    text-decoration: none;
}
a:hover {
    color: #000000;
    text-decoration: overline underline;
}
a.active {
    color: #000000;
    text-decoration: overline underline; 
}

b, strong {
    font-weight: bold;
}

p {
    line-height: 1.2;
    text-align: left;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}
hr {
    border-top: 1px solid #333333;
    border-bottom: none;
}

/* Container for Page Layout */
/***************************************************/
.title {
    margin: auto;
    margin-top: 480px;
    max-width: 800px;
    align-self: center;
    text-align: center;
    font-family: mysans;
    font-weight: bold;
    font-size: 3rem;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    background-color: rgba(255,255,255,0.7);
    border-right: 4px solid #f3a31b;
    border-left: 4px solid #f3a31b;
}
.menu {
    background-color: #DDDDDD;
    background-image: linear-gradient(rgba(255,255,255,0.6),rgba(200,200,200,0.9));
    box-shadow: 4px #999999;
    text-align: center;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    width: 100%;
    overflow: hidden; 
    position: -webkit-sticky;
    -webkit-position: -webkit-sticky;
    -webkit-position: sticky;
    position: sticky;
    top: 0;
    line-height: 1.5;
    font-family: mysans;
    font-size: 1.1em;
    z-index: 50;
}
.cms .menu {
    top: 50px;
}
ul.menu * {
    padding-right: 0.3em;
}
li.lang_switch {
    text-align: right;
    float: right;
}
.content {
    background-color: rgba(255,255,255,0.7);
    margin: auto;
    max-width: 800px;
    padding: 1em;
    margin-top: 1em;
    font-family: mysans;
    border-right: 4px solid #f3a31b;
    border-left: 4px solid #f3a31b;
}


/* settings for various content*/
/*********************************************************/


/* div container for each section, supporting link to */
div.section {
    padding-top: 2em;
}

/* settings for images */

img {
    animation: colorize 2s cubic-bezier(0, 0, .78, .36) 1;
    background: transparent;
    border: 4px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    display: block;
    margin: auto;
    max-width: 95%;
    align-self: center;
}
img.img-cd {
    max-width: 220px;
    display: inline;
    float: left;
    margin-top: 0;
    margin-bottom: 1.3em;
    margin-left: 1.3em;
    margin-right: 1.3em;
}
img.gallery {
    max-height: 220px;
    display: inline;
}
img.gallery:hover {
    border-color: rgba(0,0,0,0.5);
}
div.gallery_wrap {
    text-align: center;
}
div.content_section_item {
    display: inline;
}

/* settings for video iframes */
iframe {
    width: 512px;
    height: 288px;
    align-self: center;
}

/* settings for split layout in up to 3 columns */
.split {
    -webkit-column-width: 220px; /* Chrome, Safari, Opera */
    -moz-column-width: 220px; /* Firefox */
    column-width: 220px;
    -webkit-column-gap: 20px; /* Chrome, Safari, Opera */
    -moz-column-gap: 20px; /* Firefox */
    column-gap: 20px;
    -webkit-column-rule: 1px solid #333333; /* Chrome, Safari, Opera */
    -moz-column-rule: 1px solid #333333; /* Firefox */
    column-rule: 1px solid #333333;
}

/* settings for buttons in lists*/
button {
    font-family: mysans;
        font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
}
button.mute {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(200,200,200,0.2);
    border: 10px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}
button.mute:hover {
    background: rgba(200,200,200,0.5);

}
button.mute:active {
    background: rgba(200,200,200,0.9);
}
button.btn {
    background: rgba(200,200,200,0.2);
    margin: 4px;
    padding-left: 4px;
    padding-right: 4px;
    border: 2px solid rgb(0,0,0);
}
button.btn:hover, button.btn-selected {
    background: rgba(200,200,200,0.7);

}
button.btn:active {
    background: rgba(200,200,200,0.9);
}
button.closeme {
    align-self: right;
    -webkit-align-self: right;
    float: right;
    right: -20px;
}
ul {
    text-align: center;
    padding: 0px;
}
li {
    list-style-type: none;
    display: inline;
}

/* settings for readmore and optional content */
.readmore {
    display: inline-block;
    overflow: hidden;
    padding-left: 0.3em;
    padding-right: 0.3em;
    border: 2px solid black;
    height: 2em;
    cursor: pointer;
}
.cms .readmore {
    height: auto;
    cursor: text;
}
.readmore:hover {
    background: rgba(200,200,200,0.7);
}
.readmore * {
    margin-top: 0.3em;   
}
.readmore-show {
    height: auto;
    display: block;
}
.smooth {
    -webkit-transition: height 1s ease-in-out, width 0.5s ease-in-out; 
    transition: height 1s ease-in-out, width 0.5s ease-in-out;
}



/* further settings */
/**************************************************/

#datelist p {
    text-align: center;
}
/* set smoothscroll if possible */

root {
    scroll-behavior: smooth;
}

/* settings for background video and image */
html {
    background: #e6e9e9;
    background-image: url("../img/background.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.fullscreen-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -100;
}
.fullscreen-bg__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:"../img/background.png"
}

/* setting of top-link*/
#top {
    position: absolute;
    top: 0px;
}



/* some responsive setting ...  */

/* regarding video-rezising */
@media (min-aspect-ratio: 16/9) {
  .fullscreen-bg__video {
    height: 300%;
    top: -100%;
  }
}

@media (max-aspect-ratio: 16/9) {
  .fullscreen-bg__video {
    width: 300%;
    left: -100%;
  }
}

/* regarding video substituion by image and rezise of iframes on small screens */
@media (max-width: 767px) {
  .fullscreen-bg {
    background: url('../img/background.png') center center / cover no-repeat;
  }

  .fullscreen-bg__video {
    display: none;
  }

    .title {
        margin-top: 200px;
        background-color: #F1F1F1;
    }
    
    .content {
        background-color: #F1F1F1;
    }
    
    iframe {
        width: 256px;
        height: 144px;
    }
}


/* further settings */
.sticky {
    position: -webkit-sticky;
    -webkit-position: webkit-sticky;
    position: fixed;
    top: 0;
    width: 100%;
}

samp {
    display: none;
}

@keyframes colorize {
    0% {
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
    }
    100% {
        -webkit-filter: grayscale(0%);
        filter: grayscale(0%);
    }
}
br.clearing {
    width: 0;
    height: 0;
    font-size: 0;
    line-height: 0;
    clear: both;
}