.log-entry {
    display: grid;
    grid-template-columns: 200px 200px auto;

    & .log-icon {
        position: relative;
        background-color: var(--theme-accent-2-base);
        border-radius: 64px;
        padding: 32px;
        margin: 32px;
        
        & img {
            z-index: 2;
            position: absolute;
            left: 20px;
            top: 20px;
        }
    
        &:before {
            position: absolute;
            content: '';
            left: 60px;
            top: 64px;

            z-index: -1;

            width: 512px;
            height: 16px;
            background-color: var(--theme-accent-2-base);
            overflow: visible;
        }

        &:after {
            position: absolute;
            content: '';
            left: 60px;
            top: 64px;
            z-index: -1;

            height: 256px;
            width: 16px;
            background-color: var(--theme-accent-2-base);
            overflow: visible;
        }

        &.unlinked {
            &:after {
                width: 0px;
            }
        }

        &.critical {
            background-color: var(--theme-alert-base);

            &:before {
                background-color: var(--theme-alert-base);
            }
        }

    }

    & .log-date {
        border: 4px solid var(--theme-accent-2-base);
        background-color: var(--theme-gray-dark);
        color: var(--theme-white);
        margin-top: 64px;
        margin-bottom: 64px;
        margin-left: 16px;
        margin-right: 16px;
        border-radius: 32px;  
        text-align: center;
        font-size: 18px;       
        padding: 8px;
        padding-top: 20px;

        &.critical {
            border-color: var(--theme-alert-base);
        }
    }

    & .log-body {
        border: 4px solid var(--theme-accent-2-base);
        background-color: var(--theme-gray-dark);
        color: var(--theme-white);
        padding: 16px;
        font-size: 18px;
        border-radius: 16px;         
        margin: 16px;

        &.critical {
            border-color: var(--theme-alert-base);
        }
    }

    &:nth-last-child(2) {
        & .log-icon {
            &:after {
                width: 0px;
                height: 0px;
            }
        }
    }
}

.story-log {
    position: relative;
    height: calc(100vh - 228px);
    
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: 80vh;

    overflow-y: scroll;
  
    row-gap: 32px;
  
    align-items: top;
    
    --mask: linear-gradient(
    to bottom, 
    rgba(0,0,0, 0) 0%,   
    rgba(0,0,0, 1) 20%, 
    rgba(0,0,0, 1) 80%, 
    rgba(0,0,0, 0) 100%
    );

    -webkit-mask: var(--mask); 
    mask: var(--mask);
}

input[type=button] {
    width: calc( 100% - 32px );
    margin-left: 16px;
    background: linear-gradient(var(--theme-gray-base), var(--theme-gray-dark));
    color: var(--theme-white);
    height: 32px;
    font-size: 18px;
}

.new-entry {
    background-color: var(--theme-gray-dark);
    border: solid 4px var(--theme-gray-base);
    margin: 16px;
    margin-top: 0px;
    max-height: 0px;
    transition: max-height 0.5s;
    height: fit-content;

    overflow: hidden;
    
    & input[type=submit] {
        width: 100%;
        background: linear-gradient(var(--theme-gray-light), var(--theme-gray-base));
        color: var(--theme-white);
        height: 32px;
        font-size: 18px;
    }
}

.log-container {
    width:100%;
    background-color:var(--theme-black);
    border:4px var(--theme-accent-1-dark) solid;
    border-left-width:0px;
    border-right-width:0px;
}
