body {
	margin: 0;
	font-family: "Roboto Condensed", sans-serif;
	line-height: 1.5;
	padding: 1rem;
	background: url(/aer_logo.webp) no-repeat whitesmoke fixed;
	color: #222;
	max-width: 900px;
}
h1, h2 {
	text-align: center;
	text-shadow: 2px 2px 2px white;
	color: cadetblue;
}
form .row {
    display: flex;
    align-items: center;
    margin: 6px 0;
}
form .row label {
    width: 260px;
}
form .row input,
form .row select {
    flex: 1;
    padding: 4px;
}
.buttons {
    margin-top: 12px;
    text-align: center;
}
.buttons button {
    margin: 0 6px;
    padding: 6px 12px;
}
#output {
    width: 100%;
    height: 300px;
    margin-top: 12px;
    font-family: Consolas, monospace;
    white-space: pre;
    overflow: auto;
}
.export {
    margin-top: 12px;
    text-align: center;
}
.export button {
    margin: 0 6px;
    padding: 6px 12px;
}




/* 1️⃣ Общие стили */
*,
*::before,
*::after { box-sizing: border-box; }


/* 2️⃣ Сетка формы */
.grid-form {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 2a. Поля – по умолчанию 1‑колоночные */
.field {
    display: flex;
    flex-direction: column;
}

/* 2b. Поля, которые должны растягиваться на всю ширину */
.full-width { grid-column: 1 / -1; }

/* 2c. Помощь (иконка + tooltip) */
.help-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.help-wrapper {
    display: inline-flex;
    position: relative;
}
.help-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: none;
    background:#eee;
    color:#333;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}
.help-icon:focus { outline: 2px solid #4a90e2; }
.help-tooltip {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    top: calc(100% + 8px);
    min-width: 220px; max-width: 320px;
    background:#222; color:#fff;
    padding:8px 10px;
    border-radius:6px;
    font-size:13px;
    line-height:1.3;
    box-shadow:0 6px 18px rgba(0,0,0,.2);
    z-index:100;
}
.help-tooltip::before {
    content:"";
    position:absolute;
    top:-6px; left:50%; transform:translateX(-50%);
    border:6px solid transparent;
    border-bottom-color:#222;
}
.help-tooltip[hidden] { display:none; }

/* 3️⃣ Кнопки */
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.buttons button {
    flex: 1 1 120px;
    padding:.5rem 1rem;
    border:none;
    background:#4a90e2;
    color:#fff;
    cursor:pointer;
    border-radius:4px;
}
.buttons button:hover { background:#357ab8; }

/* 4️⃣ Вывод */
.output {
    width: 100%;
    height: 150px;
    margin-top: 1rem;
    font-family: monospace;
    resize: vertical;
    opacity: 0.7;
}

/* 5️⃣ Экспортные кнопки */
.export {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.export button {
    flex: 1 1 120px;
    padding:.4rem 0.8rem;
    background:#6c757d;
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
}
.export button:hover { background:#5a6268; }

/* 6️⃣ Адаптивность */
@media (min-width: 600px) {
    .grid-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .full-width { grid-column: 1 / -1; }
    .help-field { grid-column: span }
}

/* Класс, который будет применён к элементу */
.slide-in-left {
    /* Начальное положение – за пределами экрана слева */
    transform: translateX(-100%);
    /* Плавный переход */
    transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-in-right {
    /* Начальное положение – за пределами экрана справа */
    transform: translateX(100%);
    transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Состояние после загрузки */
.slide-in-left.loaded, .slide-in-right.loaded {
    transform: translateX(0);
}

input, select, textarea {
	opacity: 0.7;
	box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
.present {
	color: white;
	text-decoration: none;
}    
