body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0c2ff, #c2e0ff);
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
	flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 800px;
	max-width: 100%;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
	margin-top: 30px;
}

h1, h2 {
    color: #555;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

input[type="number"], input[type="text"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100px;
}

button {
    background: linear-gradient(135deg, #6a5acd, #483d8b);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #483d8b, #6a5acd);
}

.spoiler {
    margin-top: 15px;
}

.copyButton {
	word-break: normal;
}

#generate {
	font-weight: bold;
    font-size: larger;
}

#resetSymbols {
    padding: 5px 10px;
    margin-left: 5px;
}

#additionalOptions {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #f9f9f9;
}

#results {
    margin-top: 30px;
}

#resultsButtons {
	display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#saveToFile {
	margin-right: 10px;
}

#passwordList {
    list-style: none;
    padding: 0;
	max-height: 90vh;
	overflow-y: auto;
}

#passwordList::-webkit-scrollbar {
  width: 8px;
}

#passwordList::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6a5acd, #483d8b);
  border-radius: 10px;
}

#passwordList::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

#passwordList::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

#passwordList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f0f0f0;
}

#securityLevel {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

#securityDescription {
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

#customSymbols {
	width: 177px;
	max-width: 100%;
}

#templateSettings {
	
}

#templateSettings h2 {
    font-size: 1.2em;
    margin: 0 0 5px;
}

#templateSettings button {
    margin: 5px;
}

#saveSettings {
	margin-top: 10px;
}

.service-description {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	word-break: normal;
}

.utp-block h2, .description-block h2 {
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.utp-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.utp-item {
    width: 30%;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.utp-item h3 {
    color: #483d8b;
    margin-bottom: 10px;
}

.utp-item p {
    color: #666;
    font-size: 16px;
}

.description-block p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.password-type {
	margin-bottom: 20px;
}

.links {
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.links div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}
.links a {
    text-decoration: none;
    color: #007bff;
    padding: 5px;
}

.hidden {
    display: none !important;
}
.toggle-btn {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
.toggle-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 800px) {
    .container {
        width: 90%; /* Растягиваем контейнер на 90% ширины экрана */
        padding: 20px; /* Уменьшаем отступы */
    }
}

@media (max-width: 768px) {
    .links div {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        width: 90%; /* Делаем контейнер шире, чтобы он не был слишком узким */
        padding: 15px; /* Уменьшаем отступы */
    }

    button {
        width: 90%; /* Кнопки на всю ширину */
		margin: 0 auto;
    }

    label {
        flex-direction: column; /* Располагаем текст и поля ввода вертикально */
        align-items: flex-start;
    }

    input[type="number"], input[type="text"] {
        width: 90%; /* Поля ввода на всю ширину */
    }
}

@media (max-width: 480px) {
    .links div {
        grid-template-columns: repeat(1, 1fr);
    }
}