body {
   display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center; 
    height: 100vh;
    background-color: #f8f9fa;
    margin: 0;
	
}

#login-screen, #chat-screen, #iframe-screen {
    width: 100%;
    max-width: 400px; 
    margin: 0;
    padding-top: 10px;
	
}

#messages {
    height: 500px;
    overflow-y: scroll;
    border: 1px solid #00c6ff;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 6px 8px rgba(0, 191, 255, 0.3);
    font-family: 'Arial', 'Helvetica', 'Verdana', sans-serif;
    font-size: 17px;
     
    position: relative;
}
.gece-modu #messages {
	 position: relative;
    background-color: #222;  
    color: gray; 
}

.gece-modu::after {
    content: "";  /* Boş içerik   */
  position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);  /* %30 karanlık, siyah arka plan */
    z-index: 99999;  /* Katmanı en alta yerleştir*/
	pointer-events: none;
}


.message {
    margin-bottom: 10px;
    position: relative;
    opacity: 0;
    transform: translateX(100%);
    animation: slide-in 0.8s forwards;
    border: 2px solid #000;
    background-color: #fffde7;
    border-radius: 13px;
    padding: 5px;
    margin: 10px 0;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
}

.gece-modu .message {
    background-color: #333;   
    color: gray;
}

@keyframes slide-in {
    to {
        opacity: 2; 
        transform: translateX(0); 
    }
}

.message-author {
    font-weight: bold;
}

.message-author.KRAL {
    color: red;
    font-weight: bold;
}

.message-author.KRALİÇE {
    color: #d63384;
}

.message-author.Yeniçeri {
    color: #007bff;
}

.message-author.KapıKulu {
    color: #0056b3;
}

.message-status {
    font-size: 8pt;
    margin-left: 5px;
}

.seen {
    color: green;
}

.not-seen {
    color: red;
}

.hidden {
    display: none;
}

.thumbnail {
    max-width: 100px;
    max-height: 100px;
    margin-right: 10px;
}

.file-preview {
    margin-bottom: 10px;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

@keyframes brightness-change {
    -0% {
        filter: brightness(100%);
    }
    50% {
        filter: brightness(150%);
    }
    100% {
        filter: brightness(100%);
    }
}

.login-header img {
    max-width: 1380px;
    max-height: 778px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(173, 216, 230, 1), 0 0 40px rgba(173, 216, 230, 0.5);
    object-fit: cover;
    animation: brightness-change 3s ease-in-out infinite; 
}

.login-header h1 {
    font-size: 1.25rem;
    margin: 10px 0 0;
}

.chat-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.chat-header img {
    width: 280px;
    height: 105px;
	box-shadow: 0 0 20px rgba(173, 216, 230, 1), 0 0 40px rgba(173, 216, 230, 1);
    object-fit: cover;
	    border-radius: 15px;
		
}

.chat-header h4 {
    font-size: 1rem;
    margin: 10px 0 0;
}

.poweredBy {
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 10px;
    text-align: center;
}

.poweredBy a {
    color: #007bff;
    text-decoration: none;
}

.poweredBy a:hover {
    text-decoration: underline;
}

.quote-message {
background-color: #ede7f6; /* Açık mor */

    border: 1.5px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 15px;
}

.reply-message {
    background-color: #ffffe0;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    margin-top: -10px;
}

.quote-button img {
    width: 40px;
    height: 22px;
}

.quote-button {
    font-size: 7pt;
    color: blue;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 0;
}

.italic {
    font-style: italic;
}

#persistent-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: red;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 1000;
}

#persistent-message.hidden {
    display: none;
}

#persistent-message-content {
    margin-right: 20px;
    display: inline-block;
}

#remove-persistent-message {
    background: white;
    border: none;
    color: red;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 16px;
}

.input-group {
    border: 1px solid #00c6ff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 191, 255, 0.3);
}

#upload-form {
    border: 1px solid #00c6ff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 191, 255, 0.3);
}
@media (prefers-color-scheme: dark) {
    #save-button {
        filter: brightness(2);  
    }
}
	
			#overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10%;
    height: auto;
    opacity: 0.2;  
    pointer-events: none;  
    z-index: 10;  
    display: flex;
    justify-content: center;
    align-items: center;

}

#chat-screen {
  
	    padding: 0;         
    margin-top: 0;       
}

#typing-indicator {
    position: absolute;
    bottom: 58px;
    right: 4px;
    background-color: #FF0000;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #333;
    z-index: 1000;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#typing-indicator.hidden {
    display: none;
}

.hunkar-text-left {
    text-align: right;
}

.top-images {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 9px;
}

.top-images img {
    width: 33px;
    height: 33px;
    cursor: pointer;
}


#info-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 1);
    border: 1.2px solid #ccc;
    padding: 10px;
    width: 350px;
    max-width: 90%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 9px;
    font-size: 12px; 
    line-height: 1.2; /* Satır aralığı */
}

.popup-content h2,
.popup-content h3 {
    margin: 0 0 5px; /* Başlıklar arasındaki boşluğu azalt */
    font-size: 14px; /* Başlıkların yazı puntosu 10 piksel */
    line-height: 1.2; /* Satır aralığı */
}

.popup-content ul {
    padding-left: 20px;
    list-style-type: disc;
    font-size: 13px; /* Liste yazı puntosu */
    line-height: 1.2; /* Satır aralığı */
}

.popup-content button {
    margin-top: 10px;
    padding: 10px 10px;
    background-color: #007bff; 
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px; /* Buton yazı puntosu */
}

.popup-content button:hover {
    background-color: #0056b3; /* Hover rengi */
}

.hidden {
    display: none;
}

#info-popupses {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 1);
    border: 1.2px solid #ccc;
    padding: 10px;
    width: 350px;
    max-width: 90%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 9px;
    font-size: 12px; 
    line-height: 1.2; /* Satır aralığı */
}

.popup-content h2,
.popup-content h3 {
    margin: 0 0 5px; /* Başlıklar arasındaki boşluğu azalt */
    font-size: 14px; /* Başlıkların yazı puntosu 10 piksel */
    line-height: 1.2; /* Satır aralığı */
}

.popup-content ul {
    padding-left: 20px;
    list-style-type: disc;
    font-size: 13px; /* Liste yazı puntosu */
    line-height: 1.2; /* Satır aralığı */
}

.popup-content button {
    margin-top: 10px;
    padding: 10px 10px;
    background-color: #007bff; 
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px; /* Buton yazı puntosu */
}

.popup-content button:hover {
    background-color: #0056b3; /* Hover rengi */
}

.hidden {
    display: none;
}

 #guncellemeMesaji {
            display: none;
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background-color: gold;
            border: 3px solid #ccc;
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
            z-index: 1000;
            text-align: center;
            border-radius: 11px; 
 width: 100%;			
        }
        #overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 999;
        }
		
		
		
		.muhafiz-mesaji {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: gold;
    color: black;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    font-size: 1.2em;
   font-family: 'Arial', 'Helvetica', 'Verdana', sans-serif;
    z-index: 9999;
    width: 90%;
    max-width: 400px;
	            border: 3px solid #ccc;
}






.gece-modu {
    background-color: #121212;
    color: white;
}

.gece-modu .top-images img {
  filter: invert(1) grayscale(0.5) brightness(0.6);
}

.gece-modu .sohbet-karti {
    background-color: #333;
    color: #ccc;
    border: 1px solid #555;
}

.gece-modu .input-group input {
    background-color: #444;
    color: white;
}

.gece-modu button {
    background-color: #555;
    color: white;
}

 
.gece-modu #info-popup,
.gece-modu #info-popupses,
.gece-modu #guncellemeMesaji,
.gece-modu .muhafiz-mesaji {
    background-color: #333;
    color: white;
    border: 1px solid #555;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.gece-modu .popup-content h2,
.gece-modu .popup-content h3 {
    color: #f8f9fa;
}

.gece-modu .popup-content button {
    background-color: #555;
    color: white;
    border-radius: 7px;
    padding: 10px 20px;
}

.gece-modu .popup-content button:hover {
    background-color: #777;
}

.gece-modu .popup-content ul {
    color: #ddd;
}

.gece-modu .popup-content p {
    color: #ccc;
}

.gece-modu #persistent-message {
    background-color: #444;
    color: white;
    border: 1px solid #555;
}

.gece-modu #overlay {
    background-color: rgba(0, 0, 0, 0.7);
}
.gece-modu #save-button {
filter: grayscale(100%) invert(1) brightness(1.5);}
