body {
    background-color: rgb(25, 25, 25);
    font-family: Arial, Helvetica, sans-serif;
}

.title {
    text-align: center;
    color: white;
    text-shadow: 0px 0px 3px white;
    font-size: 40px;
    font-weight: bold;
    margin: 0.5em auto;
}

.flexCenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.underline {
    text-decoration: underline 2px white;
}

label {
    user-select: none;
}

.container {
    position: relative;
    /*top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);*/
    margin: 0 auto;
    width: 95vw;
    height: 82vh;
    background-color: whitesmoke;
    border-radius: 12px;
    box-shadow: 0px 0px 6px white;
    display: grid;
    grid-template-columns: 22.5% 77.5%;
    grid-template-rows: 10% 90%;
    grid-template-areas: "a a"
                         "b c";
}

.list, .chat {
    justify-self: center;
    align-items: center;
    width: 95%;
    height: 94%;
    background-color: rgb(227, 227, 227);
    border-radius: 12px;
    box-shadow: 0px 0px 4px rgb(227, 227, 227);
}

.logout {
    position: fixed;
    top: 4%;
    right: 2.5%;
    width: 130px;
    height: 40px;
    display: block;
}

.logout input {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: red;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 0px 3px red;
    transition: 0.2s;
}

.logout input:hover {
    box-shadow: 0px 0px 8px red;
}

.logout input:active {
    transform: scale(0.95);
}

.list {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 100%;
    grid-template-rows: 6% 2% 45% 7% 30%;
}

.friends, .req_friends {
    justify-self: center;
    align-self: flex-start;
    background-color: whitesmoke;
    width: 95%;
    height: 100%;
    border-radius: 8px;
    overflow-y: auto;
    padding-bottom: 5px;
}

/* .friends {
    margin-top: 5px;
} */

.friends a {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-decoration: none;
    color: blue;
    font-weight: bold;
    transform: 0.2s;
}

.friends a:hover {
    color: rgb(66, 66, 252);
}

.friends a:active {
    color: rgb(255, 55, 0);
}

.friends div {
    width: 90%;
    height: 40px;
    background-color: rgb(232, 232, 232);
    text-align: center;
    border-radius: 8px;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.chat {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

.chat iframe.ifchat {
    width: 90%;
    height: 80%;
    display: block;
    border-radius: 8px;
    background-color: whitesmoke;
    border: 1px solid black;
    box-shadow: 0px 0px 6px rgba(0,0,0,0.8);
}

.ctool {
    width: 100%;
    height: 100%;
}

.toolbar {
    width: 90%;
    height: 72px;
    background-color: whitesmoke;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 10px;
    border-radius: 8px;
}

.yourId {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 14px;
    font-weight: bold;
    cursor: default;
}

#regSendAudio {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 87vw;
    max-width: 25em;
    height: 220px;
    border-radius: 12px;
    background-color: rgb(19, 18, 18);
    box-shadow: 0px 0px 8px black;
    display: none; /* grid */
    grid-template-columns: 100%;
    grid-template-rows: 20% 80%;
    cursor: default;
}

#regSendAudio h2.t1 {
    text-align: center;
    color: white;
    margin: 0;
    border-bottom: 2px solid white;
}

#regSendAudio #audioRecTools .audioRecState {
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: 100%;
    height: 40px;
}

#AudioRecState {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

#closeAudioRec {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: red;
    border: 2px solid red;
    color: white;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

#closeAudioRec:hover {
    background-color: white;
    color: black;
}

#closeAudioRec:active {
    transform: translate(-50%, -50%) scale(0.9);
}

#audioRecTools {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 20% 80%;
}

.onair {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: red;
}

#recspy {
    justify-self: center;
    align-self: center;
    display: none;
    opacity: 1;
    animation: blinker 1s linear alternate infinite;
}

#prevRecAudio {
    width: 75%;
    height: 80%;
    justify-self: center;
    align-self: center;
    display: none;
}

#audioRecTools .stopRecDiv {
    display: none;
}

.wrap {
    position: fixed;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
}

#startAudioRec { /*<i class="fa-solid fa-circle" id="recIcon"></i>*/
    height: 40%; /* Circle size */
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid red;
    background-color: red;
    box-shadow: 0px 0px 14px red;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

#startAudioRec:hover {
    box-shadow: 0px 0px 8px red;
}

#startAudioRec:active {
    transform: scale(0.9) !important;
}

#audioRecTools .stopRecDiv button {
    height: 40%; /* Square size */
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    margin: 5px;
    cursor: pointer;
    font-size: 180%;
    font-weight: bold;
    transition: 0.2s;
}

#audioRecTools .stopRecDiv button:active {
    transform: scale(0.95);
}

#sendRec {
    display: none;
}

#sendRec i {
    font-size: 87%;
}

#audioRecTools .audioRecButtons {
    display: flex;
    justify-content: center; /* stretch */
    align-items: center; /* stretch */
}

#audioRecTools .stopRecDiv {
    width: 100%;
    display: none; /* flex */
    justify-content: space-evenly;
    align-items: center;
}

#recIcon {
    color: black;
    font-size: 200%;
}

#regSendAudio button:disabled {
    opacity: 0.6;
}


@keyframes blinker {
    to {
        opacity: 0;
    }
}
