/* Variáveis */

:root {
    /* Sombras */
    --shadow-color: 0deg 76% 28%;
    
    --shadow-elevation-low:
      0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.24),
      0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.24),
      0.9px 1.7px 2.2px -2.5px hsl(var(--shadow-color) / 0.24);

    --shadow-elevation-medium:
      0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.2),
      0.6px 1.2px 1.5px -0.6px hsl(var(--shadow-color) / 0.2),
      1.1px 2.3px 2.9px -1.2px hsl(var(--shadow-color) / 0.2),
      2.2px 4.4px 5.5px -1.9px hsl(var(--shadow-color) / 0.2),
      4.3px 8.5px 10.7px -2.5px hsl(var(--shadow-color) / 0.2);

    /* Cores para o fundo */

    --first-color:  #b22222;
    --second-color: #913046;
    --third-color:  #713f6a;
    --fourth-color: #504d8d;
    --fifth-color:  #3e55a1;

    /* Outras cores */
    --generic-white: #efeffff0;
    --generic-black: #1b1e23;
}

@font-face {
    font-family: 'Arial Rounded';
    src: url(../fonts/arial-rounded-mt-bold.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial Rounded', Arial, Helvetica, sans-serif;
    color: var(--generic-black);
}

/* Estilos mais genéricos */

button {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

button:active {
    transform: translate(1px, 2px);
}

button:hover {
    cursor: pointer;
}

.button_actived {
    background-color: #ab9e9e;
    border: 1px solid #0f0f0f;
}

/* Animações */

@keyframes backgroudTrasition {
    0% {
        background-color: var(--first-color);
    }
    25% {
        background-color: var(--second-color);
    }
    50% {
        background-color: var(--third-color);
    }
    75% {
        background-color: var(--fourth-color);
    }
    100% {
        background-color: var(--fifth-color);
    }
}

@keyframes reverseBackgroudTrasition {
    0% {
        background-color: var(--fifth-color);
    }
    25% {
        background-color: var(--fourth-color);
    }
    50% {
        background-color: var(--third-color);
    }
    75% {
        background-color: var(--second-color);
    }
    100% {
        background-color: var(--first-color);
    }
}


body {
    animation: none;
}

/* Trash Bin */

.gg-trash {
    box-sizing: border-box;
    position: relative;
    display: block;
    transform: scale(var(--ggs,1));
    width: 10px;
    height: 12px;
    border: 2px solid transparent;
    box-shadow:
    0 0 0 2px,
    inset -2px 0 0,
    inset 2px 0 0;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    margin-top: 4px;
    background-color: gray;
   }
   
.gg-trash::after,
.gg-trash::before {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    background-color: gray;
   }
   
.gg-trash::after {
    background: currentColor;
    border-radius: 3px;
    width: 16px;
    height: 2px;
    top: -4px;
    left: -5px;
   }
   
.gg-trash::before {
    width: 10px;
    height: 4px;
    border: 2px solid;
    border-bottom: transparent;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    top: -7px;
    left: -2px;
} 

/* Estilização do Pomodoro */

@media screen and (max-width: 768px) {
    body {
        display: flex;
        background-color: var(--first-color);
        min-height: 100vh;
        width: 100vw;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px 0;
        padding: 30px 0;
        overflow-x: hidden;
    }
    #pomodoro {
        display: flex;
        height: 60vh;
        width: 100vw;
        flex-direction: column;
        gap: 50px 0;
        align-items: center;
    }
    #timer_container {
        background-color: var(--generic-white);
        display: flex;
        flex-direction: column;
        width: 80%;
        min-height: 40vh;
        border-radius: 6px;
        padding: 15px 10px;
        box-shadow: var(--shadow-elevation-medium);
    }
    #options_container button {
        color: #0f0f0f;
        padding: 5px;
        border-radius: 4px;
        border: .5px solid #ffffff;
        box-shadow: var(--shadow-elevation-low);
        font-size: 1em;
    }
    #tasks_panel {
        display: flex;
        flex-direction: column;
        width: 80%;
        min-height: fit-content;
        border-radius: 6px;
        gap: 10px;
    }
    .item_p {
        display: flex;
        align-self: center;
        width: 175%;
        padding: 8px;
        font-size: 1.1em;
        hyphens: auto;
        min-height: 50px;
    }
}

@media screen and (min-width: 768px) {
    body {
        display: flex;
        background-color: var(--first-color);
        min-height: 100vh;
        width: 100vw;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 50px 0;
        padding: 50px 0;
        overflow-x: hidden;
    }
    #pomodoro {
        display: flex;
        height: 74vh;
        width: 50vw;
        flex-direction: column;
        gap: 50px 0;
        align-items: center;
    }
    #timer_container {
        background-color: var(--generic-white);
        display: flex;
        flex-direction: column;
        width: 80%;
        min-height: 60vh;
        border-radius: 6px;
        padding: 15px 10px;
        box-shadow: var(--shadow-elevation-medium);
    }
    #options_container button {
        color: #0f0f0f;
        padding: 5px;
        border-radius: 4px;
        border: .5px solid #ffffff;
        box-shadow: var(--shadow-elevation-low);
        font-size: 1.2em;
        width: 30%;
    }
    #tasks_panel {
        display: flex;
        flex-direction: column;
        width: 40vw;
        min-height: fit-content;
        border-radius: 6px;
        gap: 10px;
        margin-top: 10px;
    }
    .item_p {
        display: flex;
        align-self: center;
        width: 175%;
        padding: 8px;
        font-size: 1em;
        hyphens: auto;
        min-height: 50px;
    }
    
}

.item_p{
    word-break: break-all;
}

#options_container {
    display: flex;
    height: 25%;
    width: 100%;
    justify-content: space-around;
    padding: 4px 0;
    hyphens: auto;
}

#timer {
    display: flex;
    width: 100%;
    height: 50%;
    font-size: 5rem;
    justify-content: center;
    align-items: center;
    user-select: none;
}

#button_container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25%;
    padding: 10px 0;
}

#start_button {
    background-color: #888888;
    width: 50%;
    height: 100%;
    font-size: 1.5em;
    border: none;
    border-radius: 4px;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25),
    2.1px 2.1px 2.1px 2.1px rgba(0, 0, 0, 0.25), 
    1.2px 1.2px 1.2px 1.2px rgba(0, 0, 0, 0.25), 
    .1px .1px .1px .1px rgba(0, 0, 0, 0.25);
}

#add_task_container {
    background-color: var(--generic-white);
    display: flex;
    flex-direction: row;
    padding: 10px;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    min-height: 80px;
    border-radius: 6px;
}

#task_input {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    width: 70%;
    height: 50%;
    font-size: 1.1em;
    padding-inline-start: 4px;
    outline: none;
}

#task_input::placeholder {
    font-style: italic;
    font-size: 1.05em;
    user-select: none;
}

#add_task_button {
    background-color: #888888;
    width: 25%;
    height: 100%;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25),
    2.1px 2.1px 2.1px 2.1px rgba(0, 0, 0, 0.25), 
    1.2px 1.2px 1.2px 1.2px rgba(0, 0, 0, 0.25), 
    .1px .1px .1px .1px rgba(0, 0, 0, 0.25);
}

.itens {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-radius: 6px;
    background-color: var(--generic-white);
    min-height: 30px;
    box-shadow: 1px 1.5px 2px .5px rgba(0, 0, 0, 0.25);
}

.itens:nth-child(even) {
    background-color: var(--generic-black);
}

.itens:nth-child(even) p {
    color: var(--generic-white);
}

.gg-trash_container {
    display: flex;
    background-color: gray;
    border-radius: 0 6px 6px 0;
    width: 25%;
    align-items: center;
    justify-content: center;
}

.gg-trash:hover {
    cursor: pointer;
}

.line_through {
    text-decoration: line-through;
    font-style: italic;   
    opacity: .4;
}