*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.5s;
}

body
{
    --bg-color: #000000;
    --object-color: #1B1D23;
    --text-color: #DDEBF8;
    --primary-color: #0049F5;
    --primary-button-color: #DDEBF8;
    --border-color: rgba(221, 235, 248, 0.4);
    --shadow: 0 0 0 transparent;
}

@media (prefers-color-scheme: light) {
    body
    {
        --bg-color: #ffffff;
        --object-color: #DDEBF8;
        --text-color: #272932;
        --primary-color: #0049F5;
        --primary-button-color: #DDEBF8;
        --border-color: rgba(39, 41, 50, 0.4);
        --shadow: 0 0 20px rgba(0, 73, 245, 0.2);
    }
}

html, body
{
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
}
.material-symbols-rounded
{
    font-size: 36px;
    color: var(--text-color);
}
button
{
    cursor: pointer;
}
p, h1, a
{
    font-family: 'Sora', sans-serif;
    color: var(--text-color);
    padding: 0;
    margin: 0;
    white-space: nowrap;
}
h1
{
    font-weight: 700;
    letter-spacing: 4%;
}
p, a
{
    font-weight: 400;
}

#loader 
{
    position: absolute;
    margin: 0 auto;
    width: 100px;
    left: 50%;
    top: 50%;
    margin: -50px 0 0 -50px;
}
#loader:before 
{
    content: "";
    display: block;
    padding-top: 100%;
}
  
.circular 
{
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
  
.path 
{
    stroke: var(--text-color);
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    -webkit-animation: dash 1.5s ease-in-out infinite;
    animation: dash 1.5s ease-in-out infinite;
    stroke-linecap: round;
}
  
@-webkit-keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
}
  
@keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
}
@-webkit-keyframes dash {
    0% {
      stroke-dasharray: 1, 200;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 89, 200;
      stroke-dashoffset: -35px;
    }
    100% {
      stroke-dasharray: 89, 200;
      stroke-dashoffset: -124px;
    }
}
@keyframes dash {
    0% {
      stroke-dasharray: 1, 200;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 89, 200;
      stroke-dashoffset: -35px;
    }
    100% {
      stroke-dasharray: 89, 200;
      stroke-dashoffset: -124px;
    }
}

#app
{
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    flex-direction: column;
}

header
{
    width: 100%;
    height: 80px;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}
header button
{
    border: none;
    background-color: transparent;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}
header h1
{
    font-size: 32px;
}

.content
{
    padding: 0 24px;
    width: 100%;
    height: calc(100% - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
}

.select
{
    background-color: var(--object-color);
    display: flex;
    box-shadow: 0 0 0 1px var(--border-color), var(--shadow);
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 80px;
    transition: margin-bottom 0.3S;
}
.select button
{
    border: none;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    color: var(--text-color);
}
.button-focus
{
    color: var(--primary-button-color) !important;
    background-color: var(--primary-color) !important;
    font-variation-settings: 'FILL' 1;
}
.select button span
{
    color: inherit;
}


.container
{
    display: none;
    background-color: var(--object-color);
    width: 100%;
    height: 200px;
    min-height: 200px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    box-shadow: 0 0 0 1px var(--border-color), var(--shadow);
}
.container h1
{
    font-family: 'Share Tech Mono', 'Sora', monospace;
}
.open
{
    display: flex;
}
.landscape
{
    height: calc(100% - 100px);
}
.fullscreen
{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    box-shadow: none;
    border-radius: 0;
}
#timer-container
{
    animation: slide-from-right 0.2s ease-in-out;
    -webkit-animation: slide-from-right 0.2s ease-in-out;
}
.container p 
{
    font-size: 26px;
}
.landscape p
{
    font-size: 30px;
}
.container > button
{
    position: absolute;
    right: 18px;
    bottom: 8px;
    border: none;
    background-color: transparent;
    width: 36px;
    transition: rotate 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    font-variation-settings: 'FILL' 1;
}
.fullscreen-button
{
    right: 72px !important;
    display: none !important;
}
.landscape > button
{
    rotate: 90deg;
    left: 12px;
    bottom: 8px;
}
.landscape .fullscreen-button
{
    bottom: 56px;
    display: flex !important;
}
.fullscreen .rotate
{
    display: none;
}
.fullscreen .fullscreen-button
{
    bottom: 12px;
}
#clock-container #date-text, #timer-container > div
{
    transition: rotate 0.2s ease-in-out, transform 0.4s;
}
#clock-container.landscape #date-text, #timer-container.landscape > div
{
    rotate: 90deg;
}
#clock-container:not(.landscape) h1
{
    font-size: 16vw;
}
#timer-container:not(.landscape) h1
{
    font-size: 16vw;
}
#clock-container.landscape h1
{
    font-size: 13vh;
}
#timer-container.landscape h1
{
    font-size: 13vh;
    margin: 12px 0;
}
#timer-container > div
{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
#timer-container.landscape > div
{
    justify-content: center;
}
.container > div
{
    transition: transform 0.4s;
}
#timer-container .buttons
{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
#timer-container .buttons button
{
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
#timer-container .buttons span
{
    font-size: 44px;
}
#start-stop
{
    margin-right: 24px;
}
.fullscreen h1
{
    font-size: 20vh !important;
}
#timer-container.fullscreen p
{
    font-size: 48px;
}
.landscape .buttons span
{
    font-size: 7vh !important;
}
#timer-container.fullscreen span
{
    font-size: 56px;
}

footer
{
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer a
{
    text-decoration: none;
    font-size: 24px;
}
#install-alert
{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    height: 80px;
    border-radius: 15px 15px 0 0;
    background-color: var(--object-color);
    display: none;
    padding: 12px;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
#install-alert p
{
    font-size: 20px;
    white-space: pre-wrap;
}
#install-alert > div
{
    display: flex;
    align-items: center;
}
#install-button
{
    background-color: var(--primary-color);
    color: var(--primary-button-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4%;
    padding: 8px 24px;
    border: none;
    border-radius: 30px;
    margin-right: 12px;
}
#dismiss-button
{
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes slide-from-left {
    0%
    {
        transform: translateX(-100%);
    }
    100%
    {
        transform: translateX(0);
    }
}
@keyframes slide-from-right {
    0%
    {
        transform: translateX(100%);
    }
    100%
    {
        transform: translateX(0);
    }
}

@media only screen and (orientation: landscape) {
    .container > button
    {
        display: none;
    }
}

@media only screen and (max-width: 350px) {
    header h1
    {
        font-size: 24px;
    }
    header button
    {
        right: 12px;
    }
    .container.landscape h1
    {
        margin: 0 !important;
    }
}

@media only screen and (max-height: 750px) {
    header
    {
        height: 60px;
    }
    .content
    {
        height: calc(100% - 120px);
    }
}

@media only screen and (min-width: 550px) {
    #clock-container:not(.landscape) h1
    {
        font-size: 85px;
    }
    #timer-container:not(.landscape) h1
    {
        font-size: 85px;
    }
}