/*
Primary
Grayish blue: hsl(237, 18%, 59%)
Soft red: hsl(345, 95%, 68%)

Neutral
White: hsl(0, 0%, 100%)
Dark desaturated blue: hsl(236, 21%, 26%)
Very dark blue: hsl(235, 16%, 14%)
Very dark (mostly black) blue: hsl(234, 17%, 12%)
*/
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@700&display=swap');
*{
    margin: 0;
    padding: 0;
}
a:link, a:visited, a:active {
    text-decoration:none;
} .enter{
    display: none;
}
body{
    position: relative;
    font-family: 'Red Hat Text', sans-serif;
    font-size: 14px;
    width: 100%;
    height: 100vh;  
    background-image: 
        url(../images/bg-stars.svg),
        url(../images/pattern-hills.svg);
    background-position: 50% 100%;
       background-repeat: no-repeat;
    background-color:hsl(234, 17%, 12%);
    text-align: center;
}
.main-title{
    color: hsl(0, 0%, 100%);
    text-transform: uppercase;
    padding: 100px 0 70px 0;
    font-size: 20px;
    letter-spacing: 5px;
}
.countdown{
    display: flex;
    justify-content: center;
    align-items: center;
}
/*--------MODAL------*/
.set-countdown{
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
    background-color: hsl(236, 21%, 26%);
    padding: 30px;
    border-radius: 10px;
    color: hsl(0, 0%, 100%);
    text-transform: uppercase;
    width: max-content;
}
.form-set-countdown{
    display: flex;
    flex-direction: column;
}
.form-set-countdown label, input{
    margin: 20px;
}
.form-set-countdown input{
    padding: 10px;
    border-radius: 5px;
    width: max-content;
    margin: auto;
    outline: none;
    font-family:'Red Hat Text', sans-serif;
    color: hsl(345, 95%, 68%);
    border:0;
}
.button-set-countdown{
    border-radius: 5px;
    outline: none;
    padding: 15px;
    text-transform: uppercase;
    width: min-content;
    margin: auto;
    margin-top:20px;
    font-family: 'Red Hat Text', sans-serif;
    background-color: #191a24;
    border:0;
    color:hsl(0, 0%, 100%);
}
/*-------RESET COUNTDOWN BUTTON*/
.reset-countdown{
    padding:10px;
    border-radius: 10px;
    text-transform: uppercase;
    border: none;
    background-color: hsl(236, 21%, 26%);
    color:hsl(0, 0%, 100%);
    font-family: 'Red Hat Text', sans-serif;
    cursor: pointer;
    float: right;
    margin: 50px 50px 0 0px;
}

/*------COUNTDOWN--------*/
.countdown-section{
    display: none;
}
.card-container{
    display: inline-flex;
    flex-direction: column;
    margin: 20px    ;
}
.card{
    display: inline-flex;
    flex-direction: column    ;
    position: relative;
}
.bg-card{
    position: relative;
    height: 100px;
    width: 100px;
    background-color: hsl(236, 21%, 26%);
    border-radius: 5px;
    perspective: 200px;
    -webkit-box-shadow: 0px 6px 5px -1px rgba(25,26,36,1);
    -moz-box-shadow: 0px 6px 5px -1px rgba(25,26,36,1);
    box-shadow: 0px 6px 5px -1px rgba(25,26,36,1);
}
.bg-top{
    position: absolute;
    top:0;
    height: 100px;
    width: 100px;
    background-color: hsl(236, 21%, 26%);
    border-radius: 5px ;
    border-top: solid 1px hsl(234, 17%, 12%);
}
.bg-bottom{
    position: absolute;
    bottom: 0;
    height: 100px;
    width: 100px;
    background-color: hsl(236, 21%, 26%);
    border-radius: 5px;   
}
.line{
    position: absolute;
    height: 1px;
    width: 100%;
    border-top: solid 1px rgba(25,26,36,1);
    bottom: 50%;
    z-index: 1000;
}
.left-circle {
    position: absolute;
    width: 5px;
    height: 10px;
    border-bottom-right-radius: 20px;
    border-top-right-radius:20px;
    background: hsl(234, 17%, 12%);
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
}
.right-circle {
    position: absolute;
    width: 5px; 
    height: 10px;
    border-bottom-left-radius: 20px;
    border-top-left-radius:20px;
    background: hsl(234, 17%, 12%);
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.time{
    position: absolute;
    font-size: 50px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.text-time{
    align-self: center;
}
.time-container{
    display: inline-block;
}
.time{
    margin: 20px;
    color:hsl(345, 95%, 68%);
    font-size: 50px;
    
}
.time-text{
    color: hsl(237, 18%, 59%);
    text-transform: uppercase;
    margin-top:5px;
    font-size:14px;
}
/*-----------COUNTDOWN FLIP ANIMATION SECONDS----------*/
.bg-top-seconds{
    animation: rotationTopSeconds; /* referring directly to the animation's @keyframe declaration */
    animation-duration: 1s; 
    animation-iteration-count: infinite
}
.bg-bottom-seconds {
    animation: rotationBottomSeconds; /* referring directly to the animation's @keyframe declaration */
    animation-duration: 1s; 
    animation-iteration-count: infinite;
    animation-delay: .5s;
}
@keyframes rotationTopSeconds{
    0%{ transform: rotate3d(-1,0,0,0deg)
    }
    50%  {
        transform: rotate3d(-1,0,0,0deg);
    }
    100% {
        transform: rotate3d(-1,0,0,90deg);
    }
    }
@keyframes rotationBottomSeconds{
    0%{ transform: rotate3d(-1,0,0,-90deg)
    }
    50%  {
        transform: rotate3d(-1,0,0,-90deg);
        opacity: 0;
    }
    100% {
        transform: rotate3d(-1,0,0,0deg);
    }
}
/*-------------COUNTDOWN FLIP ANIMATION MINUTES-DAYS-HOURS--------------*/
.bg-top-animation{
    animation: rotationTop; 
    animation-duration: 1s;
}
.bg-bottom-animation {
    animation: rotationBottom; 
    animation-duration: 1s; 
    animation-delay: .5s;
}
@keyframes rotationTop{
    0%{ transform: rotate3d(-1,0,0,0deg)
    }
    50%  {
        transform: rotate3d(-1,0,0,0deg);
    }
    100% {
        transform: rotate3d(-1,0,0,90deg);
    }
    }
@keyframes rotationBottom{
    0%{ transform: rotate3d(-1,0,0,-90deg)
    }
    50%  {
        transform: rotate3d(-1,0,0,-90deg);
        opacity: 0;
    }
    100% {
        transform: rotate3d(-1,0,0,0deg);
    }
}
/*--------FOOTER---------*/
footer {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
}
.social-media{
    margin: 20px;
}
.icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-size: cover;
    margin: 10px;
    filter: invert(56%) sepia(9%) saturate(1115%) hue-rotate(200deg) brightness(92%) contrast(86%);
  }
  .icon-linkedin {
    background-image: url(../images/icon-linkedin.svg);
  }
  .icon-github {
    background-image: url(../images/icon-github.svg);
  }
  .icon-instagram {
    background-image: url(../images/icon-instagram.svg);
  }
  .icon:hover, .icon:focus  {
    filter:invert(55%) sepia(15%) saturate(6441%) hue-rotate(311deg) brightness(101%) contrast(96%);
  }

.attribution {
    font-size: 15px;
    text-align: center;
    margin: 20px;
    color:hsl(237, 18%, 59%)

}
.attribution a { color:hsl(345, 95%, 68%); }

@media (max-width: 600px){
    .enter {display: inherit;}
    .bg-card{
        z-index: 100000;
        height: 60px;
        width: 60px;
        border-radius: 5px;
        perspective: 200px;
        -webkit-box-shadow: 0px 6px 5px -1px rgba(25,26,36,1);
        -moz-box-shadow: 0px 6px 5px -1px rgba(25,26,36,1);
        box-shadow: 0px 6px 5px -1px rgba(25,26,36,1);
    }
    .bg-top{
        height: 60px;
        width: 60px;
        border-radius: 5px;
    }
    .bg-bottom{
        height: 60px;
        width: 60px;
        border-radius: 5px;
    }
    .line{
        bottom: 48%;
    }
    .card-container{
            margin: 10px;
    }
    .left-circle {
        z-index: 10000000024;
        position: absolute;
        width: 2px;
        height: 4px;
        border-bottom-right-radius: 20px;
        border-top-right-radius:20px;
        }
    .right-circle {
        z-index: 10000000024;
        position: absolute;
        width: 2px; 
        height: 4px;
        border-bottom-left-radius: 20px;
        border-top-left-radius:20px;
    }
    .time{
        z-index:10000000000;
        margin: 10px;;
        font-size: 30px;
    }
    .time-text{
        font-size: 12px;
    }
}