* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background: rgb(36, 36, 36);
    color: #ffffff;
    font-weight: bold;
    font-size: 30px;
    width: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #0f1720;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 40px 20px;
    line-height: 1.6;
}

#textbox {
    width: 50%;
    height: 225px;
    resize: vertical;
    background-color: #303338;
    color: #ffffff;
    border: 2px solid #adadad;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.1rem;
    font-family: inherit;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#textbox:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(180, 180, 180, 0.25);
}

#wordcountbox {
    background-color: transparent;    
    border: none;
    color: #c5c5c5;
    font-size: 1.2rem;
    font-weight: bold;
    width: 110px;
    outline: none;
    text-align: center;
    padding-top: 5px;
}

#resetbtn {
    background-color: #374151;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

#resetbtn:hover {
    background-color: #4b5563; 
}

#resetbtn:active {
    transform: scale(0.97); 
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    max-width: 100%;
    margin: 0 auto;
}

.footer {
    position: sticky;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgb(36, 36, 36);
    padding: 15px 20px;
}

#footerIMG {
    display: block;
    height: 20px;
    width: 20px;
}

#footerIMG2 {
    display: block;
    height: 32px;
    width: 32px;
    margin-top: 5px;
}

#footerIMG:hover, #footerIMG2:hover {
    filter: invert(1) opacity(1);
}