/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Zilla+Slab:wght@400;700&display=swap');


body {
    font-family: 'Kalam', cursive, 'Zilla Slab', serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    margin: 0; 
    overflow-x: hidden; 
    background-image: url('city.gif'); 
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
}

#notification {
      position: fixed;
      top: 20px;
      right: 20px;
      background-color: #323232;
      color: white;
      padding: 1rem 1.5rem;
      border-radius: 5px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
      z-index: 1000;
    }

    #notification.show {
      opacity: 1;
      pointer-events: auto;
    }

.container {
    max-width: 900px; 
    margin: auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%; 
    box-sizing: border-box; 
}

h1 {
    text-align: center;
    color: #141414;
    margin-bottom: 20px;
}


form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    padding: 14px;
    border: 2px solid #ccc;
    border-radius: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    border-color: #5cb85c;
    box-shadow: 0 0 8px rgba(92, 184, 92, 0.7);
    outline: none;
}

button {
    padding: 12px;
    background-color: #131313;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #a0a0a0;
    transform: translateY(-2px);
}

#search {
    margin: 20px 0;
}

#messages {
    margin-top: 20px;
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    justify-items: center; 
    align-items: center; 
}

#messages div {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    background-color: #f9f9f9;
    transition: transform 0.3s;
    width: 90%;
    box-sizing: border-box; 
}

#messages div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#messages strong {
    display: block;
    margin-bottom: 5px;
    color: #7c0025;
    font-weight: 700;
}

#messages p {
    margin: 0;
    font-size: 20px;
    color: #555;
}

.preview-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff00;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-height: 400px;
    
}

.preview-messages {
    display: flex; 
    overflow-x: auto; 
    gap: 10px; 
    padding: 10px 0; 
    max-height: 200px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}


.preview-messages span {
    display: flex; 
    flex-direction: column; 
    padding: 10px;
    border-radius: 5px;
    background: #e9f5e9;
    transition: background 0.4s;
    max-width: 350px; 
    flex: 0 0 auto; 
    overflow-wrap: break-word; 
    white-space: normal; 
    animation: slide 20s linear infinite; 
    
}

.preview-messages span:hover {
    background: #d4edda;
}


@keyframes slide {
    from { transform: translateX(50%); }
    to { transform: translateX(-700%); }
}

p {
    font-size: small;
}

.copyright-footer {
    background-color: #2c2c2c; 
    color: white; 
    text-align: center; 
    padding: 15px 0; 
    font-size: medium; 
    position: relative; 
    width: 100%; 
    border-radius: 15px;
}

.copyright-footer p {
    margin: 0; 
}

.view-developers-btn {
      background: linear-gradient(135deg, #171717, #252525);
      color: white;
      border: none;
      padding: 5px 30px;
      border-radius: 10px;
      font-size: 1rem;
      cursor: pointer;
      text-decoration: none;
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease-in-out;
    }

    .view-developers-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
      background: linear-gradient(135deg, #2b2b2b, #353535);
    }

    .view-developers-btn:active {
      transform: scale(0.98);
    }

    .discord-button {
      display: inline-flex;
      align-items: center;
      background-color: #5865F2;
      color: white;
      padding: 12px 20px;
      font-family: 'Segoe UI', sans-serif;
      font-size: 16px;
      font-weight: bold;
      border: none;
      border-radius: 8px;
      text-decoration: none;
      transition: background-color 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .discord-button:hover {
      background-color: #4752C4;
    }

    .discord-button svg {
      width: 24px;
      height: 24px;
      margin-right: 10px;
      fill: white;
    }


@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 10px; 
        width: 100%;
    }

    form {
        width:100%;
    }

    h1 {
        font-size: 1.5em; 
    }


    input, textarea {
        padding: 10px; 
        width: 100%; 
    }

    button {
        padding: 10px; 
        width: 100%; 
    }

    #messages {
        display: grid;
        grid-template-columns: 1fr; /* FORCE SINGLE COLUMN */
        gap: 15px;
        max-width: 100%;
        overflow: hidden; /* NO SCROLL */
    }

    .message-iframe {
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
}

    #messages div {
        padding: 10px; 
        max-width: 300px; 
        box-sizing: border-box; 
    }

    .preview-messages span {
        max-width: 300px; 
        word-wrap: break-word; 
        white-space: normal; 
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2em; 
    }

    .copyright-footer {
        font-size: small; 
    }
}
