/*.container {*/
/*    width: 100%;*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*    padding: 20px;*/
/*}*/

header {
    background: #333; /* Warna latar belakang header */
    padding: 10px; /* Menambahkan jarak dalam header */
}

.main-content {
    display: none; /* The main content is initially hidden */
}
.centered-content {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.centered-alert {
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    z-index: 999;
    box-shadow: 20px 20px 22px rgba(0,0,0,0.2);
    color: #fcfcfc;
}

.centered-alert h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.centered-alert p {
    color: blue;
    font-size: 24px;
}

.centered-alert button {
    display:grid ;
    font-size: 20px;
    background-color: lightseagreen;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.container-pass{
  width: 31.25em;
  background-color: aliceblue;
  padding: 5em 3.75em;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 0.7em;
  box-shadow: 0 1em 4em rgba(71, 50, 4, 0.3);
  display: block;
}

input, #sender, #kodeUniq,
#submit {
  border: none;
  outline: none;
  display: block;
}
input, #sender, #kodeUniq
{
  width: 100%;
  background-color: transparent;
  margin-bottom: 2em;
  padding: 1em 0 0.5em 0.5em;
  border-bottom: 2px solid #202020;
}
#submit {
  position: relative;
  left: 0;
  font-size: 1.1em;
  width: 7em;
  background-color: #ffc13d;
  padding: 0.8em 0;
  margin-top: 2em;
  border-radius: 0.3em;
}

#message-ref {
  font-size: 0.9em;
  margin-top: 1.5em;
  color: #34bd34;
  visibility: hidden;
}

/*body {*/
/*            margin: 0;*/
/*            padding: 0;*/
/*            display: flex;*/
/*            justify-content: center;*/
/*            align-items: center;*/
/*            height: 100vh;*/
/*        }*/

/*.container-utama {*/
/*    max-width: 80%;*/
/*    background: #f5f5f5;*/
/*    padding: 20px;*/
/*}*/

/*.kotak {*/
/*    background: #e0e0e0;*/
/*    margin: 2px;*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
/*    width: 140vh;*/
/*    height: 90%;*/
/*}*/

.kotak {
    background: #e0e0e0;
    width: 95%;
    height: 90%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/*.container-utama {*/
/*display: flex;*/
/*    flex-direction: row;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    position: absolute;*/
/*    bottom: 2vh;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 5%;*/
/*    gap: 20px;*/
/*}*/

.info {
    display: flex;
    position: absolute;
    bottom: -71%;
    /* top: 48px; */
    left: 0px;
    gap: 30px;
}

.config{
    display: flex;
    position: relative;
    margin-bottom: -45px;
}


.sender{
    display:flex ;
    color: black;
}

.sender-container p {
    margin: 0; /* Menghilangkan margin dari elemen <p> */
}

.kodeUniq{
    display:flex ;
    color: black;
}

/* Media query untuk layar yang lebih kecil */
/*@media (max-width: 768px) {*/
/*    .sender, .kodeUniq {*/
        /*flex-direction: column;*/
/*    }*/
/*}*/

#logout {
    color: rgb(255, 255, 255);
    cursor: pointer;
    background: #FF0000;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease 0s;
    width: 95px;
}

#logout:hover {
    background: #8B0000; /* Warna latar belakang saat hover */
}

#deleteDataButton {
    color: rgb(255, 255, 255);
    cursor: pointer;
    background: #FFD700;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease 0s;
    width: 95px;
}

#deleteDataButton:hover {
    background: #DAA520; /* Warna latar belakang saat hover */
}


.container-input {
    text-align: center; /* Untuk mengatur teks ke tengah */
    /* Gaya lain yang Anda inginkan untuk container-input */
}

.me {
    position: relative;
    background: purple;
    /*color: red;*/
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2px;
    border-radius: 5px;
    max-width: 45%;
    word-wrap: break-word;
    align-self: flex-end;
    border: 2px solid white;
    left: 54%;
    margin-bottom: 5px; /* Menambahkan margin di bagian bawah pesan dari orang lain */
}

/*.me .you {*/
/*    color: red;*/
/*}*/

/*.me .message {*/
/*    color: white;*/
/*    text-align: left;*/
/*    position: relative;*/
    /* left: 28px; */
/*    display: inline-block;*/
/*    width: 173px;*/
/*}*/

.me .message {
    color: white;
    /* justify-content: flex-start; */
    padding: 4px;
    width: 97%;
    word-wrap: break-word;
    align-self: flex-start;
    margin-bottom: -4px;
    margin-left: 1vh;
    display: inline-block;
}



.me button {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 4px 4px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    position: absolute;
    right: 2%;
    bottom: 7%;
}

.notMe {
    display: flex;
    justify-content: flex-start; /* Untuk mengatur posisi pesan dari orang lain di kiri */
    padding: 5px; /* Padding agar ada jarak di dalam pesan */
    border-radius: 5px;
    max-width: 50%; /* Maksimum lebar pesan dalam container */
    word-wrap: break-word; /* Memastikan teks panjang tidak keluar dari pesan */
    align-self: flex-start; /* Untuk mengatur pesan dari orang lain di kiri */
    border: 2px solid lightgray; /* Menambahkan border di sebelah kiri */
    margin-bottom: 5px; /* Menambahkan margin di bagian bawah pesan dari orang lain */
}

.timestamp {
    color: yellow;
    /* float: left; */
    position: sticky;
    left: 30%;
    font-size: 11px;
    margin-left: 0px;
    margin-top: 10%;
    display: table-cell;
    position: relative;
}

.timestampAnon {
    position: absolute;
    color: white;
    /*float: right;*/
    right: 51%;
    font-size: 11px;
    /*margin-left: 221px;*/
    margin-top: 5px;
}


/*#messages {*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: -20px;*/
/*    width: 100%;*/
/*    height: 85%;*/
/*    background: #000;*/
    /*overflow-y: auto; */
/*    padding: 10px;*/
/*    box-sizing: border-box;*/
/*    background-color: #3CB371;*/
/*    border: 6px solid lightgray;*/
/*    border-radius: 15px;*/
/*    max-height: 100vh;*/
/*    overflow-y: scroll;*/
    /*scrollbar-color: #00c6ff #242942;*/
/*}*/

#messages {
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: -10px;
    width: 100%;
    height: 90%;
    background: #000;
    padding: 10px;
    box-sizing: border-box;
    background-color: #3CB371;
    border: 6px solid lightgray;
    border-radius: 15px;
    /*max-height: 85%;*/
    overflow-y: auto;
}

/* Media query untuk layar yang lebih kecil */
@media (max-width: 768px) {
    #messages {
        height: 95%; /* Sesuaikan tinggi dengan layar yang lebih kecil */
        border: 4px solid lightgray; /* Ubah border untuk layar yang lebih kecil */
        border-radius: 10px; /* Ubah border radius untuk layar yang lebih kecil */
    }
}

/* Media query untuk layar yang sangat kecil, misalnya ponsel */
@media (max-width: 480px) {
    #messages {
        height: 90%; /* Sesuaikan tinggi dengan layar ponsel */
        padding: 5px; /* Kurangi padding untuk layar yang sangat kecil */
    }
}

@media (max-width: 400px) {
    #messages {
        height: 95%; /* Sesuaikan tinggi dengan layar ponsel */
    }
}

@media (max-width: 100px) {
    #messages {
        height: 10%; /* Sesuaikan tinggi dengan layar ponsel */
    }
}

::-webkit-scrollbar {
  width: 1.2em;
  height: 100%;
  overflow-x: none;
}
::-webkit-scrollbar-track {
  border-radius: 0.5em;
  background: #242942;
  margin-block: 0em;
}
::-webkit-scrollbar-thumb {
  background: #00c6ff;
  background: -webkit-linear-gradient(to right, yellow, green);
  background: linear-gradient(to right, yellow, green);
  border-radius: 0.5em;
}

.container-input{
    position: fixed;
    left: 0;
    width: 98%;
    bottom: 50px;
}


/* Media query untuk layar yang lebih kecil */
@media (max-width: 768px) {
    section {
        padding: 10px; /* Sesuaikan padding untuk layar yang lebih kecil */
    }
}

/* Media query untuk layar yang sangat kecil, misalnya ponsel */
@media (max-width: 480px) {
    section {
        padding: 5px; /* Sesuaikan padding untuk layar ponsel */
    }
}


section {
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    bottom: 89px;
    width: -8%;
    height: 5%;
    background: #EEE;
    padding: 10px;
    position: absolute;
    bottom: 15px;
    width: 98%;
    border-radius: 10px;
    margin: 2px;
}

#sendMsg {
    display: flex;
    align-items: flex-start;
    bottom: -28px;
}

/*#sendMsg {*/
/*    position: relative;*/
/*    background: #AAA;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    bottom: -28px;*/
/*}*/

/*#msgTxt {*/
/*    position: relative;*/
/*    width: calc(100% - 100px);*/
/*    height: 100%;*/
/*    padding: 10px;*/
/*    box-sizing: border-box;*/
/*}*/

#msgTxt {
    flex: 1 1 0%;
    padding: 10px;
}

/*#msgBtn {*/
/*    width: 100px;*/
/*    height: 100%;*/
/*}*/

/* Tambahan: styling untuk input[type="submit"] */
/*#msgBtn {*/
/*    background: #333;*/
/*    color: #FFF;*/
/*    border: none;*/
/*    cursor: pointer;*/
/*}*/

#msgBtn {
    color: rgb(255, 255, 255);
    cursor: pointer;
    background: #00FF00;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease 0s;
    width: 95px;
}

/* Tambahan: styling untuk input[type="submit"] saat hover */
#msgBtn:hover {
    background: #32CD32;
}