/*
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;
}
body{
    background-color: white;
}
#coming-soon {
    width: 60vw;
    max-width: 950px;
    margin: auto;
    height: 100vh;
    background: white url('https://images.marroquinlaw.com/mm-site-logo-md.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: 0px;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 15%;
    left: 50%;
    background-color: #af323d;
    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: #af323d;
    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;
    }
}
