.titlebar {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    text-align: left;
    padding-left: 10px;
    z-index: 10000;
    transition: opacity 0.5s ease-in-out;
}

.titlebar h1 {
    margin: 0;
    font-weight: 900;
    font-size: 2.5em;
    line-height: 1;
    padding-top: 12px;
    transition: font-weight 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.titlebar h1:hover {
    font-weight: 700;
}

.titlebar-large {
    font-weight: 900;
    word-wrap: none;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-medium {
    font-weight: 900;
}

.title-small {
    font-weight: 900;
    word-wrap: none;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

@media (min-width: 420px) {
    .title-small {
        display: none;
    }
}

@media (max-width: 710px) {
    .title-large {
        display: none;
    }
}

@media (min-width: 710px) {
    .title-large {
        display: block;
    }
    .title-medium {
        display: none;
    }
}

@media (max-width: 420px) {
    .title-large {
        display: none;
    }
    .title-medium {
        display: none;
    }
    .title-small {
        display: block;
    }
}

@media (max-width: 350px) {
    .title-large {
        display: none;
    }
    .title-medium {
        display: none;
    }
    .title-small {
        display: none;
    }
}