:root {
    --light: #f2f2f2;
    --shadow: lightgrey;
    --blue: #2f80ed;
    --bluehover: #448EEF;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    background-color: var(--light);
}

h1 {
    
    margin-top: 50px;
    margin-bottom: 50px;
}

button:hover {
    opacity: 0.75;
    cursor: pointer;
}


#container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#input-div {
    margin-bottom: 50px;
}

#input {
    border: none;
    border-radius: 0.5rem;
    outline: none;
    padding: 0.5rem;
    box-shadow: 1px 1px var(--shadow);
}

#submit-activity {
    border: none;
    background-color: var(--blue);
    color: white;
    border-radius: 6px;
    width: 80px;
    height: 1.8rem;
    box-shadow: 1px 1px var(--shadow);
}

.activity-item {
    margin-bottom: 10px;

    height: 50px;
    width: 600px;
    border-radius: 6px;

    display: flex;
    justify-content: flex-end;

    background-color: #e0e0e0;
}

.activity-text {
    outline: none;
    border: none;
    background: none;
    margin-left: 20px;
    margin-right: auto;
    justify-self: flex-start;
    align-self: center;
}

.edit-button {
    border: none;
    width: 50px;
    border-radius: 6px;
    color: white;
    background-color: lightcoral;

    justify-self: end;
    cursor: pointer;
}


.done-button {
    border: none;
    width: 80px;
    border-radius: 6px;
    color: white;
    background-color: #00C600;
    cursor: pointer;
}

@keyframes text-disappear {
    50% {
        color: var(--light);
    }
    100% {
        color: var(--light);
    }
}

@keyframes text-appear {
    0% {
        color: var(--light);
    }
    100% {
        color: black;
    }
}

@keyframes disappear {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        margin-bottom: 0;
        opacity: 0;
        visibility: hidden;
        height: 0;
        
    }
}

@keyframes appear {
    0% {
        margin-bottom: 0;
        opacity: 0;
        visibility: hidden;
        height: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

#fadeout {
    animation-name: disappear;
    animation-duration: 2s;
}

#textfadeout {
    animation-name: text-disappear;
    animation-duration: 2s;
}

#fadein {
    animation-name: appear;
    animation-duration: 1s;
}

#textfadein {
    animation-name: text-appear;
    animation-duration: 1s;
}

