* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    background-color: #f3f3f3;
}

.app-container {
    margin: 0 auto;
    width: 900px;
    font-family: "Poppins", sans-serif;
    color: #444;
    min-height: 100vh;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: center;
    align-content: center;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

.header-container {
    padding: 25px;
}

/* MAIN */
.timeline {
    display: flex;
    width: 850px;
    justify-content: center;
    /* align-content: center; */
    position: relative;
    max-width: 100rem;
    margin: 2rem auto;
    gap: 2rem;
    opacity: 100;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 1rem;
    border: 1px solid rgb(164, 164, 164);
    overflow: hidden;
}

.timeline-item {
    display: flex;
    width: 850px;
    padding: 2.25rem 4rem;
    flex-direction: column;
    /* align-items: center; */
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.date-container {
    padding: 0.5rem;
    width: inherit;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* .timeline__date,
.timeline__time {
    pointer-events: none;
} */

.timeline__date,
.timeline__time,
.item-title {
    display: flex;
    padding: 0.1em;
    font-size: 1.3rem;
    font-weight: 500;
    color: #666;
    font-weight: bold;

}

.item-title,
.timeline__date,
.timeline__time {
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    text-indent: 0.5em;
}

.timeline__value {
    resize: none;
    overflow-y: hidden;
    font-size: 1.7rem;
    width: 100%;
    height: 100%;
    border: 3px solid white;
    border-radius: 15px;
    padding-right: 1em;
    padding-left: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
    cursor: pointer;
}



.timeline__value:focus {
    border: 3px solid #555;
}

.item-title::placeholder {
    text-transform: lowercase;
}

.timeline__value::placeholder {
    text-align: center;

}

.selected {
    background-color: rgb(240, 240, 240);
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2)
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.btns {
    margin-top: 2rem;
    width: 30px;
}

.btns:hover {
    cursor: pointer;
    transform: scale(1.3, 1.3);
}

.btn-title-container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 13px;
    gap: 2rem;
}

.edit-title,
.save-title,
.add-title,
.trash-title {
    width: 30px;
    height: 30px;
}

/* .timeline .selected {
    animation-name: fadeOut;
    animation-duration: .2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.44, .04, 1, .11);
    pointer-events: none;
    cursor: unset;
} */

#container span {
    pointer-events: none;
}

.tooltip {
    position: relative;
}

.tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@keyframes fadeOut {
    100% {
        opacity: .5;
        height: 0px;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
}

.copywright {
    font-weight: 600;
}


.footer {
    position: absolute;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    min-width: 100%;
    overflow: hidden;
}

.footer-content {
    text-align: center;
    line-height: 26px;
    overflow: hidden;
}

@media all and (max-width: 900px) {
    .footer {
        width: 900px;
    }

}

@media all and (max-width: 300px) {

    h1 {
        font-size: 50px;
    }

    .btns {
        width: 100px;
    }

    /* input:placeholder-shown {
        font-size: 2em;
    } */

    .timeline-item {
        display: flex;
        width: 700px;
        justify-content: center;
        /* align-content: center; */
        position: relative;
        margin: 2rem auto;
        gap: 2rem;
        opacity: 100;
    }

    .btn-title-container {
        font-size: 45px;
    }

    .edit-title,
    .save-title,
    .add-title,
    .trash-title {
        width: 100px;
        height: 100px;
    }
}