/********************** INTRO **********************/

.intro {
    position: absolute;
    width: 100vw;
    height: 100%;
    background-color: #001c31;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 200;
}

.logoIntro {
    width: 250px;
}

.logoIntro video {
    width: 100%;
}

.logoIntro img {
    opacity: 0;
    width: 100%;
    -webkit-animation: appear 1s 2s forwards;
    animation: appear 1s 2s forwards;
}

@-webkit-keyframes appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.textIntro {
    position: absolute;
    color: white;
    bottom: 5%;
    font-family: 'kanit_r', sans-serif;
    font-size: 1rem;
    opacity: 0;
    -webkit-animation: turnON 1.5s 2.5s infinite;
    animation: turnON 1.5s 2.5s infinite;
}

@-webkit-keyframes turnON {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes turnON {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/********************** CONTENT BLOCK **********************/

.content {
    height: -webkit-max-content;
    height: -moz-max-content;
    height: max-content;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: none;
    height: 80%;
    height: 80vh;
    height: calc(var(--vh, 1vh) * 80);
}

.videoHome {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.videoHome video {
    width: auto;
    height: 80%;
    height: 80vh;
    height: calc(var(--vh, 1vh) * 80);
}

.video {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 300;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    -webkit-transition: 0.6s;
    transition: 0.6s;
}

.content.fullscreen .video {
    visibility: visible;
    opacity: 1;
    background-color: black;
}

.video video {
    display: none;
}

.content.fullscreen .video video {
    display: block;
    width: 100%;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    max-height: 100vh;
}

.content .video img {
    width: 30px;
    position: absolute;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 4vh;
    right: 4vh;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    -webkit-filter: invert();
    filter: invert();
    cursor: pointer;
}

.content .video img:hover {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.videoTextContainer {
    position: absolute;
    width: 25%;
    height: 25%;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    border: 2px solid transparent;
}

.videoTextContainer::before,
.videoTextContainer::after,
.videoText::before,
.videoText::after {
    display: block;
    content: "";
    width: 3.8vw;
    height: 3.8vw;
    position: absolute;
}

.videoTextContainer::before {
    top: -1px;
    left: -1px;
    border-top: 1px solid #31a8ff;
    border-left: 1px solid #31a8ff;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
}

.videoTextContainer::after {
    top: -1px;
    right: -1px;
    border-top: 1px solid white;
    border-right: 1px solid white;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
}

.videoText::before {
    bottom: -1px;
    left: -1px;
    border-bottom: 1px solid #ffffff;
    border-left: 1px solid white;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
}

.videoText::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 1px solid #31a8ff;
    border-right: 1px solid #31a8ff;
    -webkit-transition: 0.5s all;
    transition: 0.5s all;
}

.videoTextContainer:hover::before,
.videoTextContainer:hover::after {
    width: 70%;
    height: 70%;
}

.videoTextContainer:hover .videoText::before,
.videoTextContainer:hover .videoText::after {
    width: 70%;
    height: 70%;
}

.videoText {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.videoTitle {
    margin-bottom: 5px;
    font-family: 'kanit_r', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
}

.videoSubtitle {
    font-family: 'kanit_li', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
}

@media (max-width: 1024px) {

    .videoTextContainer {
        width: 50%;
        height: 25%;
    }

    .videoTitle {
        font-size: 1.8rem;
    }

    .videoSubtitle {
        font-size: 1.3rem;
    }

    .videoTextContainer:hover::before,
    .videoTextContainer:hover::after {
        width: 3.8vw;
        height: 3.8vw;
    }

    .videoTextContainer:hover .videoText::before,
    .videoTextContainer:hover .videoText::after {
        width: 3.8vw;
        height: 3.8vw;
    }

    .content .video img {
        visibility: visible !important;
        display: block !important;
        pointer-events: none;
    }

    .fullscreen .video img {
        pointer-events: all;
    }
}


@media (max-width: 768px) {

    .content,
    .videoHome video {
        height: 85%;
        height: 85vh;
        height: calc(var(--vh, 1vh) * 85);
    }

    .logoIntro {
        width: 200px;
    }

    .videoTextContainer {
        width: 60%;
        height: 25%;
    }
}

@media (max-width: 650px) {

    .content {
        height: 100%;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }

    .videoTitle {
        font-size: 1.5rem;
    }

    .videoSubtitle {
        font-size: 1.1rem;
    }

    .videoHome video {
        height: 100%;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }

    .logoIntro {
        width: 150px;
    }

    .videoTextContainer {
        width: 70%;
        height: 25%;
    }
}
