@import url(https://fonts.googleapis.com/css?family=Open+Sans);

html{
    /* display: flex; */
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
    background-color: #0A0A0A;
    color:#fefefe;
}

body{
    font-family:Open Sans,Arial;
    margin:2em auto;
    
    line-height:1.4;
    text-align:justify;
    
    /* display: flex; */
    /* align-items: center; */
    justify-content: center;
    
    /* width: 100%; */
}

a {
    text-decoration: none;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #0A0A0A;
    color: white;
}

.quote_title {
    font-size:2em;
    font-weight:bold;
}

.quote {
    /* margin-top: 52%; */
    margin: 10% auto auto;
    /* margin: auto; */
    font-size:32px;
    display: block;
    /* vertical-align: middle; */
}

.pool-choice-form {
    /* font-size: 22px!important; */
    margin-top: 8px!important;
    margin-bottom: 8px!important;
}

.pool-choice {
    border: 1px solid #ccc!important;
    border-radius: 4px;
    border-color: #fff!important;
    font-size: 22px!important;
    margin-top: 8px!important;
    margin-bottom: 8px!important;
}
.pool-choice span {
    width:100%;
    display:block;
    white-space: nowrap;
    font-weight: bolder;
    margin-left:5px;
    padding: 8px 16px;
}

.pool-container {
    margin: auto;
    font-size: 20px;
    color: #fefefe;
}

.chat-container {
    margin: auto;
    display: grid!important;
    gap: 20px;
    font-size: 20px;
    color: #fefefe;
    width: 40%;
}

.chat {
    --r: 25px; /* the radius */
    --t: 30px; /* the size of the tail */
    
    max-width: 400px;
    min-width: 80px;
    padding: calc(2*var(--r)/3);
    -webkit-mask: 
    radial-gradient(var(--t) at var(--_d) 0,#0000 98%,#000 102%) 
    var(--_d) 100%/calc(100% - var(--r)) var(--t) no-repeat,
    conic-gradient(at var(--r) var(--r),#000 75%,#0000 0) 
    calc(var(--r)/-2) calc(var(--r)/-2) padding-box, 
    radial-gradient(50% 50%,#000 98%,#0000 101%) 
    0 0/var(--r) var(--r) space padding-box;
}

.w3-input {
    border-bottom: none;
}

@media (max-width:600px){
    .chat-container { width: 100%; }
    .chat { max-width: 400px;}
    .quote {width: 90%; font-size:20px;}
}

@media (min-width:601px){
    .chat-container { width: 70%; }
    .chat { max-width: 500px;}
    .quote {width: 80%; font-size:26px;}
}
@media (min-width:993px){
    .chat-container { max-width: 50%; }
    .chat { max-width: 600px;}
    .quote {width: 70%;font-size:32px;}
}

.chat.you {
    --_d: 0%;
    border-left: var(--t) solid #0000;
    margin-right: var(--t);
    place-self: start;
    background: rgb(4, 128, 0) border-box;
}
.chat.me {
    --_d: 100%;
    border-right: var(--t) solid #0000;
    margin-left: var(--t);
    place-self: end;
    background: rgb(10, 96, 255) border-box;
}

.chat.none {
    border-radius: 15px;
    place-self: center;
    background: rgb(133, 133, 133) border-box;
}

.message-error{
    /* color: white; */
    background-color: #5f0000;
    border-left:6px solid #e60000;
}
.message-warning{
    /* color: white; */
    background-color: #4b4900;
    border-left:6px solid #eaff00;
}

.message-success{
    /* color: white; */
    background-color: #005300;
    border-left:6px solid #30d630;
}
.message-info{
    /* color: white; */
    background-color: #004279;
    border-left:6px solid #0084ff;
}


.color-accent {
    color:#e91e63!important;
}


#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}
