#sidebar {
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    margin-right: 30px;
}

#sidebar a {
    display: inline;
    padding: 5px 0px 5px 20px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    animation: pulseRed 3s infinite;
    font-family: 'Press Start 2P', cursive;
}

#sidebar a:hover {
    animation: pulseRedHover 2s infinite;
    color: #ff0101;
}

#sidebar input[type=text] {
    background-color: rgba(0,0,0,0);
    color: white;
    background-position: 10px 10px;
    background-repeat: no-repeat;
    width: 80%;
    margin: 10px;
    padding: 5px 5px 5px 15px;
    border-radius: 15px;
}

#sidebar .sub-item {
    font-family: 'Lemonada', cursive;
    font-size: 12px;
    padding: 1px 30px;
    color: white;
    animation: pulseBlue 3s infinite;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: '...';
}

#sidebar .sub-item:hover {
    animation: pulseBlueHover 2s infinite;
    color: #0199ff
}

@media screen and (max-height: 600px) {
    .sub-item-articles {
        display: none !important;
    }
}

@media screen and (max-height: 750px) {
    .sub-item-categories {
        display: none !important;
    }
}

@media screen and (max-height: 900px) {
    .sub-item-projects {
        display: none !important;
    }
}

@media screen and (max-width: 900px) {
    #sidebar {
        width: 60%;
        max-width: initial;
        margin: 10px auto;
        padding-bottom: 20px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 25px;
    }

    #sidebar #searchForm {
        text-align: center;
    }

    #sidebar a {
        text-align: center;
        padding: 5px 0px;
    }

    #sidebar .sub-item {
        display: none;
    }
}
