﻿body {
    font-family: 'Arial', sans-serif;
    background-color: #0f151b;
    color: #8b949e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.element-container {
    flex-shrink: 0;
    padding-bottom: 10px;
}

.container {
    background-color: #0f151b;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 350px;
    border: 1px solid #1f6feb;
    transition: opacity 1s ease-in;
}

.container h2 {
    font-size: 14px;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #8b949e;
}

input[type="text"],
input[type="number"],
textarea,
select {
    padding: 10px;
    margin-bottom: 15px;
}

.box-style {
    font-size: 14px;
    width: 100%;
    max-width: 350px;
    border: 1px solid #2a414d;
    border-radius: 5px;
    background-color: #0d1117;
    color: #fff;
    box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.force-height {
    height: 42px;
}

.text-area {
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    color: #8b949e;
}

.text-area li {
    text-align: left;
    margin-left: 10px;
    padding: 2px;
}

.text-area-thanks {
    text-align: center;
    padding: 14px;
    margin-bottom: 20px;
    color: #8b949e;
    font-size: 16px;
}

input:focus,
select:focus,
button:focus,
textarea:focus {
    border-color: #1f6feb; 
    outline: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

textarea.box-style {
    position: relative;
}

input[type="submit"],
.button-generate {
    background-color: #1f6feb; 
    color: #f0f6fc;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s;
}

input[type="submit"]:hover,
.button-generate:hover {
    background-color: #2f81f7; 
}

input[type="submit"]:active,
.button-generate:active {
    background-color: #1f6feb; 
}

.flex-row {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-evenly;
    position: relative;
}

.currency-select {
    height: 42px;
    width: 70px;
}

.tts-button {
    width: 80px;
    height: 42px;
    background-color: #131C20;
    color: #c9d1d9;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #2a414d;
    transition: transform 0.1s;
}

.tts-button img {
    align-items: center;
}

.tts-button:hover {
    background-color: #161b22;
}

.tts-button:active {
    background-color: #0d1117;
    transform: scale(0.9);
}

.message-container {
    position: relative;
}

#char-counter {
    font-size: 12px;
    color: #8b949e;
    position: absolute;
    bottom: 20px;
    right: 10px;
}

.animate-fade-in {
    position: relative;
    animation: animfadein 2.0s;
}

.hide {
    display: none;
}

.copied {
    display: none;
    padding: 10px;
    text-align: center;
}

@keyframes animfadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
