body {
    max-width: 820px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
}

header {
    /* width: 100%; */
    display: flex;
    color: #000000;
    position: relative;
    height: 6vh;
    background-color: #FF7F00;
}

header a {
    text-decoration: none;
    cursor: default;
}



header h1 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

.bugame-navbar-logo img {
    height: 3vh;
    display: block;
}


/*css导航栏样式*/
.bugame-header-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

}


.bugame-header-navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    display: none;
}

.bugame-header-navbar li {
    position: relative;

}

.bugame-header-navbar li a:hover {
    color: #707070;
}

/* 显示汉堡式图标 */
.bugame-header-navbar .bugame-menu-icon {
    display: block;
    position: relative;
    width: 44px;
    height: 30px;
    cursor: pointer;
    border-radius: 5px;
}

.bugame-header-navbar .bugame-menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 24px;
    background: #fff;
    border-radius: 4px;
    opacity: 1;
    margin-left: 9px;
}

.bugame-header-navbar .bugame-menu-icon span:nth-child(1) {
    top: calc(22% - 1px);
}

.bugame-header-navbar .bugame-menu-icon span:nth-child(2) {
    top: calc(52% - 1px);
}

.bugame-header-navbar .bugame-menu-icon span:nth-child(3) {
    top: calc(80% - 1px);
}

/* 展开菜单时的导航栏样式 */
.bugame-header-navbar.open ul {
    display: flex;
    flex-direction: column;
}

#bugame-navbar-menu {
    width: 28%;
    flex-direction: column;
    gap: 44px;
    background-color: #FFAF60;
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 6vh;
    left: 0px;
    padding: 1rem;
    z-index: 10;
}

#bugame-navbar-menu li a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}

#bugame-navbar-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 38%;
    }
}

.bugame-common-bugame-item {
    border-radius: 10px;
    /* background: linear-gradient(to right, #000, #0099CC, #000); */
}

.bugame-common-bugame-item a {

    text-decoration: none;
}

.new-common-bugame-info {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 5px;
    /* height: 6vh; */
}

.bugame-common-bugame-item img {
    width: 100%;
    /* height: 10vh; */
    /* Adjusted height for better appearance */
    border-radius: 10px;
    /* 自动高度，用于保持图片比例 */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* 裁剪超出部分，确保图片始终充满容器 */
    object-position: center;
    /* 图片居中 */
    display: block
}

.bugame-common-bugame-item.big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.bugame-common-bugame-item.big-3 {
    grid-column: span 3;
    grid-row: span 3;
}

.bugame-common-bugame-item h3 {
    color: #000;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.bugame-common-bugame-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0px 10px;
}

.bugame-common-bugame-item p {
    color: #000;

    font-size: 0.8rem;
}



.bugame-common-primary-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 1rem;
}

.bugame-common-primary-recommend-title h2 {
    color: #000;
    font-size: 1rem;
}

.bugame-common-primary-recommend-title img {
    width: 20px;
    height: 20px;
}

.bugame-common-primary-recommend-content {
    /* width: 100%; */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
    margin: 10px 1rem;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;

}

.bugame-footer-items-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.bugame-footer-items-links a {
    font-size: 0.7em;
    color: #000;
    text-decoration: none;
}

.bugame-footer-items-links a:hover {
    text-decoration: underline;
}

footer .bugame-web-Instructions {
    font-size: 0.8em;
    color: #000;
}

 .bugame-detail-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    /* order: 2; */
}

.bugame-detail-title-cover {
    width: 60%;
}

.bugame-detail-iframe {
    width: 100%;
}

.bugame-detail-title-cover  img {
    width: 100%;
    /* Adjusted height for better appearance */
    /* border-radius: 10px; */
    object-fit: contain;
    border-radius: 10px;
    margin-top: 10px;
   

}

.bugame-detail-info {
    bottom: 0;
    text-align: start;
    overflow: hidden;
    margin: 0 20px;
}

.bugame-detail-info h2 {
    color: #000;
    font-size: 1rem;
    margin: 10px;

}

.bugame-detail-info h3 {
    color: #373634;
    font-size: 0.8rem;
    margin: 10px;

}

.bugame-detail-info p {
    color: #000;
    font-size: 1rem;
    margin: 10px;

}

.bugame-detail-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 1rem;
}


.bugame-detail-instructions p {
    color: #fff;
}

.bugame-detail-gameplay {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;

}

.bugame-detail-gameplay-button {
    display: flex;
    width: 80%;
    height: 6vh;
    background-color: #FF7F00;
    bottom: 0px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-top: 20px;
    /* position: absolute; */
}

.bugame-detail-gameplay-button img {
    width: 117px;
    height: 43px;
}

.website-detail-info {
    color: #fff;
    text-align: start;
    padding: 1rem;
}

.website-detail-info img {
    width: 100%;
    /* height: 10vh; */
    /* Adjusted height for better appearance */
    /* border-radius: 10px; */
    /* margin: 1rem; */
    object-fit: contain;
}

#refreshButton:hover {
    background-color: #CECECE;
}

.bugame-error-page {

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bugame-error-page h1 {
    font-size: 1em;
    color: #000;
}

.bugame-error-page p {
    font-size: 1rem;
    color: #000;

}

.bugame-error-page img {
    width: 300px;
}


.bugame-iframe img {
    width: 50px;
    height: 50px;
    margin-top: 6vh;
    margin-left: 20px;
    z-index: 10;
    position: absolute;
}