:root {
    --blue: #4F5F73;
    --white: #F2F2F2;
    --grey: #A3A9B0;
    --beige: #CCC4C0;
    --maroon: #8C4B45;
    --blue2: #e2e5ee;
}

body {
    font-family: "proxima-nova", sans-serif;
    font-weight: 300;
    font-style: normal;
    background-color: var(--white);
    color: var(--blue);
    padding: 0px 200px;
    -webkit-user-select: none;
    user-select: none;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

header svg {
    width: 30px;
    height: 30px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-top: 20px;
    margin-bottom: 50px;
}

h1 {
   font-size: 40px;
}

h2 {
    padding: 10px 0;
    text-align: center;
}

.mb {
    margin-bottom: 50px;
}

.wrap {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 30px;
}

.clock {
    font-size: 50px;
}

/* button designs */

.wrap button:hover {
    cursor: pointer;
    background-color: var(--blue2);
    border-radius: 14px;
    
}

.wrap button {
    font-family: "proxima-nova", sans-serif;
    font-weight: 300;
    font-style: normal;

    border: 1px solid var(--blue);
    
    background-color: transparent;
    padding: 9px 12px;
    border-radius: 11px;
    transition: all 0.2s;
}

.selected {
    background-color: #4F5F73;
    color: white;
}
.selected:hover {
    background-color: #617886;
    color: white;
}

.count-down {
    font-family: "proxima-nova", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mt {
    margin-top: 30px;
}

.rotate-icon {
    width: 60px;
    height: 50px;
}

#watch_reset {
    border-radius: 50%;
    transform: scale(0.7);
}

/* Hide normal spin buttons for number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
/* hide it for firefox because the're not like the other girls */
input[type=number] {
    -moz-appearance:textfield;
}


.num-input {
    text-align: right;
    font-family: "proxima-nova", sans-serif;
    font-weight: 300;
    font-style: normal;
    
    font-size: 50px;
    color: var(--blue);
    
    border: 1px solid white;
    
    width: 60px;

    background-color: transparent;
    padding: 9px 12px;
    border-radius: 11px;

    margin-right: 5px;
    
    display: inline;
}

.invisible {
    color: transparent;
}

  
.num-input:hover {
    background-color: var(--blue2)

}
.mr {
    margin-right: 41px;
}
#watch_ms {
    width: 40px;
}
.minifont {
    font-size: 20px;
}
.minifont2 {
    font-size: 30px;
}

.stopwatch-form {
    font-size: 40px;
}

.num-input:focus-visible {
    outline: none;
}
.num-input:focus {
    outline: none;
}

#down_start, #watch_start {
    border-radius: 50%;
    margin-top: 50px;
}

svg {
    height: 1em;
    width: 1em;
    padding: 5px 0;
}
.a:hover {
    cursor: pointer;
}

.arrow-down {
    transform: rotate(180deg);
}

.num-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.semicolon {
    display: block;
    text-align: center;
    padding: 0.5em;
}

.centralize {
    display: flex;
    justify-content: center;
}

.play svg {
    width: 47px;
    height: 40px;
    margin-left: 7px;
}

button {
    border-radius: 15px;
    padding: 10px;
    border: 1px solid var(--blue);
    transition: all .2s;
    border-color: var(--grey);
}

button:hover {
    cursor: pointer;
    border-radius: 18px;
    border-color: var(--blue);
    background-color: var(--blue2);
}

.pause {
    margin-top: 50px;
}
.cls-1 {
    transition: all 0.2s;
}

.button {
    transition: all 0.2s;
}
.play:hover .button {
    fill: #4F5F73;
}

svg g /* rect, svg g path*/ {
    transition: all 0.6s;
}

.show {
    animation: show;
    animation-duration: 1s;
}
.hide {
    animation: hide;
    animation-duration: 1s;
    animation-iteration-count: 1;
}

.show2 {
    animation: show;
    animation-duration: 0.2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.hide2 {
    animation: hide;
    animation-duration: 0.2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.padding {
    animation: padding;
    animation-duration: 1s;
}
.unpadding {
    animation: unpadding;
    animation-duration: 1s;
}


svg .out {
    transform: translateY(120%);
    filter: opacity(0);
}

.border {
    animation: border;
    animation-duration: 1s;
}
.unborder {
    animation: unborder;
    animation-duration: 1s;
    animation-iteration-count: 1;
}

#clock svg {
    height: 18em;
    width: 18em;
}
#clock svg rect {
    transform-origin: 50% 50%;
}

#digital {
    padding-top: 20px;
    font-size: 40px;
    text-align: center;
}
.wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

#analogue {
    display: flex;
    justify-content: center;
}
@keyframes border {
    0% {
        border-color: transparent;
    }
    100% {
        border-color: white;
    }
}
@keyframes unborder {
    0% {
        border-color: white;
    }
    100% {  
        border-color: transparent;
    }
}

@keyframes padding {
    0% {
        padding: 0.2em;
    }
    100% {
        padding: 0.5em;
    }
}

@keyframes unpadding {
    0% {
        padding: 0.5em;
    }
    100% {
        padding: 0.2em;
    }
}

@keyframes hide {
    0% {
        filter: opacity(1);
    }
    100% {
        filter: opacity(0);
    }
}

@keyframes show {
    0% {
        filter: opacity(0);
    }
    100% {
        filter: opacity(1);
    }
}

/*  Responsive Grid Media Queries - 1280, 1024, 768, 480
*   1280-1024   - desktop (default grid)
*   1024-768    - tablet landscape
*   768-480     - tablet 
*   480-less    - phone landscape & smaller
* --------------------------------------------
*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }

@media all and (min-width: 768px) and (max-width: 1024px) {
    body{
        padding: 35px 100px;
    } 
 }

@media all and (min-width: 480px) and (max-width: 768px) {
    body{
        padding: 25px 50px;
    } 
}

@media all and (max-width: 480px) { 
    body{
        padding: 5px 10px;
    } 
}
