* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
  }
  body {
    overflow: hidden;
  }
main {
    position: relative;
    background-image: url("images/bg_timer.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100% 80%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  } 

  main::before {
    position: absolute;
    content: "";
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
  }
  
  /* main {
    -moz-transform: scale(1.0);
    -webkit-transform: scale(1.0);
    -ms-transform: scale(1.0);
    transform: scale(1.0);
    -webkit-backface-visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

    main:before, main:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    main:before {
        -moz-transition: background-color 2.5s ease-in-out;
        -webkit-transition: background-color 2.5s ease-in-out;
        -ms-transition: background-color 2.5s ease-in-out;
        transition: background-color 2.5s ease-in-out;
        -moz-transition-delay: 0.75s;
        -webkit-transition-delay: 0.75s;
        -ms-transition-delay: 0.75s;
        transition-delay: 0.75s;
        background-image: linear-gradient(to top, rgba(19, 21, 25, 0.5), rgba(19, 21, 25, 0.5)), url("images/overlay.png");
        background-size: auto, 256px 256px;
        background-position: center, center;
        background-repeat: no-repeat, repeat;
        z-index: 2;
    }

    main:after {
        -moz-transform: scale(1.0);
        -webkit-transform: scale(1.0);
        -ms-transform: scale(1.0);
        transform: scale(1.0);
        -moz-transition: -moz-transform 0.325s ease-in-out, -moz-filter 0.325s ease-in-out;
        -webkit-transition: -webkit-transform 0.325s ease-in-out, -webkit-filter 0.325s ease-in-out;
        -ms-transition: -ms-transform 0.325s ease-in-out, -ms-filter 0.325s ease-in-out;
        transition: transform 0.325s ease-in-out, filter 0.325s ease-in-out;
        background-image: url("images/bg_timer.jpg");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        z-index: 1;
    }

 */







  .countdown {
    position: relative;
    background: linear-gradient(360deg, #000 10%, #1a1a1a);
    border: 1px solid rgb(238 238 238 / 20%);
    width: fit-content;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    gap: 1.5rem;
    

    z-index: 5;
  }
  .countdown .digits-wrap span {
    display: block;
    color: #fff;
    font-size: 1.125rem;
    margin: 10px 0 0;
  }
  .digits-box {
    position: relative;
    display: flex;
    gap: 0.2rem;
  }
  .digits-box::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0.2rem;
    background: #222;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 9;
  }
  .countdown .digits-box .digit {
    position: relative;
    background: linear-gradient(360deg, #1a1a1a 0%, #0d0d0d);
    min-width: 65px;
    min-height: 80px;
    /* min-width: 30px;
    min-height: 40px; */
    color: #fff;
    font-size: 3.75rem;
    /* font-size: 2.0rem; */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 1px solid rgb(238 238 238 / 20%);
    outline-offset: -4px;
    border-radius: 0.6rem;
  }

  @media screen and (max-width: 480px) {    
    main {
        background-image: url("images/bg_timer_narrow.jpg");
    }

    .digits-box::before {
        height: 0.1rem;
    }

    .countdown {
        padding: 1rem;
    }

    .countdown .digits-wrap span {
        font-size: 0.9rem;
    }

    .countdown .digits-box .digit {
        min-width: 30px;
        min-height: 40px;
        font-size: 2.0rem;
    }
  }


  .digit::before {
    position: absolute;
    content: "";
    background: linear-gradient(to right, #010000 0, #ccc 33%, #010000 100%);
    width: 4px;
    height: 10px;
    border: 1px solid #42423b;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-left: 0;
    z-index: 99;
  }
  .digit::after {
    position: absolute;
    content: "";
    background: linear-gradient(to right, #010000 0, #ccc 33%, #010000 100%);
    width: 4px;
    height: 10px;
    border: 1px solid #42423b;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-right: 0;
    z-index: 99;
  }