* {
    box-sizing: border-box;
    outline: none;
}

html,
body {
    margin: 0px;
    width: 100%;
    height: 100%;
    min-width: 1010px;
    min-height: 100px;
}

.title {
    font-family: arial;
    color: gray;
    text-align: center;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.homePage {
    margin: 0px;
    width: 100%;
    height: 100%;
    background-color: rgb(232, 236, 242);
}

.playPage {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0px;
    width: 100%;
    height: 100%;
    background-color: rgb(232, 236, 242);
}

.uploadForm {
    margin: 0 auto;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    border-radius: 15px;
    background-color: rgb(234, 232, 232);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(209, 208, 208);
    box-shadow: 0 0 3px 1px rgb(198, 197, 197);
}

#file-selector {
    width: 500px;
}

#file-selector::-webkit-file-upload-button,
#uploadBtn {
    cursor: pointer;
    width: 100px;
    Height: 25px;
    border-radius: 900px;
    border-style: solid;
    border-width: 1px;
    border-color: gray;
    background-color: white;
    font-size: 14px;
    color: rgb(75, 75, 75);
}

.play-area-wrapper {
    position: relative;
    width: 1000px;
    height: 85px;
    padding: 0px;
    border-radius: 15px;
    background-color: rgb(234, 232, 232);
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(209, 208, 208);
    box-shadow: 0 0 3px 1px rgb(198, 197, 197);
}

.timelinesWrapper,
.VolumeSettingsWrapper {
    position: absolute;
    appearance: none;
    cursor: pointer;
    height: 10px;
    background: none;
}

.timelinesWrapper {
    top: 15px;
    left: 20px;
    width: 959px;
    height: 10px;
    margin-right: 10px;
}

.VolumeSettingsWrapper {
    top: 50px;
    right: 20px;
    width: 70px;
    height: 10px;
}


#videoProgressBar,
#VolumeBar {
    position: absolute;
    top: 3px;
    left: 0px;
    z-index: 1;
    appearance: none;
    cursor: pointer;
    width: 100%;
    height: 5px;
    border-radius: 900px;
    margin-right: 10px;
    background: none;
}

#videoProgressBar::-webkit-progress-bar,
#VolumeBar::-webkit-progress-bar {
    border-radius: 900px;
}

#videoProgressBar::-webkit-progress-value,
#VolumeBar::-webkit-progress-value {
    background-color: rgb(67, 135, 252);
    border-radius: 900px;
}

#player-bar,
#VolumeSlider {
    position: absolute;
    top: 1px;
    left: 0px;
    z-index: 2;
    appearance: none;
    cursor: pointer;
    width: 100%;
    border-radius: 900px;
    margin: 0px;
    background: none;
}

#player-bar::-webkit-slider-runnable-track,
#VolumeSlider::-webkit-slider-runnable-track {
    appearance: none;
    height: 5px;
    padding: none;
    background: none;
    border-radius: 900px;
}

#player-bar::-webkit-slider-thumb,
#VolumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 30px;
    margin-top: -3px;
    background-color: rgb(67, 135, 252);
    padding: none;
}

#play-button {
    position: absolute;
    top: 40px;
    left: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 10000px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(120, 120, 120);
    background-color: white;
    background-image: url("playIcon.png");
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 15px;
}

#play-button:focus {
    outline: none;
}

#timeDisplay {
    position: absolute;
    top: 47px;
    left: 60px;
    font-size: 16px;
    font-family: arial;
    color: rgb(87, 87, 87);
    user-select: none;
}

.subtitleDisplay {
    width: 180px;
    height: fit-content;
    min-height: 16px;
    background: none;
    margin-right: 10px;
    overflow: hidden;
    position: absolute;
    top: 46px;
    left: 170px;
}

.subtitleTransitionCoverLeft {
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(to right, rgb(234, 232, 232), rgb(0, 0, 0, 0));
    z-index: 2;
}

.subtitleTransitionCoverRight {
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(to left, rgb(234, 232, 232), rgb(0, 0, 0, 0));
    z-index: 2;
}

#subtitleText {
    width: fit-content;
    font-size: 18px;
    font-family: arial;
    user-select: none;
    white-space: nowrap;
    z-index: 1;
}

#audioBtn {
    position: absolute;
    top: 40px;
    right: 100px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 10000px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(120, 120, 120);
    background-color: white;
    background-image: url("audio.png");
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 15px;
}

#loopBtn {
    position: absolute;
    top: 40px;
    right: 140px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 10000px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(120, 120, 120);
    background-color: white;
    background-image: url("loopIcon.png");
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 15px;
}

#download {
    position: absolute;
    top: 40px;
    right: 180px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 10000px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(120, 120, 120);
    background-color: white;
    background-image: url("downloadIcon.png");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 15px;
}

#closePlayerBtn {
    cursor: pointer;
    position: fixed;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    font-size: 25px;
    font-family: arial;
    color: rgb(82, 93, 138);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 0, 0, 0);
    background-image: none;
    border: none;
    border-radius: 5px;
}

#closePlayerBtn:hover {
    background-color: rgba(255, 0, 0, 0.659);
}