@import "./styleSample.css";

body {
    margin: 0px;
    background-color: #323232;
}

#player {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: stretch;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    background-color: #323232;
}

#serverListFilterCell {
    width: 50px;
    max-width: 200px;
    cursor: pointer;
}

#serverListTableCell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#serverListTable { }

caption {
    font-size: 24px;
    color: white;
    text-decoration-line: underline;
    white-space: nowrap;
    padding-right: 100px;
    margin-top: 50px;
}

#playButton {
    width: 50px;
    max-width: 200px;
    cursor: pointer;
}

#infoCell {
    border: none;
    color: white;
    padding-top: 8px;
    padding-right: 100px;
    padding-left: 20px;
    padding-bottom: 2px;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

#infoCellActive {
    color: white;
    text-decoration: none;
    border: none;
    padding-top: 2px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 8px;
    text-align: left;
    display: inline-block;
    font-size: 16px;
}

#infoCellInactive {
    color: lightgray;
    font-style: italic;
    border: none;
    padding-top: 2px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 8px;
    text-align: left;
    display: inline-block;
    font-size: 16px;
}

#infoCellUnavailable {
    color: gray;
    font-style: normal;
    text-decoration: line-through;
    text-decoration-style: double;
    border: none;
    padding-top: 2px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 8px;
    text-align: left;
    display: inline-block;
    font-size: 16px;
}


#infoSessionTerminated {
    color: white;
    text-decoration: none;
    border: none;
    padding-top: 2px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 8px;
    text-align: left;
    display: inline-block;
    font-size: 20px;
}

#Video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#rtcButton, #disconnectButton, #getControlButton, #reInitButton {
    position: absolute;
    bottom: 10px;
    width: 120px;
    background-color: #000000;
    border: none;
    color: white;
    padding: 12px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
}

#disconnectButton { left: 50px; }

#reInitButton { left: 180px; }

#getControlButton { left: 310px; }

#statusLine {
    position: absolute;
    bottom: 10px;
    left: 440px;
    border: none;
    color: white;
    padding: 15px 20px 0px 20px;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.loadingBarDiv {
    position: absolute;
    bottom: 10px;
    left: 0px;
    width: 100%;
    border: none;
    display: inline-block;
}

.ldBar path.mainline {
    stroke-width: 3;
    stroke: lightgray;
    stroke-linecap: square;
}

.ldBar-label {
    color: darkgray;
    font-size: 0.5em;
    font-weight: 100;
    position: relative;
    bottom: 5px;
    /*display: none;*/
}

/*Circular only, seems so*/

.ldBar path.baseline {
    stroke-width: 140;
    stroke: white;
    stroke-linecap: round;
    filter: url(#custom-shadow);
}

/* The Overlay (background) */

.message-overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 80%;
    width: 80%;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 10%;
    top: 10%;
    background-color: rgb(0, 0, 0); /* Black fallback color */
    background-color: rgba(0, 0, 0, 0.88); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */

.message-overlay-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
    padding: 8px;
    text-decoration: none;
    font-size: 24px;
    color: #d9d9d9;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
}

/* Optional details */

.message-overlay details {
    text-align: left;
    margin-top: 50px;
    font-size: 16px;
}

/* When you mouse over the navigation links, change their color */

.message-overlay a:hover, .message-overlay a:focus { color: #f1f1f1; }

/* Position the close button (top right corner) */

.message-overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    color: #d9d9d9;
    text-decoration: none;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */

@media screen and (max-height: 450px) {
    .message-overlay a { font-size: 20px }

    .message-overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

/* ------ Styles for loading screen */

.loading-screen_background {
    margin: 0; /* Margin */
    padding: 0; /* Inner margin */
    background-color: #262626; /* background color */
}

/* Loading string */

.loading-screen_subtitle {
    position: absolute; /* Absolute positioning */
    top: 63%; /* From the top */
    left: 50%; /* From the left */
    transform: translate(-50%, -50%);
    width: 400px; /* width */
    height: 150px; /* high */
    background: transparent; /* Background color is transparent */
    text-align: center; /* The font is horizontally centered */
    line-height: 150px; /* Row height */
    font-family: sans-serif; /* Font style */
    font-size: 24px; /* font size */
    color: #fff000; /* colour */
    letter-spacing: 2px; /* Character spacing */
    /*text-transform: uppercase; /* All uppercase fonts */
    text-shadow: 0 0 10px #fff000; /* Font shadow */
    user-select: none; /* Cannot be selected */
    animation-name: animation_blink;
    animation-timing-function: ease-in;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.loading-screen_subtitle_2 {
    position: absolute; /* Absolute positioning */
    top: 75%; /* From the top */
    left: 50%; /* From the left */
    transform: translate(-50%, -50%);
    width: 500px; /* width */
    height: 150px; /* high */
    background: transparent; /* Background color is transparent */
    text-align: center; /* The font is horizontally centered */
    line-height: 24px; /* Row height */
    font-family: sans-serif; /* Font style */
    font-size: 20px; /* font size */
    color: #888888; /* colour */
    letter-spacing: 2px; /* Character spacing */
    /*text-transform: uppercase; /* All uppercase fonts */
    text-shadow: 0 0 2px #333333; /* Font shadow */
    user-select: none; /* Cannot be selected */
}

.loading-screen_ring {
    position: absolute; /* Absolute positioning */
    top: 50%; /* From the top */
    left: 50%; /* From the left */
    padding: 10px 10px 10px 10px;
    transform: translate(-50%, -50%); /* Relative to itself, the x, y axis moves */
    width: 120px; /* width */
    height: 120px; /* high */
    background: transparent; /* Background color is transparent */
    border: 3px solid #3c3c3c; /* Border */
    border-radius: 50%; /* Border rounded corners */
    text-align: center; /* The font is horizontally centered */
    line-height: 150px; /* Row height */
    font-family: sans-serif; /* Font style */
    font-size: 20px; /* font size */
    color: #fff000; /* colour */
    letter-spacing: 4px; /* Character spacing */
    text-transform: uppercase; /* All uppercase fonts */
    text-shadow: 0 0 10px #fff000; /* Font shadow */
    user-select: none; /* Cannot be selected */
}

/* Yellow long line */

.loading-screen_ring::before {
    content: ''; /* Content */
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #fff000;
    border-right: 3px solid #fff000;
    border-radius: 50%;
    animation: animateCircle 1.5s linear infinite; /* Animation: name time rate repeat */
}

.loading-screen_rotation {
    display: block;
    position: absolute;
    top: calc(50% - 2px);
    left: 50%;
    width: 50%;
    height: 4px;
    background: transparent;
    transform-origin: left; /* Animation start position */
    animation: animate 1.5s linear infinite;
    transform: rotate(45deg);
}

.loading-screen_image {
    height: 105px;
    width: 105px;
    max-width: 105px;
    max-height: 105px;
    box-shadow: none !important;
}

.loading-screen_rotation::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff000;
    top: -8px;
    right: -8px;
    box-shadow: 0 0 20px #fff000;
}

@keyframes animate {
    100% {
        /* 360+45 */
        transform: rotate(405deg);
    }
}

@keyframes animateCircle {
    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }
}

@keyframes animation_blink {
    0% { opacity: 1; }

    50% { opacity: 0.5; }

    100% { opacity: 1; }
}