:root {
    font-size: 10px;
}


@font-face {
    font-family: 'Digital Numbers Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Digital Numbers Regular'), url('../css/DigitalNumbers-Regular.woff') format('woff');
    }

.time {
    margin: 0 auto;
    font-family: 'Digital Numbers Regular', sans-serif;
    font-size: clamp(1.5rem, 3.2rem, 3.5rem);
}

body {
    margin: auto;
    width: 100%;
    height: 94vh;
    font-size: 40px;
    font-family: 'Rationale', sans-serif;
    transition: background-color 1s, color 1s;
}

.watch-div {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: clamp(31rem, 35rem, 40rem);
    background-color: rgb(90, 90,90);
    height: clamp(55rem, 60rem, 69rem);
    border-radius: 40px;
    box-shadow: 10px 10px 25px 1px rgb(90, 90,90);
    transition: background-color 1s, box-shadow 1s;
}
.watch-div-lightsout{
    box-shadow: none;
    background-color: black;
}

a {
    text-decoration: none;
    color: white;
}

.top-div {
    height: 50px;
    display: grid;
    grid-template-columns: 150px 150px;
    grid-auto-rows: minmax(auto, auto);
    color: white;
    font-size: 15px;
    padding: 0;    
    transition: color 1s;
}

.casio {
    color: white;
    font-family: "Orbitron";
    font-size: 2rem;
    cursor: pointer;
    transition: color 1s;
}
.data-bank {
    color: gold;
    font-size: 1.5rem;
    font-style: italic;
    text-align: end;
    transition: color 1s;
}
.number-150 {
    font-weight: bolder;
    font-size: 1.9rem;
}

.illuminator {
    text-align: center;
    grid-column-start: 1;
    grid-column-end: -1;
    letter-spacing: 3px;
    font-size: 1.5rem;
    color: turquoise;
    font-style: italic;
    font-weight: bold;
}

.display-div {
    color: black;
    padding: 20px;
    margin: 5px auto 15px;
    background-color: lightgray ;
    border-radius: 12px;
    border: slategray inset 10px;
    height: 100px;
    width: clamp(20rem, 23rem, 25rem);
    display: flex;
    justify-content: space-between;
    flex-direction: column;

    transition: 0.5s cubic-bezier(0.25, 0.94, 0, 0.97),
    background-color 1s cubic-bezier(0.25, 0.94, 0, 0.97);
}
.display-outer-div {
    padding: 10px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
    width: clamp(28rem, 33rem, 38rem);
    height: clamp(20rem, 25rem, 30rem);
    border-radius: 35px 35px 10px 10px;
    border: 2px outset grey;
    transition: border 1s;
}
.display-outer-div-lightsout {
    border-color: turquoise;
}

.middle-div {
    width: 90%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.memory-protect-div {
    padding: 0 0 0 10px;
    color: gold;
    font-style: italic;
    font-size: 2.3rem;   
    width: 170px;
    height: 30px;
    background-color: rgb(0, 46, 71);
    border-radius: 5px 0px 0px 5px;
}
.tri-1 {   
    height: 0;
    width: 0;
    border-top: 30px solid rgb(0, 46, 71);
    border-right: 30px solid transparent;
    transition: 1s;
}
.tri-2 {
      
    height: 0;
    border-bottom: 35px solid gray;
    border-left: 35px solid transparent;
    box-shadow: 2px 2px black;
    cursor: pointer;
    transition: border-bottom 1s;
}
.tri-2-pressed {
    box-shadow: none;
}

.light {
    padding: 0 7px 0 0;
    font-size: 2.3rem;
    height: 35px;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
    font-weight: bold;
    background-color: gray;
    color: gold;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-shadow:  0 0 1px rgb(65, 65, 65),
     0 0 1px rgb(63, 63, 63),
     0 0 1px black,
     0 0 1px black; 
}
.light-pressed {
    box-shadow: none;
}

.on {
    display: block;
}
.off {
    display: none;
}

.keyboard {
    width: clamp(20rem, 30rem, 40rem);
    height: clamp(20rem, 22rem, 45rem);
    margin: 10px 0 0;
    background-color: rgb(65, 65,65);
    padding: clamp(0.1rem, 0.5rem, 0.6rem);
    display: grid;
    grid-template-columns: repeat(4, 75px);
    grid-gap: 1px;
    border: inset 2px rgb(100, 100,100);
    border-radius: 10px;
}
.keyboard-lightsout {
    border-color: turquoise;
}

.btn {
    width: clamp(3rem, 7rem, 10rem);
    height: clamp(1rem, 4rem, 7rem);;
    background-color: gray;
    color: white;
    border-radius: 5px;
    border: solid 1px rgb(45, 45,45);
    box-shadow: -1px -1px 10px inset darkslategray;
    font-size: 20px;
    font-weight: bold;
    font-family:monospace;
    letter-spacing: 3px;
}

.btn-active{
    background-color: rgb(92, 92, 92);;
    color: rgb(155, 155, 155);
    box-shadow: -1px -1px 10px inset black;
}
.btn:active{
    background-color: rgb(92, 92, 92);;
    color: rgb(155, 155, 155);
    box-shadow: -1px -1px 10px inset black;
}

.btn-top {
    background-color: rgb(111, 130, 160);
    border: 1px solid rgb(37, 37, 37);
    box-shadow: -1px -1px 10px inset rgb(31, 31, 31);
}
.btn-top-active {
    background-color: rgb(61, 71, 88);
}
.btn-top:active {
    background-color: rgb(61, 71, 88);
}

.lights-off {
    background-color: black;
    color: white;
}
.dark-screen {
    border-color: black;
    background-color: rgb(10, 10, 10);
}

.top-bar {
    margin: 5px auto 0;
    z-index: -1;
    font-size: clamp(1rem, 2rem, 1.5rem);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 0;
    width: clamp(30rem, 35rem, 45rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-wrap: break-word;
}

h1 {
    word-wrap: break-word;
    padding: 0;
    margin: 0;
    display: inline;
    font-family: 'Segment7', sans-serif;
    font-family: 'Bungee Hairline', sans-serif;
    font-family: 'Rationale', sans-serif;
}


.day {
    width: 30px;
}
.night {
    width: 0;
}


.backlight {
    z-index: 3;
    background-color: #00ced1;
    box-shadow: 1px 1px 400px 100px darkturquoise ;
    border-color: turquoise;
}
.backlight-red {
    z-index: 3;
    animation: red-alarm 0.5s ease-in-out 13 forwards;
}

@keyframes red-alarm {
    0% {
        background-color: black;
        color: red;
        box-shadow: 1px 1px 400px 100px none;
        border-color: rgb(27, 27, 27);
    }
    50% {
        background-color: red;
        color: black;
        box-shadow: 1px 1px 400px 100px red ;
        border-color: rgb(255, 34, 34);
    }
    100% {
        background-color: black;
        color: black;
        box-shadow: 1px 1px 400px 100px none;   
        border-color: black;         
    }

}

.calculator-display {
    padding: 0;
    margin-left: 0;
    border: none;
    background-color: transparent;
    font-size: 65px;
    width: 100%;
    text-align: right;
    font-family: 'Rationale';
    color: black;

}
.date {
    height: 30px;
    margin: 0 auto 10px;
    font-family: "Rationale";
    font-size: 35px;
    text-align: center;

}
.sun-moon {
    margin-left: auto;
    font-size: 4rem;
}

.button-watch-assembly {
    margin: 40px auto;
    height: 94vh;
    display: flex;
    flex-shrink: 3;
    justify-content: center;
    align-items: center;
}

.mode-btn {
    background-color: black;
    color:white;
    padding: 15px 0;
    width: 20px;
    height: 6rem;
    border-radius: 15px 0 0 15px;
    border-right: none;
    position: relative;
    bottom: 11.5rem;
    transition: border 1s;
}
.mode-btn-lightsout {
    border-color: turquoise;
}
 
.btn-vertical-text {
    position: relative;
    right: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transition: 1s;
}


.btn-vertical-text-lightsout {
    color: turquoise;
}

.flex-span-display {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lights-out-on {
    background-color: black;
    color: turquoise;
    box-shadow: none;
    transition: 1s;
}
.tri1-lights-out-on {
    border-top: 30px solid black;
}

.tri2-lights-out-on {
    border-bottom: 35px solid black;
}

.darkmode-toggle {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 3rem;
    font-size: 1rem;
    padding: 0 0px 0 9px;
    margin: 0;
    width: 5rem;
    border: 2px solid lightsteelblue;
    border-radius: 50px;
    background: linear-gradient(311deg, rgba(103,223,255,1) 30%, rgba(253,187,45,1) 100%);  
    transition: 0.1s;
    cursor: pointer;
}
.sun {
    background-color: gold;
    box-shadow: 1px 1px 0px rgb(252, 232, 84), -1px -1px 0px rgb(252, 232, 84),
    -1px 1px 0px rgb(252, 232, 84),
    1px -1px 0px rgb(252, 232, 84);
}
.moon {
    background-color:rgb(255, 255, 117);
    box-shadow: 1px 1px 0px lightyellow, -1px -1px 0px lightyellow,
    -1px 1px 0px lightyellow,
    1px -1px 0px lightyellow;
}

.sun-moon {    
    padding: 0;
    margin: 0;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    font-size: 2rem;
    animation: toggleOff 0.7s cubic-bezier(0, 1.32, 0.29, 1.26) forwards;
}
.animated {
    animation: toggle 0.7s cubic-bezier(0, 1.32, 0.29, 1.26) forwards;
}

@keyframes toggle {
    100%{
        transform: translateX(100%);
    }
}

@keyframes toggleOff {
    0% {
        transform: translateX(100%);
    }
}

.github {
    letter-spacing: 2px;
    color: inherit;
    transition: 0.1s;
    background-color: transparent;
}
