body {
    position: relative;
    font-family: sans-serif;
	font-size: 20px;
}

ul, p {
    margin: 0;
    padding: 0;
}

.ya-share2 {
    margin-top: -4px;
}

#game {
    width: 100%;
    height: 100%;
}

#game iframe {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

/* Fullscreen button styles */
.fullscreen-btn {
    width: 100%;
    border-radius: 20px;
    background-color: #5178d8;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    border: 0;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fullscreen-btn:hover {
    background-color: #4168c8;
}

.fullscreen-btn__text {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

/* Fullscreen mode styles */
#game:fullscreen {
    background: #000;
}

#game:-webkit-full-screen {
    background: #000;
}

#game:-moz-full-screen {
    background: #000;
}

#game:-ms-fullscreen {
    background: #000;
}

.header {
    box-shadow: 0px 8px 16px rgba(17, 17, 17, 0.04);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
}

.logo {
  display: block;
  width: 150px;
}

.main-category__title, .instruction-header__title {
	font-weight: bold;
}

/* Заголовок гри та breadcrumbs */

.game-title {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-align: left;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 16px;
    gap: 8px;
}

.breadcrumbs__link {
    color: #5178d8;
    text-decoration: none;
    transition: color 0.3s;
}

.main-menu__link {
    background: #5178d8;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    font-weight: normal;
}

.breadcrumbs__link:hover {
    text-decoration: underline;
}

.breadcrumbs__separator {
    color: #666666;
    margin: 0 4px;
}

.breadcrumbs__current {
    color: #666666;
    font-style: italic;
}

.main-wrapper {
    display: flex;
    justify-content: center;
    padding: 1% 5%;
    background: #e5f4ff;
}

.main-content {
    max-width: 1044px;
    padding-right: 30px;
    flex: 1;
}

/* Головна сторінка без sidebar */
body:has(.main-wrapper > .main-content:only-child) .main-content {
    max-width: 100%;
    padding: 0;
}

.main-category {
    background-color: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.07);
    border-radius: 5px;
    padding: 16px 16px 0 16px;
	margin-bottom: 10px;
}

.main-category__title {
    
    font-size: 30px;
    line-height: 100%;
}

.main-category__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 14px;
}

.main-category__social {
    display: flex;
    align-items: center;
}

.main-category__info {
    
    font-size: 18px;
    line-height: 100%;
    padding-right: 14px;
}

.main-category__link:not(:last-child) {
    padding-right: 12px;
}

.category-more {
    background-color: transparent;
    outline: none;
    cursor: pointer;
    border: none;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding-bottom: 11px;
}

.category-more__title {
    font-size: 14px;
    line-height: 14px;
    text-align: right;
    color: #007AE9;
    
    padding-right: 10px;
}

.cards {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.card-item {
    background: #FFFFFF;
    box-shadow: 0px 4px 8px rgba(17, 17, 17, 0.08);
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 15px;
    flex-direction: column;
}

.card-item:hover {
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-item__img {
    width: 185px;
    height: 125px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 165px;
}

.card-item__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c2b2b;
    line-height: 1.2;
}

.card-more__link {
    text-decoration: none;
    color: inherit;
}

.main-sidebar {
    max-width: 280px;
    padding: 0 15px 0 0;
    flex: 1;
}

.main-sidebar__title {
    
    font-size: 22px;
    line-height: 100%;
    text-align: left;
}

.main-sidebar__list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
}

.main-sidebar__link {
    display: flex;
    justify-content: center;
    width: 125px;
    height: 70px;
    overflow: hidden;
    align-items: center;
    border-radius: 5px;
}

.main-sidebar__img {
    max-width: 100%;
}

/* Additional games (після instruction) */
.additional-games {
    margin-top: 40px;
    background: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.07);
    border-radius: 5px;
    padding: 20px;
}

.additional-games__title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    text-align: left;
}

.additional-games__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.additional-games__link {
    display: flex;
    justify-content: center;
    width: 122px;
    height: 70px;
    overflow: hidden;
    align-items: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.additional-games__link:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.additional-games__img {
    max-width: 100%;
}

.footer {
    box-shadow: 0px -8px 16px rgba(17, 17, 17, 0.04);
    padding-top: 20px;
}

/* Footer menu з категоріями */
.footer-menu {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.footer-menu__list {
    display: flex;
    gap: 16px;
    list-style-type: none;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer-menu__item {
    margin: 0;
}

.footer-menu__link.category-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    transition: all 0.3s ease;
    gap: 12px;
    text-decoration: none;
}

.footer-menu__link.category-card:hover {
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.footer-menu__link.category-card.active {
    background: #F5F5F5;
    box-shadow: 0px 6px 12px rgba(239, 108, 0, 0.2);
}

.category-card__icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.category-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #2c2b2b;
    text-decoration: none;
    line-height: 1.2;
}

.container {
    max-width: 1100px;
    padding: 12px 15px;
    margin: 0 auto;
	text-align: center;
}

.footer-copyright {
    
    font-size: 16px;
    line-height: 100%;
}

.main-game {
    margin: 15px 0px;
    height: 600px;
    background: #BCD1FF;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-game__title {
    
    font-size: 72px;
    line-height: 100%;
    color: #FFFFFF;
}

.instruction {
    background: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.07);
    border-radius: 5px;
    padding: 16px;
}

.instruction-header {
    display: flex;
    padding-bottom: 14px;
}

.instruction-header__title {
    
    font-size: 25px;
    line-height: 100%;
    padding-right: 64px;
}

.instruction-info {
    font-size: 16px;
    line-height: 140%;
    color: #374A59;
}

/* Category sections on home page */
.category-section {
    margin-bottom: 60px;
}


.category-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 50px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-title:hover {
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.category-title__icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.category-title__text {
    font-size: 28px;
    font-weight: bold;
    color: #2c2b2b;
    margin: 0;
    line-height: 1.2;
}

