@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

*{
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
    overflow: hidden;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    object-fit: cover;
    transition: 1.5s ease-out;
    z-index: -1;
}

/* ToDo list */
.box 
{
    justify-content: center;
    position: relative;
    width: 450px;
    height: 350px;
    border-radius: 20px;
    padding: 30px 50px;
    margin-bottom: 20px;
    background: lightsteelblue;
    box-shadow: 25px 25px 75px rgba(0, 0, 0, 0.25),
    inset 5px 5px 10px rgba(0, 0, 0, 0.5),
    inset 5px 5px 20px rgba(255, 255, 255, 0.2),
    inset -5px -5px 15px rgba(0, 0, 0, 0.75);
}

h2
{
    width: 100%;
    font-weight: 600;
    text-align: center;
    color: purple;
    font-size: 1.75em;
    margin-bottom: 10px;
}

#inputBox
{
    position: relative;
    width: 100%;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25),
    inset 2px 2px 5px rgba(255, 255, 255, 0.5),
    inset -3px -3px 5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.box li 
{
    position: relative;
    width: calc(100% - 40px);
    display: flex;
    align-items: center;
    margin: 15px 0px;
    padding: 10px 10px 10px 45px;
    border-radius: 20px;
    min-height: 40px;
    cursor: pointer;
    box-sizing: border-box;
    background: blue;
    color: white;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25),
    inset 2px 2px 5px rgba(255, 255, 255, 0.5),
    inset -3px -3px 5px rgba(0, 0, 0, 0.5);
}

.box li i 
{
    position: absolute;
    right: -40px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: red;
    border-radius: 50%;
    box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.25),
    inset 2px 2px 5px rgba(255, 255, 255, 0.5),
    inset -3px -3px 5px rgba(0, 0, 0, 0.5);
}

.box li i::before 
{
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background: white;
    transform: rotate(45deg);
}

.box li i::after 
{
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background: white;
    transform: rotate(-45deg);
}

.box li::before
{
    content: '';
    position: absolute;
    left: 8px;
    width: 30px;
    height: 30px;
    background: #1c1c1c;
    border-radius: 50%;

}

.box li.done 
{
    background: #d1d1d1;
    color: #1c1c1c;
}

.box li.done::after
{
    content: '';
    position: absolute;
    left: 16px;
    width: 12px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(315deg);
}

#list 
{
    position: relative;
    margin-top: 20px;
    height: 180px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow-y: auto;
    padding-right: 10px;
}

::-webkit-scrollbar-track
{
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar
{
    width: 5px;
}

::-webkit-scrollbar-thumb
{
    background: #fff;
}

/* Relogio */
.clock {
    position: relative;
    display: flex;
    gap: 20px;
}

.clock .digital {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    box-shadow: 20px 20px 20px -10px rgba(0, 0, 0, 0.15),
    inset 15px 15px 10px rgba(255, 255, 255, 0.5),
    -15px -15px 35px rgba(255, 255, 255, 0.35),
    inset -1px -1px 10px rgba(0, 0, 0, 0.15);
}

.clock .digital .screen {
    position: absolute;
    inset: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #152b4a;
    border-radius: 20px;
    box-shadow: 5px 5px 15px 0 #152b4a,
    inset 5px 5px 5px rgba(255, 255, 255, 0.35),
    -6px -6px 10px rgba(255, 255, 255, 1);
}

.clock .digital .screen::before {
    content: attr(data-text);
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%) scale(0.75);
    letter-spacing: 0.1em;
    color: #1c1c1c;
    text-transform: uppercase;
}

.clock .digital .time {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock .digital .time div {
    position: relative;
    font-size: 2.9em;
    color: var(--clr);
    letter-spacing: 0.1em;
    margin-left: 0.1em;
}

.clock .digital:nth-last-child(2) .time div {
    color: transparent;
    -webkit-text-stroke: 2px var(--clr);
}

.clock .digital:last-child::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: #152b4a;
    border: 2px solid #fff;
    z-index: 10;
    border-radius: 50%;
}

.clock .digital:last-child::after {
    content: "";
    position: absolute;
    inset: 20px;
    background: #152b4a;
    border-radius: 50%;
    box-shadow: 5px 5px 15px 0 #152b4a,
    inset 5px 5px 5px rgba(255, 255, 255, 0.35),
    -6px -6px 10px rgba(255, 255, 255, 1);
}

.box-clock {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 9;
}

.box-clock::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: var(--clr);
    border-radius: 4px;

}

.box-clock:nth-child(1):after {
    height: 20px;
    width: 4px;

}
.box-clock:nth-child(2):after {
    height: 25px;
    width: 3px;
    
}

#ampm {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.75);
    color: #333;
    letter-spacing: 0.1em;
}