@import url("var.css");

html body {
    color: var(--background-color-secodary);
    background-color: var(--background-color-primary);
}
h1, h2, h3, h4, h5, h6, p, a {
    font-family: Verdana, Geneva, Tahoma, sans-serif !important;
}

.color-primary {
    color: var(--primary-color) !important;
}

.bg-color-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.bg-color-primary:hover {
    background-color: var(--primary-color-hover) !important;
    border-color: var(--primary-color-hover) !important;
}

.td-text-white {
    color: var(--background-color-secodary) !important;
}

.td-text-black {
    color: var(--background-color-primary) !important;
}


/* HEADER SECTION */

#td-logo {
    width: 5.5rem;
}

.td-company-name {
    font-size: 2.6rem;
}


/* MAIN SECTION */

.td-main {
    min-height: 80vh;
}

.td-icon {
    width: 28vw;
    border-radius: 15%;
}

.td-link {
    color: var(--background-color-secodary) !important;
    text-decoration: none !important;
}

.td-text-important {
    font-size: 2.6rem !important;
}

.td-text-info {
    font-size: 1rem !important;
}

.td-2rem {
    font-size: 1rem !important;
}


/* INFO SECTION */

.td-info {
    background-color: var(--background-color-secodary);
}

.td-card-focus h4 {
    font-size: 1.8rem;
}

.td-card-focus p {
    font-size: 1.0rem;
}

.td-card-focus-icon {
    zoom: 3.0;
}

.td-card-unfocus h4 {
    font-size: 1.4rem;
}

.td-card-unfocus p {
    font-size: 0.8rem;
}

.td-card-unfocus-icon {
    zoom: 2.2;
}


/* DOWNLOAD NOW SECTION */
.td-download-now {
    min-height: 40vh;
}

.td-download-now-text-container {
    justify-content: flex-end;
}

.td-download-button-container {
    justify-content: flex-start;
}


/* FOOTER */

.td-footer {
    min-height: 6vh;
    font-size: 0.6rem;
}

.td-footer-align-right {
    text-align: right;
}

.td-footer-align-left {
    text-align: left;
}


/* MEDIA QUERIES */

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .td-main {
        text-align: center;
        padding-bottom: 14vh;
    }

    #nav-container {       
        margin-bottom: 2rem;
    }

    .td-download-now-text {
        font-size: 1.6rem;
    }

    /* Let unfocused card look the same as focused ones */
    .td-card-unfocus h4 {
        font-size: 1.8rem;
    }
    
    .td-card-unfocus p {
        font-size: 1.0rem;
    }
    
    .td-card-unfocus-icon {
        zoom: 3.0;
    }

    .td-download-now-text-container {
        justify-content: center;
    }
    
    .td-download-button-container {
        justify-content: center;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    #td-logo {
        width: 4.4rem;
    }

    .td-company-name {
        font-size: 2.4rem;
    }

    #nav-container {       
        margin-bottom: 0rem;
    }

    .td-footer-align-right {
        text-align: center;
    }

    .td-footer-align-left {
        text-align: center;
    }
}

@media (max-width: 422px) {
    #td-logo {
        display: none;
    }

    #header {
        display: flex;
        justify-content: center;
    }

    #nav-container {
        margin: 0 !important;
    }
}

@media (max-width: 356px) {
    #play-now {
        display: none;
    }

    .td-company-name {
        font-size: 2.4rem;
    }

    #tiny-dungeon {
        font-size: 2.36rem !important;
    }
}

@media (max-width: 322px) {
    .td-company-name {
        font-size: 2rem;
    }

    #nav-container {
        margin-bottom: 1rem;
    }

    .td-icon {
        margin-top: 2rem;
    }

    .td-download-now-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 282px) {
    .td-company-name {
        font-size: 1.66rem;
    }

    .td-download-now-text {
        font-size: 1.2rem;
    }
}

/* WAVES */

.td-wave-container {
    position: relative;
    height: 11vh;
    background-color: var(--background-color-primary);
}

.td-wave-top {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url(../images/wave.png);
    background-size: 1000px 100px;
}

.td-wave-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url(../images/wave.png);
    background-size: 1000px 100px;
}

.td-wave-mirrow {
    transform: scaleY(-1);
}

.td-wave1 {
    animation: animatePos1000 30s linear infinite;
    z-index: 100;
    opacity: 1;
    animation-delay: 0s;
    bottom: 0;
}

.td-wave2 {
    animation: animateNeg1000 15s linear infinite;
    z-index: 99;
    opacity: 0.5;
    animation-delay: -5s;
    bottom: 10px;
}

.td-wave3 {
    animation: animatePos1000 15s linear infinite;
    z-index: 98;
    opacity: 0.2;
    animation-delay: -2s;
    bottom: 15px;
}

.td-wave4 {
    animation: animateNeg1000 5s linear infinite;
    z-index: 97;
    opacity: 0.7;
    animation-delay: -5s;
    bottom: 20px;
}

@keyframes animatePos1000 {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

@keyframes animateNeg1000 {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -1000px;
    }
}

@keyframes animateWave3 {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -1000px;
    }
}

@keyframes animateWave4 {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -1000px;
    }
}


/* LEGAL */

.td-legal h6 {
    font-size: 2rem;
}


/* TERM OF SERVICE (copied style from iubenda pp) */
.tos-container {
    border-bottom: 1px dotted #DFDFDF;
    padding-bottom: 25px;
}

.tos-container-end {
    padding-bottom: 25px;
    border-bottom: none !important;
}

.tos-container h1 {
    font-size: 19px;
    font-weight: normal;
    line-height: 23px;
    margin: 0;
    margin-top: 5px;
}

.tos-container h2 {
    font-size: 17px;
    font-weight: bold;
    line-height: 21px;
    margin: 0;
    padding-top: 21px;
}

.tos-container h3 {
    font-size: 13px;
    font-weight: bold;
    line-height: 19px;
    margin: 0;
    padding-top: 21px;
}

.tos-container p {
    font-size: 13px;
    font-weight: normal;
    line-height: 19px;
    margin: 0;
    padding: 0;
    padding-top: 11px;
}

.tos-container li {
    font-size: 13px;
    font-weight: normal;
    line-height: 19px;
    margin: 0;
    padding: 0;
    padding-top: 11px;
}

/* IUBENDA PRIVACY POLICY OVERRIDES */

#iubenda_policy .iub_base_container p,
#iubenda_policy .iub_base_container li {
    color: var(--background-color-secodary) !important;
}

#iubenda_policy h1,
#iubenda_policy h2,
#iubenda_policy h3,
#iubenda_policy h4,
#iubenda_policy h5,
#iubenda_policy h6,
#iubenda_policy p,
#iubenda_policy li {
    color: var(--background-color-secodary) !important;
}

#iubenda_policy a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

#iubenda_policy a:hover {
    text-decoration: underline !important;
    cursor: pointer !important;
}

.box_primary {
    background-color: var(--background-color-primary) !important;
}


/* Fixes bug where waves get to close to the text on small device heights */
@media (max-height: 700px) {
    .td-main {
        min-height: 80vh;
    }

    .td-download-now {
        min-height: 56vh;
    }
}
@media (max-height: 610px) {
    .td-main {
        min-height: 84vh;
    }

    .td-download-now {
        min-height: 56vh;
    }
}
@media (max-height: 584px) {
    .td-main {
        min-height: 94vh;
    }

    .td-download-now {
        min-height: 66vh;
    }
}
@media (max-height: 518px) {
    .td-main {
        min-height: 110vh;
    }

    .td-download-now {
        min-height: 75vh;
    }
}
@media (max-height: 440px) {
    .td-main {
        min-height: 120vh;
        margin-bottom: 4rem;
    }

    .td-download-now {
        min-height: 75vh;
    }
}
@media (max-height: 380px) {
    .td-main {
        min-height: 130vh;
    }

    .td-download-now {
        min-height: 80vh;
    }
}
@media (max-height: 340px) {
    .td-main {
        min-height: 154vh;
    }

    .td-download-now {
        min-height: 102vh;
    }
}
@media (max-height: 310px) {
    .td-main {
        min-height: 160vh;
    }

    .td-download-now {
        min-height: 112vh;
    }
}
@media (max-height: 280px) {
    .td-main {
        min-height: 170vh;
    }

    .td-download-now {
        min-height: 123vh;
    }
}

@media (max-height: 264px) {
    .td-main {
        min-height: 190vh;
    }

    .td-download-now {
        min-height: 130vh;
    }
}
@media (max-height: 240px) {
    .td-main {
        min-height: 214vh;
    }

    .td-download-now {
        min-height: 144vh;
    }
}