header{
    
    text-align: center;
}
nav button{
    font-size: 27px;
    color: #63a564;
   font-family: monospace;
  margin-top: 20px;
  margin-right: 5px;
  margin-left: 5px;
   align-items: center;
   border-width: 2px;
  align-self: center;   
}
body {
    background-color: rgb(186, 218, 208);
    text-align: center;

}
h2{
    font-family: monospace;
    font-style: italic;
    font-weight: lighter;
    font-size: 25px;
    margin-top: 40px;
    margin-bottom: 30px;
}
section{
    display: block;
   
    margin-bottom: 20px;
}
article{
    border-style: groove;
    border-color: #000000;
    border-width: 2px;
    margin: 30px;
}
#container {
    color: rgb(0, 0, 0);
margin: 40px;
    font-size: 70px;
    font-weight: bold;

    display: block;
}

#flip {
    height: 65px;
    overflow: hidden;
    display: inline-block;
}

#flip>div>div {
    color: rgb(255, 255, 255);
    /* padding: 4px 12px; */
    height: 45px;
    margin-bottom: 45px;
    display: inline-block;
    text-overflow: clip;
}

#flip div:first-child {
    animation: show 3s linear infinite;
}



@keyframes show {
    0% {
        margin-top: -270px;
    }

    5% {
        margin-top: -180px;
    }

    33% {
        margin-top: -180px;
    }

    38% {
        margin-top: -90px;
    }

    66% {
        margin-top: -90px;
    }

    71% {
        margin-top: 0px;
    }

    99.99% {
        margin-top: 0px;
    }

    100% {
        margin-top: -270px;
    }
}
p {
    font-family: monospace;
    font-size: 20px;
    text-align: center;
    color: rgb(128, 127, 127);
}

.clock {
    background: #ececec;
    width: 300px;
    height: 300px;
    margin: 6% auto 6%;
    border-radius: 50%;
    border: 14px solid #333;
    position: relative;
    box-shadow: 0 2vw 4vw -1vw rgba(0, 0, 0, 0.8);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    z-index: 10;
    box-shadow: 0 2px 4px -1px black;
}

.hour-hand {
    position: absolute;
    z-index: 5;
    width: 4px;
    height: 65px;
    background: #232623;
    top: 79px;
    transform-origin: 50% 72px;
    left: 50%;
    margin-left: -2px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
}

.minute-hand {
    position: absolute;
    z-index: 6;
    width: 4px;
    height: 100px;
    background: #63a564;
    top: 46px;
    left: 50%;
    margin-left: -2px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    transform-origin: 50% 105px;
}

.second-hand {
    position: absolute;
    z-index: 7;
    width: 2px;
    height: 120px;
    background: #d82424;
    top: 26px;
    lefT: 50%;
    margin-left: -1px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    transform-origin: 50% 125px;
}

span {
    display: inline-block;
    position: absolute;
    color: #333;
    font-size: 22px;
    font-family: 'Poiret One';
    font-weight: 700;
    z-index: 4;
}

.h12 {
    top: 30px;
    left: 50%;
    margin-left: -9px;
}

.h3 {
    top: 140px;
    right: 30px;
}

.h6 {
    bottom: 30px;
    left: 50%;
    margin-left: -5px;
}

.h9 {
    left: 32px;
    top: 140px;
}

.diallines {
    position: absolute;
    z-index: 2;
    width: 2px;
    height: 15px;
    background: #666;
    left: 50%;
    margin-left: -1px;
    transform-origin: 50% 150px;
}

.diallines:nth-of-type(5n) {
    position: absolute;
    z-index: 2;
    width: 4px;
    height: 25px;
    background: #666;
    left: 50%;
    margin-left: -1px;
    transform-origin: 50% 150px;
}

#watch_start,
#down_start {
    appearance: none;
    background-color: #bcf2ae;
    border-width: 0;
    box-sizing: border-box;
    color: #000000;
    cursor: pointer;
    display: inline-block;
    font-family: monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 1em;
    margin: 10px;
    opacity: 1;
    outline: 0;
    padding: 13px 20px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-rendering: geometricprecision;
    text-transform: uppercase;
    transition: opacity 300ms cubic-bezier(.694, 0, 0.335, 1), background-color 100ms cubic-bezier(.694, 0, 0.335, 1), color 100ms cubic-bezier(.694, 0, 0.335, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
}

#watch_start:before,
#down_start:before {
    animation: opacityFallbackOut .5s step-end forwards;
    backface-visibility: hidden;
    background-color: #63a564;
    clip-path: polygon(-1% 0, 0 0, -25% 100%, -1% 100%);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: translateZ(0);
    transition: clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1), -webkit-clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1);
    width: 100%;
}

#watch_start:hover:before,
#down_start:hover:before {
    animation: opacityFallbackIn 0s step-start forwards;
    clip-path: polygon(0 0, 101% 0, 101% 101%, 0 101%);
}

#watch_start:after,
#down_start:after {
    background-color: #ffffff;
    color: #000000;
}

#watch_start span,
#down_start span {
    z-index: 1;
    position: relative;
}

#watch_stop,
#down_stop {
    appearance: none;
    background-color: #d82424;
    border-width: 0;
    box-sizing: border-box;
    color: #000000;
    cursor: pointer;
    display: inline-block;
    font-family: monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 1em;
    margin: 10px;
    opacity: 1;
    outline: 0;
    padding: 13px 20px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-rendering: geometricprecision;
    text-transform: uppercase;
    transition: opacity 300ms cubic-bezier(.694, 0, 0.335, 1), background-color 100ms cubic-bezier(.694, 0, 0.335, 1), color 100ms cubic-bezier(.694, 0, 0.335, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
}

#watch_stop:before,
#down_stop:before {
    animation: opacityFallbackOut .5s step-end forwards;
    backface-visibility: hidden;
    background-color: #f69898;
    clip-path: polygon(-1% 0, 0 0, -25% 100%, -1% 100%);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: translateZ(0);
    transition: clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1), -webkit-clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1);
    width: 100%;
}

#watch_stop:hover:before,
#down_stop:hover:before {
    animation: opacityFallbackIn 0s step-start forwards;
    clip-path: polygon(0 0, 101% 0, 101% 101%, 0 101%);
}

#watch_stop:after,
#down_stop:after {
    background-color: #ffffff;
}

#watch_stop span,
#down_stop span {
    z-index: 1;
    position: relative;
}

#watch_reset {
    appearance: none;
    background-color: #a6b3ff;
    border-width: 0;
    box-sizing: border-box;
    color: #000000;
    cursor: pointer;
    display: inline-block;
    font-family: monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 1em;
    margin: 10px;
    opacity: 1;
    outline: 0;
    padding: 13px 20px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-rendering: geometricprecision;
    text-transform: uppercase;
    transition: opacity 300ms cubic-bezier(.694, 0, 0.335, 1), background-color 100ms cubic-bezier(.694, 0, 0.335, 1), color 100ms cubic-bezier(.694, 0, 0.335, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    white-space: nowrap;
}

#watch_reset:before {
    animation: opacityFallbackOut .5s step-end forwards;
    backface-visibility: hidden;
    background-color: #0971da;
    clip-path: polygon(-1% 0, 0 0, -25% 100%, -1% 100%);
    content: "";
    color: #000000;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: translateZ(0);
    transition: clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1), -webkit-clip-path .5s cubic-bezier(.165, 0.84, 0.44, 1);
    width: 100%;
}

#watch_reset:hover:before {
    animation: opacityFallbackIn 0s step-start forwards;
    clip-path: polygon(0 0, 101% 0, 101% 101%, 0 101%);
}

#watch_reset:after {
    background-color: #ffffff;
}

#watch_reset span {
    z-index: 1;
    position: relative;
}

#down_m,
#down_s {
    outline: none;
    border: solid 0.18em #63a564;
    color: #63a564;
    border-radius: 1em;
    padding: 0.5em 0 0.4em 0.75em;
    font-size: 1.5em;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    width: 6.75em;
    background-color: white;
    transition: 0.35s;
    margin-bottom: 10px;
}

#down_m:focus,
#down_s:focus {
    border: none;
    background-color: #63a564;
    border: solid 0.18em #63a564;
    border-radius: 0em;
    color: rgb(227, 27, 27);
    background-color: #ffffff;
    border-bottom: solid rgb(227, 27, 27) 0.18em;
}
#watch_m,
#watch_s {
    outline: none;
    border: solid 0.18em #63a564;
    color: #63a564;
    border-radius: 1em;
    padding: 0.5em 0 0.4em 0.75em;
    font-size: 1.5em;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    width: 6.75em;
    background-color: white;
    transition: 0.35s;
    margin-bottom: 10px;
}

#watch_m:focus,
#watch_s:focus {
    border: none;
    background-color: #63a564;
    border: solid 0.18em #63a564;
    border-radius: 0em;
    color: rgb(227, 27, 27);
    background-color: #ffffff;
    border-bottom: solid rgb(227, 27, 27) 0.18em;
}
