:root {
    --accent-color: rgb(241, 241, 241);
    --widget-background-color: rgba(255, 255, 255, 0.8);
    --border-color: rgba(143, 143, 143, 0.3);
    --secondary-bg-color: rgba(100, 100, 100, 0.3);
    --secondary-border-color: rgba(85, 85, 85, 0.3);
    --tertiary-bg-color: rgba(192, 192, 192, 0.3);
    --tertiary-border-color: rgba(177, 177, 177, 0.3);
    --input-color: rgba(255, 255, 255, 0.3);
    --light-text-color: rgba(0, 0, 0, 0.70);
}

* {
    user-select: none;
    font-family: 'Poppins', sans-serif;
}

::selection {
    background: var(--accent-color);
    color: white;
}

.wallpaper {
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    pointer-events: none;
    display: none;
}

.wallpaper.show {
    display: block;
    animation: zoom-out 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

@keyframes zoom-out {
    from {
        transform: scale(125%) rotateZ(2deg);
        filter: blur(5px);
    }
    to {
        transform: scale(100%) rotateZ(0deg);
        filter: blur(0px);
    }
}

.blur {
    position: relative;
    display: block;
    box-sizing: border-box;
    backdrop-filter: blur(40px);
    padding: 3%;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.30);
    overflow: hidden;
    border: 1px var(--border-color) solid;
}

.blur::before {
    content: "";
    background-image: url('/assets/noise.webp');
    background-repeat: repeat;
    background-size: 50%;
    background-blend-mode: multiply;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.05;
    pointer-events: none;
}

.pop-up {
    animation: pop-up 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.light-text {
    color: var(--light-text-color);
    font-size: 1vw;
    font-style: normal;
    font-weight: 400; 
}

.large-text {
    color: #000;
    font-size: 2.5vw;
    font-style: normal;
    font-weight: 600;
}

.accent-color {
    background-color: var(--accent-color);
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-container {
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1%;
    box-sizing: border-box;
    grid-template-columns: repeat(24, 4vw);
    grid-template-rows: repeat(12, 4vw);
    justify-content: center;
    align-self: center;
}

.summary-widget {
    grid-column-start: 2;
    grid-row-start: 2;
    grid-column-end: 9;
    grid-row-end: 5;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.summary-widget .half-1 {
    width: 40%;
}

.summary-widget .half-2 {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-widget .half-2 div {
    width: 100%;
    box-sizing: border-box;
    display: flex;
}

.summary-widget .half-2 .half-1 {
    height: 100%;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
    color: #373737;
    font-size: 3.5vw;
    font-style: normal;
    font-weight: 500;
}

.summary-widget .half-2 .half-2 {
    height: min-content;
    color: var(--light-text-color);
    font-size: 0.9vw;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    justify-content: center;
}

.weather-widget {
    grid-column-start: 2;
    grid-row-start: 6;
    grid-column-end: 6;
    grid-row-end: 8;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-sizing: border-box;
}

.weather-widget .half-1 {
    aspect-ratio: 1/1;
    box-sizing: border-box;
    height: 100%;
}

.weather-widget .half-1 div {
    width: 100%;
    aspect-ratio: 1/1;
}

.weather-widget .half-2 {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: space-between;
    margin-left: 20px;
    width: 50%;
}

.weather-widget .half-2 .half-1 {
    height: 65%;
}

.weather-widget .half-2 .half-1 div {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    align-items: center;
    width: 100%;
    height: 50%;
}

.weather-widget .half-2 .half-1 div > .half-2 {
    flex-direction: column;
    margin: 0;
    font-size: 0.6vw;
    font-weight: 300;
    width: 60%;
    height: 60%;
    text-align: right;
}

.weather-widget .large-text {
    font-size: 1.6vw;
    font-weight: 500;
}

.weather-widget .half-2 .light-text {
    font-size: 0.6vw;
    font-weight: 500;
}

.weather-widget .half-2 .half-2 {
    height: 35%;
    width: 100%;
    margin: 0;
}

.weather-widget .half-2 .half-2 .widget-section {
    height: 100%;
}

.weather-condition.light-text {
    font-size: 0.6vw !important;
    font-weight: 300 !important;
}

#time, #date {
    opacity: 0%;
}

#time.show, #date.show {
    opacity: 100%;
}

.widget-section {
    border-radius: 10px;
    border: 1px solid rgba(143, 143, 143, 0.30);
    background: rgba(255, 255, 255, 0.40);
    padding: 5px 12px;
}

#greeting {
    display: none;
}

#greeting.show {
    display: block;
    animation: pop-up 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#name {
    display: none;
}

#name.show {
    display: block;
    animation: pop-up 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

@keyframes pop-up {
    from {
        transform: translateY(10px);
        opacity: 0%;
    }
    to {
        transform: translateY(0px);
        opacity: 100%;
    }
}

#settingsButton {
    position: absolute;
    width: 1vw;
    height: 1vw;
    border-radius: 100%;
    bottom: 1%;
    right: 1%;
}

.modal-background {
    position: fixed;
    display: none;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    top: 0%;
    left: 0%;
    background: linear-gradient(0deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0) 100%);
}

.modal-background.show {
    display: flex;
    animation: fade-in 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.modal-background.hide {
    animation: fade-out 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

@keyframes fade-in {
    from {
        opacity: 0%;
    }
    to {
        opacity: 100%;
    }
}

@keyframes fade-out {
    from {
        opacity: 100%;
    }
    to {
        opacity: 0%;
    }
}

.modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 80%;
    padding: 0;
    display: none;
    flex-direction: column;
}

.modal.show {
    display: flex;
    animation: modal-open 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.modal.hide {
    animation: modal-close 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

@keyframes modal-open {
    from {
        transform: translate(-50%, -30%);
        opacity: 0%;
    }
    to {
        transform: translateY(-50%, -50%);
        opacity: 100%;
    }
}

@keyframes modal-close {
    from {
        transform: translate(-50%, -50%);
        opacity: 100%;
    }
    to {
        transform: translate(-50%, -60%);
        opacity: 0%;
    }
}

.header {
    font-size: 30px;
    font-weight: 500;
}

.modal .header {
    height: 8%;
    min-height: 50px;
    padding: 1% 3% 1% 3%;
    box-sizing: border-box;
    border-bottom: var(--secondary-border-color) 1px solid;
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg-color);
}

.modal .body {
    height: 100%;
    padding: 5%;
    box-sizing: border-box;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

.modal .footer {
    height: 10%;
    min-height: 50px;
    padding: 1% 3% 1% 3%;
    box-sizing: border-box;
    background-color: var(--tertiary-bg-color);
    border-top: var(--tertiary-border-color) 1px solid;
    display: flex;
    justify-content: right;
    align-items: center;
}

.modal .footer button {
    height: auto;
}

.settings-line {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 10px 0px;
    box-sizing: border-box;
    border-bottom: var(--border-color) 1px solid;
}

button {
    padding: 0.5% 2%;
    font-size: 20px;
    font-weight: 400;
    border-radius: 10px;
    border: var(--border-color) 1px solid;
    background-color: var(--widget-background-color);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.15s cubic-bezier(0.075, 0.82, 0.165, 1);
}

button:hover {
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.15s cubic-bezier(0.075, 0.82, 0.165, 1);
}

button:active {
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
    opacity: 80%;
    transition: all 0.15s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.close-button {
    margin-left: auto;
}

input[type=text] {
    background-color: var(--input-color);
    padding: 1% 2%;
    border: var(--border-color) 1px solid;
    border-bottom: var(--secondary-border-color) 1px solid;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s cubic-bezier(0.075, 0.82, 0.165, 1);
}

input[type=text]:focus {
    background-color: var(--widget-background-color);
    border-bottom: var(--accent-color) 2px solid;
    transition: all 0.15s cubic-bezier(0.075, 0.82, 0.165, 1);
}