html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    background: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0 20px;
}

h2 {
    margin-top: 30px;
    color: #0078d7;
    text-shadow: 1px 1px 2px #ccc;
}

form {
    margin: 20px 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

input[type="text"] {
    flex: 1 1 300px;
    max-width: 600px;
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid #0078d7;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #005a9e;
    outline: none;
}

button {
    background-color: #0078d7;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

button:hover {
    background-color: #005a9e;
}

/* README alanı */

.readme-container {
    max-width: 900px;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.15);
    border-radius: 8px;
    background: white;
}

pre#readmeContent {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    max-height: 500px;
    margin: 0;
}

#copyBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #61dafb;
    border: none;
    color: #282c34;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgb(0 0 0 / 0.2);
    transition: background-color 0.3s ease;
    user-select: none;
}

#copyBtn:hover {
    background-color: #21a1f1;
}

.error-message {
    color: #d93025;
    font-weight: 600;
    margin-bottom: 15px;
    max-width: 600px;
    text-align: center;
}

footer {
    width: 100%;
    max-width: 900px;
    margin-top: auto;
    padding: 15px 10px;
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.footer-left {
    flex: 1 1 200px;
}

.footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1 1 200px;
    justify-content: flex-end;
}

.ad-area {
    background: #e8f0fe;
    border: 1px solid #c6dafc;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #084298;
    max-width: 900px;
    margin-bottom: 25px;
    text-align: center;
}

.coffee-btn {
    display: inline-block;
    background: #ff813f;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.coffee-btn:hover {
    background: #e76e24;
}

@media (max-width: 600px) {
    button, input[type="text"] {
        flex: 1 1 100%;
    }

    footer {
        padding: 10px 5px;
        text-align: center;
    }
    .footer-right {
        justify-content: center;
        flex: 1;
    }
    .coffee-btn {
        max-width: 100%;
        padding: 6px 12px;
    }

    #copyBtn {
        padding: 10px 20px;
        font-size: 1rem;
    }

}