@import url("https://fonts.googleapis.com/css?family=Raleway");

.topnav {
    overflow: hidden;
    background-color: #333;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
    width: 100%;
  }
  
  .topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 20px 16px;
    text-decoration: none;
    font-size: 17px;
  }
  
  .topnav a:hover {
    background-color: #ddd;
    color: black;
    text-decoration: none;
  }
  
  .topnav a.active {
    background-color: #4CAF50;
    color: white;
  }

  .dropdown-menu {
    background-color: #333;  
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #091921;
}

body.light {
    background: #d1dae3;
}

.clock-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.margin {
    margin: 39px;
    padding: 25px;
}

.clock {
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #091921 url(../images/clock.png);
    background-size: cover;
    border: 4px solid #091921;
    border-radius: 50%;
    box-shadow: -8px -8px 15px rgba(255,255,255,0.05),
                20px 20px 20px rgba(0,0,0,0.3),
                inset -8px -8px 15px rgba(255,255,255,0.05),
                inset 20px  20px 20px rgba(0,0,0,0.3);
}

body.light .clock {
    background: #d1dae3 url(../images/clock.png);
    background-size: cover;
    border: 4px solid #cad3dc;
    box-shadow: -8px -8px 15px rgba(255,255,255,0.5),
                10px 10px 10px rgba(0,0,0,0.1),
                inset -8px -8px 15px rgba(255,255,255,0.5),
                inset 10px 10px 10px rgba(0,0,0,0.1);
}

.clock:before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background:  #ffffff;
    border-radius: 50%;
    z-index: 999;
}

body.light .clock:before {
    background: #008eff;
}

.clock .hour, .clock .min, .clock .sec {
    position: absolute;
}

.clock .hour, .hr {
    width: 160px;
    height: 160px;
}

.clock .min, .mn {
    width: 190px;
    height: 190px;
}

.clock .sec, .sc {
    width: 230px;
    height: 230px;
}

.hr, .mn, .sc {
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    position: absolute;
    border-radius: 50%;
}

.hr:before {
    content: '';
    position: absolute;
    width: 8px;
    height: 80px;
    background: #ff105e;
    z-index: 10;
    border-radius: 6px 6px 0 0;
}

.mn:before {
    content: '';
    position: absolute;
    width: 4px;
    height: 90px;
    background: #ffffff;
    z-index: 11;
    border-radius: 6px 6px 0 0;
}

body.light .mn:before {
    background: #091921;
}

.sc:before {
    content: '';
    position: absolute;
    width: 2px;
    height: 150px;
    background: #008eff;
    z-index: 12;
    border-radius: 6px 6px 0 0;
}

h1 {
    padding: 15px;
    text-align: center;
    color: white;
    font-weight: bold;
}

.ml10 {
    position: relative;
    font-weight: 700;
    font-size: 2em;
}
  
.ml10 .text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.2em;
    padding-right: 0.05em;
    padding-bottom: 0.1em;
    overflow: hidden;
}

.ml10 .letter {
    display: inline-block;
    line-height: 1em;
    transform-origin: 0 0;
}

h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: bold;
}

body.light h2 {
    color: black;
}

h3 {
    padding: 15px;
    text-align: center;
    color: white;
    font-weight: bold;
}


footer {
    text-align: center;
    margin:0 auto;
    color: #ffffff;
    padding-top: 40px;
    padding-bottom: 40px;
    font-weight: normal;
    line-height: 1.5em;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #e0e0e0;
    text-decoration: none;
}

body.light footer {
    color: #000000;
    font-weight: bold;
}

body.light footer a {
    color: #000000;
}

body.light footer a:hover {
    color: #313131;
}

.toggleClass {
    position: absolute;
    top: 150px;
    right: 150px;
    width: 20px;
    height: 20px;
    font-size: 18px;
    border-radius: 50%;
    background: #d1dae3;
    color: #d1dae3;
    font-family: consolas;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.toggleClass:before {
    position: absolute;
    left: 25px;
    content: 'Light Mode';
    white-space: nowrap;
}

body.light .toggleClass {
    background: #091921;
    color: #091921;
}

body.light .toggleClass:before {
    content: 'Dark Mode';
    white-space: nowrap;
}

.center {
    align-items: center;
    align-content: center;
    margin-top: 40px;
    margin-bottom: auto;
}


@media only screen and (max-width: 730px) {

    .margin {
        margin: 25px;
        padding: 15px;
    }

    .margin-top {
        margin-top: 43px;
    }

    .clock {
        width: 250px;
        height: 250px;
    }

    .clock .hour, .hr {
        width: 114px;
        height: 114px;
    }

    .clock .min, .mn {
        width: 135px;
        height: 135px;
    }

    .clock .sec, .sc {
        width: 164px;
        height: 164px;
    }

    .hr:before {
        width: 6px;
        height: 60px;
        border-radius: 5px 5px 0 0;
    }

    .mn:before {
        width: 3px;
        height: 60px;;
        border-radius: 5px 5px 0 0;
    }

    .sc:before {
        width: 1.5px;
        height: 100px;
        border-radius: 5px 5px 0 0;
    }

    
    .toggleClass {
        position: absolute;
        top: 143px;
        right: 140px;
        width: 20px;
        height: 20px;
        font-size: 18px;
        border-radius: 50%;
        background: #d1dae3;
    }

}


@media only screen and (max-width: 585px) {

    .margin {
        margin: 25px;
        padding: 15px;
    }

    .margin-top {
        margin-top: 43px;
    }

    .clock {
        width: 250px;
        height: 250px;
    }

    .clock .hour, .hr {
        width: 114px;
        height: 114px;
    }

    .clock .min, .mn {
        width: 135px;
        height: 135px;
    }

    .clock .sec, .sc {
        width: 164px;
        height: 164px;
    }

    .hr:before {
        width: 6px;
        height: 60px;
        border-radius: 5px 5px 0 0;
    }

    .mn:before {
        width: 3px;
        height: 60px;;
        border-radius: 5px 5px 0 0;
    }

    .sc:before {
        width: 1.5px;
        height: 100px;
        border-radius: 5px 5px 0 0;
    }

    .toggleClass {
        position: absolute;
        top: 208px;
        right: 140px;
        width: 20px;
        height: 20px;
        font-size: 18px;
        border-radius: 50%;
        background: #d1dae3;
    }

}



@media only screen and (max-width: 540px) {

    .margin {
        margin: 25px;
        padding: 15px;
    }

    .margin-top {
        margin-top: 25px;
        margin-bottom: 50px;
    }

    .toggleClass {
        position: absolute;
        top: 240px;
        right: 60%;
        width: 20px;
        height: 20px;
        font-size: 18px;
        border-radius: 50%;
        background: #d1dae3;
    }

    footer {
        padding-top: 20px;
        padding-bottom: 40px;
    }


}


@media only screen and (max-width: 410px) {

    .margin {
        margin: 20px;
        padding: 15px;
    }

    .margin-top {
        margin-top: 15px;
        margin-bottom: 50px;
    }

    .clock {
        width: 200px;
        height: 200px;
    }

    .clock .hour, .hr {
        width: 91px;
        height: 91px;
    }

    .clock .min, .mn {
        width: 108px;
        height: 108px;
    }

    .clock .sec, .sc {
        width: 131px;
        height: 131px;
    }

    .hr:before {
        width: 4.5px;
        height: 45px;
        border-radius: 4px 4px 0 0;
    }

    .mn:before {
        width: 2.25px;
        height: 51px;
        border-radius: 4px 4px 0 0;
    }

    .sc:before {
        width: 1.15px;
        height: 86px;
        border-radius: 4px 4px 0 0;
    }

    .toggleClass {
        position: absolute;
        top: 225px;
        right: 60%;
        width: 20px;
        height: 20px;
        font-size: 18px;
        border-radius: 50%;
        background: #d1dae3;
    }

    footer {
        padding-top: 10px;
        padding-bottom: 40px;
    }

}

@media only screen and (max-width: 295px) {

    .margin {
        margin: 15px;
        padding: 15px;
    }

    .margin-top {
        margin-top: 30px;
        margin-bottom: 50px;
    }

    .toggleClass {
        position: absolute;
        top: 310px;
        right: 65%;
        width: 20px;
        height: 20px;
        font-size: 18px;
        border-radius: 50%;
        background: #d1dae3;
    }

    footer {
        padding-top: 10px;
        padding-bottom: 40px;
    }

}
