@font-face {
    font-family: kalam;
    src: url(res/kalam.ttf);
}
*{ margin: 0; padding: 0; }
a { text-decoration: none; }
a:link, a:visited { color: unset; }
html { display: flex; }
body { display: flex; flex-flow: column; width: 100vw; max-width: 100%; }


#cover { flex: 1; display: flex; }
#cover img { width: 100%; vertical-align: middle; }
#cover.slide { display: none; }
.fade { -webkit-animation-name: fade; -webkit-animation-duration: 1.5s; animation-name: fade; animation-duration: 1.5s; }
@-webkit-keyframes fade { from {opacity: .4} to {opacity: 1} }
@keyframes         fade { from {opacity: .4} to {opacity: 1} }


nav.top { position: sticky; top: 0; display: flex; z-index: 3; justify-content: center; background-image: url("res/bg/circles-light.png"); }
nav.top ul {
    list-style: none; display: flex; flex: 1; justify-content: space-around; padding: 3vh 5vmin;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
nav.top ul li {
    padding: 0.4rem 2.5vw; margin: 0 1vmin; border-radius: 50px; border: 2px solid rgb(3, 59, 217); cursor: pointer;
    transition: ease-in; transition-duration: 0.2s;  background-image: linear-gradient(rgb(147, 208, 255), rgb(0, 39, 177));
}
nav.top ul li a { white-space: nowrap; }
nav.top ul li a:link { color: #000; }
nav.top ul li.selected {  color: rgb(250,250,250); }
nav.top ul li:hover {  color: rgb(150, 185, 255); }



.para { color: #335064; display: flex;  flex-direction: column;  background-image: url("res/bg/so-white.png");  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.para .sub_nav { margin-top: 1rem; padding: 7vh 10vw 0 10vw; display: flex; justify-content: flex-end; align-items: center; }
.para .sub_nav > *{ margin: 0 0.5rem; display: flex; align-items: center; }
.para .sub_nav .blink { animation: blink 0.5s infinite; animation-direction: alternate; font-size: 1.2rem; font-weight: 600; color: #CC4040; }
.para .sub_nav .small { display: none; }
@keyframes blink {
    0%   { opacity: unset; }
    50%  { opacity: unset; }
    100% { opacity: 0; }
}
.para .sub_nav > a:nth-last-child(1) {  display: flex;  align-items: center;  color: #717070; background-image: linear-gradient(#fbfbfd, #dadada);  border-radius: 35px;  padding:5px 15px 5px 5px; }
.para .sub_nav > a:nth-last-child(1) img { height: 35px; border-radius: 50%; margin-right: 7px; }
.para .sub_nav > a:nth-last-child(2) { transition-duration: 0.5s; border: 2px solid #aaa0; border-radius: 25px; padding: 0 10px; }
.para .sub_nav > a:nth-last-child(2):hover { border: 2px solid rgb(108, 148, 185); background-color: #c2d9e9; }
.para .sub_nav > a:nth-last-child(2) img { height: 35px; margin-right: 7px; }
.para .blur { padding: 1vh 8vw 7vh 8vw; display: none; }
.para .blur h2 { color: rgb(84, 21, 143); font-family: kalam, serif; padding-top: 2vmax; }
.para .blur h3 { font-family: kalam, serif; color: rgb(123, 36, 203); padding-top: 1vmin; }
.para .blur p { font-size: 1.2rem; line-height: 1.6rem; }
.para .shown { display: block; }

.para #gal .fb_gal { display: flex; justify-content: center; padding: 2rem; }
.para #gal .fb_gal a { width: 100%; text-align: center; font-weight: bold; }

.para .contain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding-top: 20px; }
.para .contain > img { max-height: 70vh; max-width: 20vw; margin: 20px; cursor: pointer; transition: 0.3s; border-radius: 7px; }
.para .contain > img:hover { opacity: 0.7; }
.para .contain .modal { 
    display: none; position: fixed; align-items: center; justify-content: center; z-index: 5; left: 0; top: 0; 
    width: 90vw; height: 90vh; padding: 8vh 5vw 2vh 5vw; overflow: auto; background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.9); }
.para .contain .modal-content { 
    max-width: 100%; max-height: 100%; 
    -webkit-animation-name: zoom; -webkit-animation-duration: 0.6s; animation-name: zoom; animation-duration: 0.6s; }
.para .contain .close { position: absolute; top: 2px; right: 50px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; }
.para .contain .close:hover,
.para .contain .close:focus { color: #bbb; text-decoration: none; cursor: pointer; }
.para .contain .btn-dwl { position: absolute; top: 20px; right: 90px; height: 25px; cursor: pointer; }

.para .marq { position: absolute; left: 0; right: 0; color: #CC4040; font-size: 2rem; margin-top: 1rem; font-family: 'Courgette', cursive; }
.para .marq .fader { position: absolute; width: 5rem; height: 100%; z-index: 5; }
.para .marq .fader.left{ left: 0; background: linear-gradient(90deg , #ffffffCC, #00000000); }
.para .marq .fader.right{ right: 0; background: linear-gradient(90deg , #00000000, #ffffffCC); }


@media only screen and (max-width: 700px){
    .para .contain { flex-flow: column; align-items: center; }
    .para .contain > img { max-width: 80vw; border: 3px solid #335064; }
    .para .marq { font-size: 1.5rem; }
}
@-webkit-keyframes zoom { from {-webkit-transform:scale(0)} to {-webkit-transform:scale(1)} }
@keyframes         zoom { from {transform:scale(0)}         to {transform:scale(1)}         }



footer, footer a { color: #D1E9EC; }
footer { display: flex; padding: 5vh 5vw; justify-content: space-around; background-image: url('res/bg/footer-bg.png'); font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; }
footer .other { display: flex; flex-direction: column; }
footer .other > * { margin: 2vh; }
footer .other a { display: flex; align-items: center; align-self: start; }
footer .other a img { height: 30px; margin-right: 7px; }
footer .other .contact { display: flex; flex-flow: column;  align-items: center; }
footer .other .contact b { padding-bottom: 2vh; }
footer .other .locate { display: flex; flex-flow: column; align-items: center; }
footer .other .locate h4 { padding-bottom: 2vh; }

footer .locate { display: flex; flex-direction: column; justify-content: center; align-items: center; }
footer .locate h4 { margin: 2vh; }

footer .timing { display: flex; justify-content: center; flex-direction: column}
footer .timing th { padding-bottom: 2vh; width: 100%; }
footer .timing table {  padding: 1vh 3vw; height: 1rem; }
footer .timing table tr.day td { padding: 3px 0; }
footer .timing table tr.day td:first-child { text-align: end; }
footer .timing table tr.day td:nth-child(2) { padding-left: 20px; min-width: 80px; }


@media screen and (max-width: 850px) {
    footer { flex-direction: column; }
    footer > div { margin-bottom: 5vmin; }
}
@media screen and (max-width: 720px) {
    nav.top ul { overflow-x: scroll; padding: 1rem 0; justify-content: flex-start; }
    /* #gal > a:nth-child(1) {} */
}
@media screen and (max-width: 500px) {
    .para .sub_nav .small { display: block; }
    .para .sub_nav .wide  { display: none; }
}