body {
    max-width: 1080px;
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
    
}

header {
    /* width: 100%; */
    display: flex;
    background-color: #000;
    color: #000000;
    height: 6vh;
}

header a {
    text-decoration: none;
    cursor: default;
}



header h1 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

/* header img {

} */

.jefafe-nav-logo img {
    height: 4vh;
}

/*css导航栏样式*/
.jefafe-navbar {
    display: flex;
    /* background: linear-gradient(to right, #100000, #2C2C34); */
    color: #fff;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0px 10px;
    position: relative;
}


.jefafe-navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    display: none;
}

.jefafe-navbar li {
    position: relative;

}

.jefafe-navbar li a:hover {
    color: #707070;
}

#nav-open {
    display: block;
    position: relative;   
    height: 4vh;
}
/* 显示汉堡式图标 */
#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}

/* 展开菜单时的导航栏样式 */
.jefafe-navbar.open ul {
    display: flex;
    flex-direction: column;
}

.jefafe-navbar.open #nav-open {
    display: none;
}

.jefafe-navbar.open #nav-close {
    display: block;
}

#jefafe-menu {
    width: 38%;
    flex-direction: column;
    gap: 35px;
    background-color: #fff;
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 6vh;
    left: 0px;
    padding: 35px 1rem;
    z-index: 10;
}

#jefafe-menu li a {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}

#jefafe-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 38%;
    }
}

.jefafe-game-item {
    border-radius: 10px;
    background-color: #fff;
    position: relative;
}
.jefafe-game-item a {
    
    text-decoration: none;
}

.jefafe-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius:10px 10px 0px 0px;
    display: block;

}

.jefafe-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius:10px;
    display: block;

}

.jefafe-game-item h3 {
    color: #fff;
    margin: 5px 0px;
    font-size: 0.75rem;

}

.jefafe-game-item p {
    color: #000;
    margin: 0px;
    font-size: 1rem;
}

.jefafe-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}
.jefafe-game-left {
  width: 100%;
}

.common-game-right {
    display: flex;
    width: 20%;
    /* height: 25px; */
    /* background: linear-gradient(to bottom, #4BACEC, #3B0DAA); */
    border-radius: 5px;
    right: 0px;
    justify-content: center;
    align-items: center;
}

.common-game-right img {
    /* width: 60px; */
    /* height: 20px; */
}

.jefafe-recomed-div {
    margin: 10px 1rem;
}

.jefafe-common-recommend-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jefafe-common-recommend-title p {
    color: #000;
    font-size: 1rem;
    padding: 0px 10px;
    border-left: #000 solid 1px;
}

.jefafe-common-recommend-title img {
    width: 20px;
    height: 20px;
}

.jefafe-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}



footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #000;
    text-align: center;
}

.jefafe-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.jefafe-footer-links a {
    font-size: 0.7em;
    color: #fff;
    text-decoration: none;
}

.jefafe-footer-links a:hover {
    text-decoration: underline;
}

footer .jefafe-copyright {
    font-size: 0.8em;
    color: #666;
}

#back-top,
#back-home {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#flow {
    position: fixed;
    bottom: 10rem;
    right: 0.6rem;
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 0.5rem;
    gap: 10PX;
    border-radius: 10rem;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#flow:hover {
    background-color: #A0A0A0(255, 255, 255, 1.0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.jefafe-game-detail-title {
    /* width: 100%; */
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
}

.game-detail-iframe {
    width: 100%;
}

.jefafe-game-detail-title img {
    width: 50%;
    /* Adjusted height for better appearance */
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.jefafe-detail-info {
    /* z-index: 15; */
    /* position: absolute; */
    width: 50%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.jefafe-detail-info h2 {
    color: #000;
    font-size: 1.2rem;
    margin: 10px;

}

.jefafe-detail-info h3 {
    color: #807272;
    font-size: 1rem;
    margin: 10px;

}

.jefafe-detail-info p {
    color: #CECECE;
    font-size: 1rem;
    margin: 10px;

}

.jefafe-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 1rem;
} 


.jefafe-game-instructions p {
    color: #000;
}

.jefafe-game-gameplay {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 1rem;
    border-radius: 10px ;

}

.jefafe-game-gameplay-button {
    display: flex;
    /* height: 6vh; */
    /* background: linear-gradient(to bottom, #DBD213, #FFC145); */
    /* border-radius: 10px; */
    left: 0px;
    margin: 10px 0px;
    justify-content: center;
    align-items: center;
}

.jefafe-game-gameplay-button a {
    display: flex;
    align-items: center;
}

.jefafe-game-gameplay-button a img {
    width: 120px;
    height: 42px;
    
}

.jefafe-game-iframe {
    width: 100%;
    /* max-width: 560px; */
    /* margin: 1rem 0; */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;

}
.jefafe-game-iframe img {
    margin: 20px 20px;
    position: absolute;
    height: 40px;
    height: 40px;
}
.jefafe-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
}
.jefafe-news-detail img{
    width: 100%;
    object-fit: contain;
}

.error-page {

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.error-page h1{
    font-size: 2em;
    color: #000;
}
.error-page p{
    font-size: 1.4em;
    color: #000;
    padding: 1rem;
    
}
.error-page img{
    padding: 2rem 1rem;
}

.jefafe-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    background-color: #000;
    height: 4vh;
    /* position: absolute; */
    border-radius: 0px 0px 10px 10px;
    padding: 0px 10px;
}

.jefafe-game-mark img{
    width: 20px;
    height: 20px;
   
}

.jefafe-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}