
@import url('https://fonts.googleapis.com/css2?family=Markazi+Text:wght@400..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body { 
    font-family: 'Work Sans', sans-serif; 
    font-weight: 400;
    font-size: 1em;
    background: #111; 
    color: white; 
    margin: 0; 
    padding: 1em; 
    height: 90svh;
    display: flex;
    flex-direction: column;
    
}

a {
    color: rgb(30, 251, 255);
}

input{
    width:100%;
    height: 2.4em;
    background-color: white;
    border:2px solid #aaa;
    border-radius:0.3em;
    margin:8px 0;
    outline:none;
    padding:8px;
    box-sizing:border-box;
    transition:.3s;
}

input:focus{
    border-color:dodgerBlue;
    box-shadow:0 0 8px 0 dodgerBlue;
}



#notification {
    display: none;
    position: fixed;
    top: 1em;
    right: 1em;
    background-color: #f44336;
    color: white;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 9999;
}


.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}


#restart-chat-helper-button {
    padding: 1em; 
    width: max-content; 
    height: max-content; 
    border: none; 
    border-radius: 4px; 
    background-color: #007bff; 
    color: white; 
    cursor: pointer; 
    display: none;
}



.page-title {
    text-align: center;
    font-size: 2.1em;
    margin: 0.5em;
}

#streamer-settings-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5em;
    margin: 0.5em;

}


#streamer-settings-container .streamer-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5em;
    border: 0.5px solid transparent;
    border-radius: 0.3em;
    width: 30%;
    padding: 0.5em;
    
    transition: 1s;
}



#streamer-settings-container .streamer-settings .section-title {
    font-size: 1.5em;
}

#streamer-settings-container .streamer-settings:hover {
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    
}

#streamer-settings-container .streamer-settings .streamer-settings-details {
    margin: 0.5em;
    padding: 0.5em;
}

#streamer-settings-container .streamer-settings input {
    height: 3em;
    font-size: 1.2em;
}


#streamer-settings-container .streamer-settings #livestreamer-username-input {
    font-size: 1.8em;
    font-weight: 600;
    color: dodgerblue;
}


#streamer-settings-container .streamer-settings-button {
    border: none;
    margin-top: 4.5em;
    margin-bottom: 2.1em;
}

#streamer-settings-container .streamer-settings-button:hover {
    border: none;
}

#streamer-settings-container #livestreamer-chat-helper-settings-button {
    width: 100%;
    align-self: center;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.2em;
    color: white;
    height: 3em;
    border: 0.5px solid white;
    border-radius: 0.5em;
    background-color: rgba(109, 6, 154, 0.3)
}

#streamer-settings-container #livestreamer-chat-helper-settings-button:hover {
    background-color: rgba(109, 6, 154, 1);
}



.font-selection-container #font-selection-input {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-radius: 0.3em;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    margin-bottom: 1em;
    background-color: #fff;
    font-size: 1em;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    outline: none;
}



#font-selection-input:hover {
  background-color: #f9fafb;
}

#font-selection-input:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5), 0 0 #0000;
  border-color: #6366f1;
}



.color-selection-container {
    width: 90%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.bg-color-selection-container .bg-color-selection-inputs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.bg-color-selection-container .bg-color-selection-inputs .bg-color-selection-input-label {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 42%;
    margin: 0.5em;
}

#bg-alphaSlider {
    width: 6em;
    margin: 0.5em;
}

#bg-alphaValue {
    font-size: 1.2em;
}

#bg-colorPicker {
    width: 3em;
    min-height: 3em;
    border: none;
    padding: 0;
}


.bg-color-selection-container input[type="text"], .bg-color-selection-container input[type="range"] {
    padding: 5px;
    margin-top: 5px;
}





.fg-color-selection-container .fg-color-selection-inputs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.fg-color-selection-container .fg-color-selection-inputs .fg-color-selection-input-label {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 42%;
    margin: 0.5em;
}

#fg-alphaSlider {
    width: 6em;
    margin: 0.5em;
}

#fg-alphaValue {
    font-size: 1.2em;
}

#fg-colorPicker {
    width: 3em;
    min-height: 3em;
    border: none;
    padding: 0;
}


.fg-color-selection-container input[type="text"], .fg-color-selection-container input[type="range"] {
    padding: 5px;
    margin-top: 5px;
}



#colorBox {
    width: 200px;
    height: 100px;
    /* background-color: rgba(52, 152, 219, 1); */
    background-color: rgba(109, 6, 154, 0.6);
    /* border: 1px solid #ccc; */
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}




.rgba-display {
    margin-top: 0.5em;
    
}

.input-group {
    margin-top: 15px;
}



.error {
    color: red;
    font-size: 0.9em;
    display: none;
}




#chat-feed-container #livestreamer-username {
    border: 1px solid white;
    border-radius: 0.3em;
    margin-left: 0.6em;
    margin-right: 0.6em;
    padding: 0.3em;
}





#chat-helper-container {
    display: none;
} 



#all-chat-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}


#chat-feed-container {
    display: flex;
    flex-direction: column;
    max-height: calc(48svh);
    height: calc(48svh);
    min-width: 45em;
    width: 60%;
    background: rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    margin: 0.5em;
    padding: 0.5em;
}


#chat-feed-container .container-title {
    padding: 0.5em;
    margin: 0.5em;
}

#chat-container {
    overflow-y: auto;
}

#chat-container .chat-message-unit {
    padding: 0.5em; 
    margin: 0.5em 0;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 1.5em;
    cursor: pointer;
}

#chat-container .chat-message-unit:hover {
    background: rgba(153, 255, 0, 0.3);
}

#chat-container .msg-timestamp {
    color: gray;
}



#highlighted-msg-history-container {
    background-color: black;
    display: flex;
    flex-direction: column;
    max-height: calc(48svh);
    height: calc(48svh);
    min-width: 30em;
    width: 30%;
    background: rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    margin: 0.5em;
    padding: 0.5em;

}

#highlighted-msg-history-container .container-title {
    padding: 0.5em;
    margin: 0.5em;
}


#highlighted-chat-history-container {
    overflow-y: auto;
}


#highlighted-chat-history-container .highlighted-chat-message-unit {
    padding: 0.5em; 
    margin: 0.5em 0;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    cursor: pointer;
}

#highlighted-chat-history-container .highlighted-chat-message-unit:hover {
    background: rgba(0, 255, 238, 0.3);
}



#highlighted-message-container {
    height: 30svh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#highlighted-message {
    background: rgba(109, 6, 154, 0.6);
    padding: 1em 1.5em;
    border-radius: 1em;
    font-size: 3em;
    text-align: left;
    width: 60%;
    height: fit-content;
}

#highlighted-message{
    display: none;
}

#highlighted-message .chat-username {
    color: #00ff90;
    font-weight: bold;
}

#highlighted-message .chat-message {
    /*background-color: rgba(0,0,0,0.6); */
    padding: 0.6em 1em;
    border-radius: 0.6em;
    /* max-width: 600px; */
    font-family: 'Work Sans', sans-serif;
}


#scrollButton {
    position: fixed;
    /* bottom: 80px; */
    top: 45svh;
    left: 3em;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#scrollButton {
    display: none;
}



/* MOBILE RESPONSIVE */

@media (max-width: 700px) {

    body { 
        font-size: 0.6em;
        height: auto;
        padding: 0.3em;
    }

    #streamer-settings-container .streamer-settings {
        width: 90%;
    }

    #restart-chat-helper-button{
        padding: 0.3em;
        
    }

    #highlighted-msg-history-container{
        width: 81%;
    }

    #highlighted-chat-history-container .highlighted-chat-message-unit {
        font-size: 2.1em;
    }


    #highlighted-message-container {
        height: auto;
        
    }

    #highlighted-message {
        font-size: 1.2em;
        
    }


}