#body {
    margin: 0;
    user-select: none;
    color: white;
    background-image: url("gradient.jpeg");
    background-attachment: fixed;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3%;
    background-repeat: no-repeat;
    overscroll-behavior: none;
    width: auto;
    overflow: hidden !important;
    font-family: product;
    height: 100vh;
}

* {
    transition: .3s;
}

#grad {
    background: radial-gradient(circle at top left, #1e013d, rgba(0, 0, 0, .6), #2d0c30, #013d39);
    animation: bc 6.9s infinite alternate ease-in-out;
    background-size: 400%, 400%;
    position: fixed;
    margin: 0;
    top: 0;
    left: 0;
    height: 100%;
    z-index: -2;
    width: 100%;
    opacity: .7;
}

@keyframes bc {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: 0% 0%;
    }
}

#sw {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, .2);
    padding: 2%;
    backdrop-filter: blur(2px);
    border-radius: 33px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    z-index: 1;
    aspect-ratio: 7/2;
}

#sw:hover #swoogle {
    letter-spacing: .2ch;
    margin-bottom: .3ch;
}

#swoogle {
    font-size: xxx-large;
    font-weight: bolder;
    font-family: modern;
    color: #f8f7a2;
}

input {
    border: 0;
    color: snow;
    text-align: center;
    font-family: product;
}

#q {
    background-color: rgba(0, 0, 0, .3);
    border-radius: 69px;
    padding: .69ch;
    width: 99%;
    margin-top: 2ch;
    font-size: large;
}

#q:focus {
    background-color: rgba(255, 255, 255, .1);
}

input:focus {
    outline: 0;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
    border: 2px solid red;
    transition: .3s;
}

button {
    font-family: product;
    margin: 2%;
    padding: 1%;
    background-color: rgb(53, 38, 19);
    border-radius: 69px;
    color: snow;
    border: 0;
    font-size: larger;
    min-width: 8ch;
    cursor: pointer;
    background-position: center;
    transition: .3s;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

button:active {
    background-size: 100%;
    transition: background 0s;
}

.icon {
    font-family: icon;
    font-size: x-large;
}

@font-face {
    src: url("Modern Age.otf");
    font-family: modern;
}

@font-face {
    font-family: product;
    src: url("ProductSans.ttf");
}

@font-face {
    font-family: icon;
    font-weight: 100 700;
    src: url("Icons.woff2");
}

#clock {
    font-family: product;
    display: grid;
    grid-template-areas: "left1 right" "left2 right";
    grid-template-columns: 1fr 2fr;
    align-items: center;
    grid-column-gap: 5%;
}

#digi {
    margin: 12% 15% 0 0;
    color: #e3f8e3;
    font-size: large;
    grid-area: left2;
    text-align: center;
}

#analog {
    min-width: 200px;
    max-width: 200px;
    aspect-ratio: 1/1 !important;
    border-radius: 50%;
    position: relative;
    grid-area: left1;
    background-color: #0c2213;
    z-index: 3;
    box-shadow: -5px 5px 0 0 #153a20, -10px 10px 0 0 #194626, -15px 15px 0 0 #1e552f, -20px 20px 0 0 #296b3c, rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

#wish {
    grid-area: right;
    font-size: xxx-large;
}

.hand {
    position: absolute;
    background-color: #fff;
    transform-origin: bottom center;
    border-radius: 69px;
    transition: 0s;
    z-index: 1;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4), 0px 7px 13px -3px rgba(0, 0, 0, 0.3), inset 0px -3px 0px rgba(0, 0, 0, 0.2);
}

#hr {
    width: 9px;
    height: 30%;
    bottom: 50%;
    left: calc(50% - 5px);
    background-color: transparent;
    border: 2px solid #acfc9c;
}

#min {
    width: 5px;
    height: 40%;
    bottom: 50%;
    left: calc(50% - 2.5px);
    background-color: #1e5c42;
}

#sec {
    width: 2px;
    height: 45%;
    bottom: 50%;
    left: calc(50% - 1px);
    background-color: orangered;
    animation: min 60s infinite linear;
}

@keyframes min {
    to {
        rotate: 360deg;
    }
}

#center {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: calc(50% - 6px);
    left: calc(50% - 6px);
    z-index: 2;
}

#analog>span,
#analog>center {
    font-weight: 900;
    color: #40584e;
    z-index: 0;
    font-size: 500%;
    position: absolute;

}

#t {
    top: .1ch;
    left: calc(50% - .7ch);
}

#th {
    right: .2ch;
    bottom: calc(50% - 1ch);
}

#n {
    bottom: .1ch;
    left: calc(50% - .4ch);
}

#s {
    left: .2ch;
    bottom: calc(50% - 1ch);
}

#apps {
    overflow: auto;
    border-radius: 33px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    z-index: 1;
    width: 69vh;
    height: 25vh;
    margin-top: 2%;
    grid-gap: 3%;
    padding: 1%;
    background: rgb(4, 18, 29);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

#apps>a {
    border-radius: 23px;
    background-image: linear-gradient(to right, #044b85 23%, transparent 23%);
    background-color: #092242;
    transition-timing-function: cubic-bezier(0.21, 0.61, 0.35, 1);
    display: flex;
    align-items: center;
    font-family: product;
    font-size: larger;
    position: relative;
    background-size: 100%;
    text-decoration: none;
    color: rgb(216, 241, 248);
    padding: 1% 5% 1% 5%;
    -webkit-tap-highlight-color: transparent;
}

#apps>a:active {
    scale: .7;
}

img {
    width: 18%;
    margin-right: 3%;
}

#calc {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #29231c;
    border-radius: 0 45px 0 0;
    font-family: product;
    font-size: xx-large;
    z-index: 1;
    width: 35vh;
    padding-top: 1ch;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

#c {
    margin-left: 0;
    width: 89%;
    padding: .69ch;
    font-size: x-large;
    border-radius: 0 69px 69px 0;
    font-family: product;
    background-color: #3a3131;
    text-align: right;
}

#c:focus {
    background: #685104;
}

#key {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-gap: 3%;
    margin: 0;
    padding: .5ch 1ch 2.5ch .5ch;
}

#key>span,
#key>input {
    background: #201b10;
    border-radius: 20px;
    padding: .3ch;
    aspect-ratio: 1/1;
    font-size: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

#key>span:hover,
#key>input:hover {
    background: #463d02;
    border-radius: 69px;
    font-weight: bolder;
    scale: 1.3;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    cursor: pointer;
}

#key>span:active,
#key>input:active {
    scale: .8;
}

#o {
    background: #e4e6af !important;
    color: #38382a;
}

#chem {
    z-index: 2;
    position: fixed;
    top: 0;
    right: 0;
    font-family: product;
    background: #241919;
    color: #ecdfdf;
    padding: 0 0 2% 2%;
    width: 40vh;
    border-radius: 0 0 0 69px;
    transition: .3s;
    height: 23vh;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 30px;
}

#btns>input {
    border-radius: 69px;
    background: #ff8179;
    margin: 1ch;
    font-size: larger;
    padding: .5ch;
}

#btns>input:active {
    scale: .8;
}

#sce {
    color: black;
    border: 0;
    border-radius: 69px 0 0 69px;
    width: 98%;
    text-align: left;
    font-size: larger;
    margin-right: 0;
    padding: 1ch;
    color: snow;
    background: #3b2d2e
}

#sce:focus {
    background: #50374a;
}

#al {
    font-size: large;
    border: 2px solid #ea84f3;
    border-right: 0;
    border-radius: 33px 0 0 33px;
    height: 0;
    padding: 0;
    transition: .7s;
    background: rgba(72, 41, 75, .5);
}

@media (max-width: 1200px) {
    #calc {
        scale: .5;
        transform: translate(-45vh, 45vh);
    }

    #calc:hover {
        scale: 1;
        transform: translate(0, 0);
    }

    #chem {
        scale: .5;
        transform: translate(35vh, -25vh);
    }

    #chem:hover{
        scale: 1;
        transform: translate(0, 0);
    }
}

@media (max-height: 669px) {
    #clock{
        display: none;
    }

    #chem{
        display: none;
    }

    #calc{
        display: none;
    }
}

@media (max-height: 525px) {
    #apps{
        display: none;
    }
}
