/********************** GENERAL **********************/

* {
    margin: 0;
    padding: 0;
}

html {
    --rojo: #31a8ff;
    color: #001c31;
}

html.dark {
    background-color: #001c31;
    color: white;
}

.bgColor {
    -webkit-transition: background-color 0.5s;
    transition: background-color 0.5s;
    background-color: white;
}

.dark.bgColor {
    -webkit-transition: background-color 0.5s;
    transition: background-color 0.5s;
    background-color: #001c31;
}

body::-webkit-scrollbar,
section::-webkit-scrollbar {
    display: none;
}

body,
section {
    overflow: -moz-scrollbars-none;
}

body,
section {
    -ms-overflow-style: none;
}

video:focus {
    outline: none;
}

a {
    text-decoration: none;
}

::-moz-selection {
    color: black;
    background: var(--rojo);
    -webkit-text-stroke-width: 0px;
}

::selection {
    color: black;
    background: var(--rojo);
    -webkit-text-stroke-width: 0px;
}

.dark ::-moz-selection {
    color: white;
    background: var(--rojo);
    -webkit-text-stroke-width: 0px;
}

.dark ::selection {
    color: white;
    background: var(--rojo);
    -webkit-text-stroke-width: 0px;
}

.containerHelper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

.siteContainer {
    width: 95%;
    max-width: 1600px;
    margin: auto auto;
    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-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.content {
    width: 100%;
    display: block;
    height: 80%;
    height: 80vh;
    height: calc(var(--vh, 1vh) * 80);
    overflow-y: scroll;
    display: none;
}

.it {
    font-style: italic;
}


/********************** COOKIES **********************/

#cajacookies {
    background-color: white;
    color: black;
    font-family: 'kanit_r', sans-serif;
    padding: 10px;
    margin-bottom: 0px;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 120;
    border-bottom: 1px solid black;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    opacity: 0;
    -webkit-animation: appear 0.3s 0.3s forwards;
    animation: appear 0.3s 0.3s forwards;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

.dark #cajacookies {
    background-color: black;
    color: white;
    border-bottom-color: white;
}

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

    to {
        opacity: 1;
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#cajacookies p {
    padding: 10px 40px;
    width: 80%;
}

#cajacookies span {
    white-space: nowrap;
}

#cajacookies a {
    color: var(--rojo);
}

#cajacookies a:hover {
    text-decoration: underline;
}

#cajacookies button {
    color: black;
    border-color: black;
    padding: 10px 20px;
    margin-right: 40px;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    font-family: 'kanit_m', sans-serif;
    font-size: 0.9rem;
    background-color: white;
    -webkit-transition: 0.2s;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    cursor: pointer;
}

.dark #cajacookies button {
    color: white;
    border-color: white;
    background-color: black;
}

#cajacookies button:hover {
    background-color: var(--rojo);
}


/********************** TOP **********************/

.topBar,
.bottomBar {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 20px 0;
    font-family: 'kanit_r', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    z-index: 100;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.logo {
    height: 30px;
    position: relative;
    cursor: pointer;
}

.logo #logoDHC {
    height: 100%;
}

.logo #DHCFilms {
    height: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    position: absolute;
    top: 50%;
    margin-left: 15px;
    opacity: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

#DHCFilms.active {
    opacity: 1;
}

#ISOselector {
    width: 20vw;
    max-width: 250px;
    text-align: end;
    display: inline-block;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

#ISOselector span {
    cursor: pointer;
}

#iso100,
#iso1600 {
    opacity: 0;
    -webkit-transition: 0.2s;
    transition: 0.2s;
    pointer-events: none;
}

#iso100.active,
#iso1600.active {
    opacity: 1;
    pointer-events: all;
}

#iso1600.active {
    margin: 40px;
}

#iso100.selected,
#iso1600.selected {
    color: var(--rojo);
}



/********************** BOTTOM **********************/

.navbar {
    width: 100%;
}

.menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.menu li {
    list-style: none;
    position: relative;
    cursor: pointer;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

.menu li a {
    color: black;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

.dark .menu li a {
    color: white;
}

.menu.foot li a {
    color: black !important;
}

.menu li img {
    width: 0.9rem;
    position: absolute;
    top: 50%;
    margin-left: -22px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    opacity: 0;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

.menu li:hover img {
    opacity: 1;
}

.menu li.active {
    color: var(--rojo);
}

.menu li.active a {
    color: var(--rojo);
}

.menu.foot li.active {
    color: black !important;
}

.WhiteDot,
.BlackDot {
    display: none;
}

#item5.active {
    color: white !important;
}

#item6,
.hide {
    display: none;
}

.hide {
    pointer-events: none;
}

#item2 {
    margin: 0 0.85vw;
}



/********************** FOOTER **********************/

.mobileFooter {
    display: none;
    width: 100%;
    height: 0vh;
    color: black;
    font-family: 'kanit_r', sans-serif;
    font-size: 1.1rem;
}

footer {
    width: 100%;
    height: 0vh;
    background: var(--rojo);
    position: fixed;
    bottom: 0;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    color: black;
    z-index: 50;
    font-family: 'kanit_r', sans-serif;
    font-size: 1.1rem;
}

footer a {
    color: black;
    font-size: 1.2rem;
    font-family: 'kanit_m', sans-serif;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

footer span {
    font-family: sans-serif;
    font-weight: bold;
}

.footer {
    width: 85%;
    max-width: 1600px;
    height: 100%;
    margin: auto;
    padding-top: 3vh;
    opacity: 0;
    -webkit-transform: translateY(-5%);
    transform: translateY(-5%);
    -webkit-transition: 0.3s;
    transition: 0.3s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

footer.active {
    height: 25vh;
}

footer.active .footer {
    opacity: 1;
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
    -webkit-transition: 0.4s 0.3s;
    transition: 0.4s 0.3s;
}

.moto,
.copyright {
    color: black;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
    font-family: 'kanit_r', sans-serif;
}

.social {
    text-align: center;
}

.social div {
    -webkit-transition: 0.3s;
    transition: 0.3s;
    margin-bottom: 6px;
}

.social div:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.social div:hover a {
    color: white;
}

.mobile {
    display: none;
}

.closeFooter,
.closeDescription {
    display: none;
}

#arrowFooter {
    display: none !important;
}



@media (max-width: 1024px) {

    .topBar,
    .bottomBar {
        font-size: 1.4rem;
    }

    #DHCFilms {
        display: none;
    }

    #ISOselector {
        width: 60vw;
    }

    #iso1600.active {
        margin: 5vw;
    }

    .menu li img {
        display: none !important;
    }

    #item2 {
        margin: 0 2vw;
    }

    footer {
        font-size: 1.2rem;
    }

    .mobile {
        display: block;
    }

    .social div {
        margin-bottom: 15px;
    }

    .social div a {
        font-size: 1.4rem;
    }

    #cajacookies {
        padding: 5px;
    }

    #cajacookies p {
        padding-left: 30px;
    }

    #cajacookies button {
        margin-right: 30px;
    }
}


@media (max-width: 768px) {

    .siteContainer {
        width: 90%;
    }

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

    .topBar,
    .bottomBar {
        font-size: 1.2rem;
        padding: 20px 0;
    }

    footer {
        font-size: 1.1rem;
    }

    .social div a {
        font-size: 1.2rem;
    }
}

@media (max-width: 650px) {

    .siteContainer {
        width: 100%;
    }

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

    .topBar,
    .bottomBar {
        width: 88%;
        font-size: 1.3rem;
        padding: 25px 6%;
        position: fixed;
    }

    .index .logo {
        -webkit-filter: invert();
        filter: invert();
    }

    .index .topBar {
        color: white;
    }

    .index.dark .logo {
        -webkit-filter: none;
        filter: none;
    }

    .topBar {
        top: 0;
    }

    .bottomBar {
        bottom: 0;
        -webkit-transition: 0.3s;
        transition: 0.3s;
        height: 4vh;
        -webkit-box-align: start;
        -ms-flex-align: start;
        -ms-flex-line-pack: justify;
        align-content: space-between;
        background-color: var(--rojo);
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .transparent {
        background-color: transparent;
    }

    .menu {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
    }

    .menu li {
        visibility: hidden;
    }

    .menu li.active a {
        color: black;
        text-decoration: underline;
        -webkit-text-decoration-color: white;
        text-decoration-color: white;
    }

    .menu li.active {
        color: black;
        text-decoration: underline;
        -webkit-text-decoration-color: white;
        text-decoration-color: white;
    }

    .menu #item6 {
        display: block;
        visibility: visible;
    }

    .bottomBar.active {
        height: 30vh;
        background-color: var(--rojo);
    }

    .bottomBar.active .menu li {
        visibility: visible;
    }

    .menu {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .bottomBar .menu li a {
        color: black;
    }

    .menu #item4, .menu #item3 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        text-align: center;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .menu #item6 {
        display: block;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 30px;
        color: white;
        -webkit-transition: 0.3s;
        transition: 0.3s;
    }

    .menu #item5 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-transition: 0.3s;
        transition: 0.3s;
    }

    .menu #item5 p {
        display: none;
    }

    .bottomBar.active #arrowFooter {
        display: block !important;
        width: 100px;
        position: fixed;
        top: 94.5%;
        opacity: 1;
        margin: 0;
    }
    
    

    footer {
        display: none;
    }

    .bottomBar.active.foot {
        height: 94%;
        height: 94vh;
        height: calc(var(--vh, 1vh) * 94);
        padding-top: 3vh;
        padding-bottom: 3vh;
    }

    .bottomBar.active.foot #item5 {
        opacity: 0;
        display: none;
        pointer-events: none;
    }

    .bottomBar.active.foot #item6 {
        text-align: start;
        font-size: 1.9rem;
        margin-bottom: 40px;
    }

    .bottomBar.active.foot .closeFooter {
        display: block !important;
        width: 30px;
        position: absolute;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        -webkit-filter: invert();
        filter: invert();
        top: 4vh;
        right: 4vh;
        -webkit-transition: 0.3s;
        transition: 0.3s;
        z-index: 180;
    }

    .mobileFooter {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        opacity: 0;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    .mobileFooter.active {
        height: -webkit-max-content;
        height: -moz-max-content;
        height: max-content;
        opacity: 1;
    }
    
    .social{
        margin: 20px 0;
    }

    .social div {
        margin-bottom: 40px;
    }

    .social div a {
        font-size: 1.4rem;
        color: black;
    }

    #ISOselector {
        width: 70vw;
    }

    .hide.active {
        display: block;
        z-index: 99;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        background-color: transparent;
        pointer-events: all;
    }

    #cajacookies p {
        font-size: 0.85rem;
        padding-left: 20px;
    }

    #cajacookies button {
        margin-right: 20px;
    }
}

@media (max-width: 400px) {

    .topBar,
    .bottomBar {
        font-size: 1.2rem;
    }

    .menu #item4 {
        margin-top: 25px;
        margin-bottom: 0;
    }

    .menu #item6 {
        margin-bottom: 25px;
    }

    .social div a {
        font-size: 1.2rem;
    }

    .bottomBar.active.foot #item6 {
        font-size: 1.7rem;
        margin-bottom: 45px;
    }

    .mobileFooter {
        font-size: 1rem;
    }

    #cajacookies p {
        padding-right: 10px;
    }

    #cajacookies button {
        padding-left: 15px;
        padding-right: 15px;
    }  
}
