body {
    margin: 0px;
    padding: 0px;
    font-family: 'Times New Roman', Times, serif;
}
pre {
    max-height: 200px;
    overflow: auto;
}
.player {
    width: 100vw;
    height: 100vh;
    margin: 0px;
    padding: 0px;
    display: table-cell;
    vertical-align: middle;
}
.toolbar {
    padding: 0px;
    margin-bottom: 5px;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    line-height: 40px;
}
.toolbar > div {
    display: inline-block;
}
.app-title {
    float: left;
    font-size: 1.5em;
    color: #fff;
    text-shadow: 2px 2px 1px #444, -2px -2px 1px #444, -2px 2px 1px #444, 2px -2px 1px #444;
}
.app-title > img {
    border-radius: 99%;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px;
}
.playback-toolbar {
    float: right;
}
#karaoke {
    text-align: center;
    font-size: 28pt;
    padding: 10px;
    transition: linear 0.2s;
}
button,
input[type='file'] {
    height: 30px;
    border-radius: 7px;
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: linear 0.5s;
}
button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
input[type='file'] {
    width: 100%;
}
.footer {
    height: 40px;
    text-align: center;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: row;
}
.footer-text {
    width: 100%;
    margin: auto;
}
#songbutton {
    margin: 4px;
}
#footer button {
    width: 200px;
}

.dialog {
    text-align: center;
    position: fixed;
    bottom: 40px;
    width: 100%;
    transition: linear 0.4s;
}
.hidden {
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}
.visible {
    opacity: 1;
    z-index: 9999;
    pointer-events: auto;
}
.dialog .dialog-content {
    margin: 20px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 7px;
    max-height: 80vh;
    max-width: 400px;
    overflow: auto;
}
.dialog .option {
    width: 32%;
    display: inline-block;
    cursor: pointer;
}
.dialog .song {
    cursor: pointer;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 9px;
    margin: 4px;
    color: #666;
}
.dialog .song:hover {
    color: #000;
    background-color: rgba(255, 255, 255, 0.8);
}
.dialog .option .karaoke {
    font-size: 20px;
    height: 80px;
}
.dialog .list-header {
    position: sticky;
    top: -1px;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    margin: 0px;
    border-radius: 9px 9px 0px 0px;
}

.fb-share-button {
    vertical-align: super;
}

#position {
    width: 18vw;
    min-width: 130px;
}
#time {
    padding: 8px;
    display: inline-block;
    text-align: center;
    width: 50px;
    color: #000;
}
@media (min-width: 1000px) {
    button {
        font-size: 22px !important;
        height: 35px;
    }
    #karaoke {
        font-size: 50px !important;
    }
    .footer {
        font-size: 26px !important;
    }
}

@media (max-width: 767px) {
    .toolbar {
        margin: 0px;
    }
    input[type='file'] {
        width: 90%;
    }
    .app-title {
        width: 99%;
    }
    .playback-toolbar {
        width: 99%;
    }
    .toolbar > div {
        display: block;
        text-align: center;
    }
    .footer-text {
        font-size: 12px;
    }
    #karaoke {
        font-size: 30px !important;
    }
    .footer {
        font-size: 16px !important;
    }
    #position {
        width: 30vw;
    }
}

@media (max-width: 479px) {
    #position {
        width: 60vw;
    }
}
/* Notification Styles */
.notification {
    position: fixed;
    top: 60px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    font-size: 14px;
}

.notification i {
    font-size: 20px;
    flex-shrink: 0;
}

.notification span {
    flex: 1;
    color: #333;
}

.notification button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    width: auto;
    height: auto;
    min-width: 20px;
    line-height: 1;
    margin: 0;
}

.notification button:hover {
    opacity: 1;
    background: none;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error i {
    color: #dc3545;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success i {
    color: #28a745;
}

.notification-info {
    border-left: 4px solid #007bff;
}

.notification-info i {
    color: #007bff;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-warning i {
    color: #ffc107;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .karaoke .active {
        background-color: yellow;
        color: black;
        font-weight: bold;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile notification adjustments */
@media (max-width: 767px) {
    .notification {
        top: auto;
        bottom: 60px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}
