/*
Theme Name: 321 lotto
Theme URI:  http://example.com/321-lotto
Author:      Your Name
Author URI:  http://example.com
Description: WordPress theme replicating the 321 lotto homepage layout.
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 321-lotto
Tags:        custom-background, custom-logo, custom-menu, featured-images, translation-ready
*/

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
}

header {
    background: #0077cc;
    color: #fff;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

header .logo img {
    max-height: 80px;
}

header .logo a {
    text-decoration: none;
    color: white;
}
.login-buttons {
    margin-left: 50px;
}
.login-buttons a{
    margin-right: 20px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}


.main_title .intro-title{
    margin: 50px auto 0;
    text-align: center
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 6px;
    align-items: flex-end;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.8;
}

.main-banner {
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
}
.main-banner img{
    width: 100%;
    height: 500px;
}
.deals-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}
.deal-item {
    width: 180px;
    text-align: center;
    transition: transform 0.15s ease-in-out;
}
.deal-item:hover {
    transform: scale(1.03);
}
.deal-item img {
    width: 100%;
    border-radius: 5px;
}

.how-to-play,
.why-play {
    background: #e6f2ff;
    padding: 40px 20px;
    text-align: center;
}

.main_title{
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.main_content{
    max-width: 1200px;
    margin: 0 auto;
     text-align: left;
}

.main_content img{
    text-align: center;
     margin: 20px auto;
     display: block;
}

.main_content img{
     max-width: 100%; 
    height: auto;   
    display: block; 
}

.icon-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.icon-item {
    max-width: 120px;
}
.icon-item img {
    width: 50px;
    margin-bottom: 10px;
}

footer {
    background: #003366;
    color: #fff;
    padding: 40px 20px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.widget {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {

     .login-buttons{
        display: none;
    }

    header .container {
        flex-direction: row;
        padding: 10px 20px;
        align-items: center;
        justify-content: space-between;
    }

    header .logo {
        flex: 1;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    #primary-menu-nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        background: #0077cc;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 999;
        width: 100%;
        order: 3;
        margin-left: 0;
    }

    #primary-menu-nav.active {
        display: block;
    }

    nav {
        margin-left: 0;
        display: block;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 12px 20px;
        transition: background-color 0.2s ease;
    }

    nav a:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .main-banner {
        margin: 10px;
        padding: 0;
    }

    .main-banner img {
        height: auto;
        max-height: 300px;
    }

    .deals-row {
        gap: 10px;
        padding: 0 10px;
    }

    .deal-item {
        width: calc(50% - 10px);
        min-width: 140px;
    }

    .how-to-play,
    .why-play {
        padding: 20px 10px;
    }

    .icon-list {
        gap: 20px;
    }

    .icon-item {
        max-width: 80px;
    }

    .icon-item img {
        width: 40px;
    }

    .footer-widgets {
        flex-direction: column;
        padding: 0 10px;
    }

    .widget {
        flex: none;
        margin: 10px 0;
    }

    .archive-only-posts {
        padding: 0 10px;
    }

    .home-container {
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .deal-item {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .icon-list {
        flex-direction: column;
        align-items: center;
    }

    .icon-item {
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .icon-item img {
        margin-bottom: 10px;
    }
}
