/*
Adapted from: https://codingartistweb.com/2021/09/responsive-countdown-to-a-certain-date-javascript/
*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
    color: #555;
}

html {
    min-height: 100%;
}

body {
    background-color: white;
}

#coming-soon {
    width: 80vw;
    max-width: 650px;
    margin: auto;
    height: 100vh;
    background: white url('/assets/img/atb-logo-coming-soon.png') no-repeat center center;
    background-size: 100%;
}

.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -150px;
    font-size: 1.5rem;
    font-weight: normal;
}

.text-center {
    white-space: nowrap;
    text-align: center;
    color: #999;
}

.countdown {
    width: 80vw;
    display: flex;
    justify-content: space-around;
    gap: 10px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 15%;
    left: 50%;
}

.sm-countdown {
    width: 60vw;
    display: none;
    justify-content: space-around;
    gap: 0;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 15%;
    left: 50%;
    background-color: #0183a7;
    color: #fff;
}

.box {
    width: 17vmin;
    height: 13vmin;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.5);
    font-size: 12px;
}

.box:after {
    content: "";
    position: absolute;
    background-color: rgba(255, 255, 255, 0.12);
    height: 100%;
    width: 50%;
    left: 0;
}

span.num {
    background-color: #ffffff;
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 5em;
}

span.text {
    color: #fff;
    font-size: 1.2em;
    background-color: #0183a7;
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5em 0;
    font-weight: 400;
}

span.sm-text {
    color: #fff;
    font-size: 1.2em;
    display: block;
    /*width: 100%;*/
    text-align: center;
    /*padding: 0.5em 0;*/
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .countdown {
        width: 80vw;
        flex-wrap: wrap;
        gap: 30px;
    }

    .box {
        width: calc(50% - 40px);
        font-size: 12px;
    }

    .centered {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .sm-countdown {
        display: flex;
    }

    .countdown {
        display: none;
    }

    .box {
        width: calc(50% - 40px);
        font-size: 10px;
    }

    .centered {
        font-size: 1rem;
    }
}
