/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Оформление фона страницы */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, rgb(216, 252, 255) 45%, rgb(231, 152, 255));
}

h1 {
    text-align: center;
}

#search {
    margin: 20px 0;
    text-align: center;
}

/* Оформление основных блоков */
.tile {
    background: linear-gradient(270deg, rgb(251, 255, 255) 31%, rgb(255, 253, 255) 80%);
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px;
    margin: 10px;
    display: inline-block;
    width: 350px;
    height: 100px;
    text-align: center;
    transition: transform 0.2s;
}

.tile img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
}

.tile:hover {
    transform: scale(1.05);
}

.category {
    margin: 20px 0;
    text-align: center;
}

/* Оформление шапки */
.tile_home {
    background: linear-gradient(270deg, rgb(251, 255, 255) 31%, rgb(255, 253, 255) 80%);
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px;
    margin: 10px;
    display: inline-block;
    width: 500px;
    height: 150px;
    text-align: center;
    transition: transform 0.2s;
    font-size: 40px;
}

.tile_home img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
}

.tile_home:hover {
    transform: scale(1.05);
}

.style_home {
    transform: translateY(30%);
    color: rgba(59, 59, 59, 1);
    text-shadow: 1px 1px 2px #cfe6fc;
    text-decoration: none;
}

/* Стили текста */
.style_p {
    transform: translateY(0%);
    color: rgba(59, 59, 59, 1);
    text-decoration: none;
    font-size: 23px;
    text-align: center;
}

.style_title_g {
    font-size: 80px;
    color: #3b3b3b;
}

.style_title {
    font-size: 50px;
    color: #3b3b3b;
}

/* Оформление поиска */
#searchInput {
    width: 750px;
    height: 80px;
    border-radius: 20px;
    padding: 12px 32px 12px 16px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.25s ease-in-out;
    border: 1px solid lightgray;
    font-size: 45px;
    color: lightgray;
}

#searchInput::placeholder {
    color: lightgray;
}

#searchInput:focus {
    box-shadow: 0 0 4px #67566e;
}

#searchInput::before {
    content: "\f002";
    font-family: 'Font Awesome 5 Free';
    display: inline-block;
    position: relative;
    left: 10px;
    color: #999;
    pointer-events: none;
}

/* Оформление стрелки */
#back-to-top {
    position: fixed;
    bottom: 840px;
    right: 20px;
    background-color: rgba(250, 217, 255, 0.5);
    backdrop-filter: blur(5px);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

#back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

#back-to-top:hover {
    background-color: rgba(200, 200, 200, 0.9);
}

.btn-label {
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
    display: block;
    color: white;
}

/* Оформление кнопки БР */
.tile_br {
    background-color: rgba(250, 217, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px;
    margin: 10px;
    display: inline-block;
    width: 100px;
    height: 100px;
    text-align: center;
    transition: transform 0.2s;
    font-size: 40px;
}

.tile_br img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
}

.tile_br:hover {
    transform: scale(1.25);
}

/* Исправление вертикального выравнивания в плитках */
.tile > a,
.tile_home > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.tile > a > img,
.tile_home > a > img {
    display: block;
    transform: none !important;
    margin-right: 15px;
}

.tile > a > p,
.tile_home > a > p {
    display: block;
    transform: none !important;
    margin: 0;
}