* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  }

body {
background: #111;
color: white;
margin: 0;
min-height: 100vh;

display: flex;
justify-content: center;
align-items: center;

padding: 20px;

}

.container {
width: 100%;
max-width: 500px;

background: #1e1e1e;
padding: 25px;
border-radius: 18px;

box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

}

.header {
text-align: center;
margin-bottom: 20px;
}

h1 {
margin: 0;
font-size: 32px;
}

.header p {
color: #aaa;
margin-top: 8px;
}

textarea {
width: 100%;
min-height: 150px;
resize: vertical;

padding: 14px;
border-radius: 10px;
border: 1px solid #333;

background: #111;
color: white;

outline: none;
font-size: 16px;

}

textarea:focus {
border-color: #00ff88;
}

.row {
display: flex;
gap: 12px;
align-items: center;

margin-top: 12px;

}

#countInput {
flex: 1;

padding: 14px;
border-radius: 10px;
border: 1px solid #333;

background: #111;
color: white;

outline: none;
font-size: 15px;

}

#countInput:focus {
border-color: #00ff88;
}

.check {
display: flex;
align-items: center;
gap: 6px;

white-space: nowrap;
cursor: pointer;
font-size: 15px;

}

.btn-green,
.btn-white {
width: 100%;
padding: 14px;

margin-top: 14px;

border: none;
border-radius: 10px;

font-size: 16px;
font-weight: bold;

cursor: pointer;

transition: transform 0.2s, opacity 0.2s;

}

.btn-green:hover,
.btn-white:hover {
transform: scale(1.02);
}

.btn-green:active,
.btn-white:active {
transform: scale(0.98);
}

.btn-green {
background: #00d976;
color: #111;
}

.btn-white {
background: white;
color: #111;
}

#output {
background: #090909;
color: #00ff88;

min-height: 150px;
max-height: 300px;
overflow-y: auto;

margin-top: 18px;
padding: 15px;

border: 1px solid #333;
border-radius: 10px;

white-space: pre-wrap;
word-break: break-word;

font-size: 15px;
line-height: 1.6;

}

footer {
text-align: center;

margin-top: 20px;
padding-top: 15px;

border-top: 1px solid #333;

color: #aaa;
font-size: 13px;

}

@media (max-width: 480px) {

body {
    padding: 12px;
    align-items: flex-start;
}

.container {
    padding: 18px;
    margin-top: 15px;
}

h1 {
    font-size: 26px;
}

textarea {
    min-height: 130px;
}

.row {
    flex-direction: column;
    align-items: stretch;
}

.check {
    padding: 5px 0;
}

#output {
    min-height: 130px;
}

}