html,
body {
width: 100%;
height: 100%;
margin: 0;
user-select: none;
font-family: "Shabnam", sans-serif;
background-color: #f5f5f5;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
overflow-y: auto;
}
.container {
width: 50%;
max-width: 600px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
text-align: center;
margin-top: 20px;
background-image: url('../images/BG.png');
background-size: cover;
background-position: center;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.game-image {
width: 100px;
height: 100px;
border-radius: 10px;
}
.game-title {
font-size: 24px;
}
.btn {
display: block;
position: relative;
width: 100%;
height: 80px;
margin-bottom: 20px;
transition: width 0.8s cubic-bezier(0.230, 1.000, 0.320, 1.000), height 0.8s cubic-bezier(0.230, 1.000, 0.320, 1.000), transform 0.8s cubic-bezier(0.175, 0.885, 0.320, 1.275);
transform-style: preserve-3d;
transform-origin: 50% 50%;
text-align: center;
}
.btn-front {
position: absolute;
display: block;
width: 100%;
height: 100%;
line-height: 80px;
background-color: #4CAF50;
color: #fff;
cursor: pointer;
backface-visibility: hidden;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
transition: background 0.15s ease, line-height 0.8s cubic-bezier(0.230, 1.000, 0.320, 1.000);
}
.btn-front:hover {
background-color: #66BB6A;
}
.btn.is-open .btn-front {
pointer-events: none;
line-height: 160px;
}
.btn-back {
position: absolute;
width: 100%;
height: 100%;
background-color: #eee;
color: #222;
transform: translateZ(-2px) rotateX(180deg);
overflow: hidden;
transition: box-shadow 0.8s ease;
}
.btn-back p {
margin-top: 27px;
margin-bottom: 25px;
}
.btn-back button {
padding: 12px 20px;
width: 30%;
margin: 0 5px;
background-color: transparent;
border: 0;
border-radius: 2px;
font-size: 1em;
cursor: pointer;
-webkit-appearance: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
transition: background 0.15s ease;
}
.btn-back button:focus {
outline: 0;
}
.btn-back button.yes {
background-color: #4CAF50;
color: #fff;
}
.btn-back button.yes:hover {
background-color: #66BB6A;
}
.btn-back button.no {
color: #4CAF50;
}
.btn-back button.no:hover {
background-color: #ddd;
}
.btn.is-open .btn-back {
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.btn[data-direction="left"] .btn-back,
.btn[data-direction="right"] .btn-back {
transform: translateZ(-2px) rotateY(180deg);
}
.btn.is-open {
width: 100%;
height: 160px;
}
.btn[data-direction="top"].is-open {
transform: rotateX(180deg);
}
.btn[data-direction="right"].is-open {
transform: rotateY(180deg);
}
.btn[data-direction="bottom"].is-open {
transform: rotateX(-180deg);
}
.btn[data-direction="left"].is-open {
transform: rotateY(-180deg);
}
.game-info {
text-align: right;
direction: rtl;
}
.game-info .info-container {
background-color: #f0f0f0;
border-radius: 5px;
padding: 10px;
margin-bottom: 10px;
}
.game-info p {
margin: 5px 0;
}
@media (max-width: 600px) {
.container {
width: 70%;
padding: 10px;
}
.game-image {
width: 80px;
height: 80px;
}
.game-title {
font-size: 20px;
}
.btn {
height: 60px;
}
.btn-front {
line-height: 60px;
}
.btn.is-open .btn-front {
line-height: 120px;
}
.btn-back p {
margin-top: 20px;
margin-bottom: 20px;
}
.btn-back button {
padding: 10px 15px;
width: 40%;
}
}
.swiper-container {
width: 100%;
height: 200px;
margin-top: 20px;
}
.swiper-slide {
display: flex;
justify-content: center;
align-items: center;
}
.swiper-slide img {
width: 100%;
height: auto;
border-radius: 10px;
max-height: 200px;
max-width: 100%;
object-fit: contain;
}
.button-container {
display: flex;
justify-content: center;
margin-top: 20px;
}
.btn-link {
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
margin: 0 10px;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.btn-link:hover {
background-color: #66BB6A;
}