.bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.svg-line {
    width: 100%;
    height: 40px;
    fill: rgb(29 82 255 / 75%)
}

.footer-container {
    background: rgb(29 82 255 / 75%);
    padding-top: 10px;
}

.section-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 10px;
}

.section {
    position: relative;
    font: inherit;
    color: white;
    width: 380px;
    margin: 10px;
    padding: 0;
    background: linear-gradient(135deg, rgba(29, 82, 255, 0.9) 0%, rgba(65, 105, 225, 0.85) 50%, rgba(30, 144, 255, 0.8) 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(29, 82, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: transform;
}

.section:hover {
    transform: translate3d(0, -3px, 0);
}

.footer-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px 15px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
    position: relative;
}

.footer-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.footer-icon {
    position: static;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

.about-title, .updates-title, .how-to-play-title  {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.about-the-game-content, .quick-intro-content, .last-news  {
    padding: 20px;
}

.about-the-game-content span, .quick-intro-content span {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95em;
}

.title-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.title-content {
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.news-date {
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.list-content {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
}

.list-content::-webkit-scrollbar {
    width: 6px;
}

.list-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.list-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.list-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.features-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
}

.features-title::after {
    content: '✨';
    margin-left: 8px;
}

.game-name-info {
    font-weight: 700;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.game-name-info::after {
    content: '🎨';
    margin-left: 1px;
}

.section ul {
    margin: 15px 0 25px 0;
    padding-left: 0;
    list-style: none;
}

.section ul li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 25px;
    line-height: 1.6;
    font-size: 0.95em;
    transition: transform 0.3s ease;
}

.section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: #4fc3f7;
    font-size: 0.8em;
    transition: color 0.3s ease;
}

.section ul li:hover {
    transform: translate3d(3px, 0, 0);
    color: #e3f2fd;
}

.section ul li:hover::before {
    color: #81c784;
}

.list-content span {
    display: block;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95em;
}

.list-content span:last-child {
    font-weight: 600;
    text-align: center;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 15px;
    font-size: 1em;
}

.how-to-play-intro-link {
    color: #ffeb3b !important;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.legal-liability-note{
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    max-width: 1200px;
    margin: 0px auto;
}

.p-footer{
    font-size: 80%;
    color: white;
    text-align: center;
}

.about-section { order: 1; }
.updates-section { order: 2; }
.how-to-play-section { order: 3; }


.section:not(.collapsible-section) .collapsible-content,
.section.collapsible-section.active .collapsible-content {
    max-height: none;
}

.rights {
    display: flex;
    justify-content: center;
    color: white;
    font-size: 90%;
    text-decoration: underline;
    margin-bottom: 2px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    color: white !important;
    font-size: 85%;
    font-weight: bold;
}

.spacer {
    margin: 0px 7px 0px 7px;
}

footer-links, a{
    color: white !important;
}

@media only screen and (orientation: portrait), (max-aspect-ratio: 4/3) {

    .about-section { order: 1; }
    .how-to-play-section { order: 2; }
    .updates-section { order: 3; }

    .section-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 20px 10px;
    }

    .section {
        width: 95%;
        margin: 10px auto;
        backdrop-filter: none;
        box-shadow: 0 4px 15px rgba(29, 82, 255, 0.3);
    }
    
    .section:hover {
        transform: none;
    }
    
    .footer-title {
        text-align: center;
        padding: 15px;
    }
    
    .footer-icon {
        margin-right: 10px;
        animation: none;
    }

    .collapsible-section {
        overflow: hidden;
    }
    
    .collapsible-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .collapsible-section.active .collapsible-content {
        max-height: 1000px;
        transition: max-height 0.5s ease-in;
    }
    
    .collapsible-header {
        cursor: pointer;
        user-select: none;
    }
    
    .collapsible-header::after {
        content: '▼';
        margin-left: auto;
        margin-right: 10px;
        font-size: 1.3em;
        transition: transform 0.3s ease;
    }
    
    .collapsible-section.active .collapsible-header::after {
        transform: rotate(180deg);
    }
    
    .updates-title, .about-title, .how-to-play-title {
        font-size: 1.2em;
    }
    
    .title-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .news-date {
        align-self: flex-end;
    }
    
    .section ul li:hover {
        transform: none;
        color: inherit;
    }
    
    .section ul li:hover::before {
        color: #4fc3f7;
    }
    
    .features-title::after,
    .game-name-info::after {
        animation: none;
    }
    
    .list-content {
        max-height: 300px;
        scroll-behavior: smooth;
    }

    .footer-links {
        display: block;
        color: white !important;
        font-size: 93%;
        font-weight: bold;
        text-align: center;
        padding: 0 5px;
    }

    .rights {
        font-size: 100%;
    }

    .legal-liability-note{
        grid-column: span 3;
        display: flex;
        align-items: center;
        justify-content: center;

        width: initial;

        max-width: initial;
        margin: initial;
        padding: 0 7px;
    }

    .p-footer{
        font-size: 85%;
        color: white;
        text-align: center;
    }

}

@media (prefers-reduced-motion: reduce) {
    .section,
    .section ul li,
    .footer-icon,
    .features-title::after,
    .game-name-info::after {
        animation: none;
        transition: none;
    }
    
    .section:hover,
    .section ul li:hover {
        transform: none;
    }
}