body{
    margin:0;
    font-family:'Minecraft', sans-serif;
    background:#c7d8de;
}

/* HEADER */
header{
    background:linear-gradient(180deg,#c6002b,#e63b63);
    color:white;
    text-align:center;
    padding:20px;
    font-size:28px;
}

/* CONTAINER */
.container{
    background:#a9c0c8;
    margin:30px auto;
    width:90%;
    max-width:420px;
    padding:20px;
    border-radius:20px;
}

.title{
    text-align:left;
    margin-left:10px;
}

/* CARD */
.rank-card{
    background:#eee;
    border-radius:18px;
    padding:25px;
    margin:25px 0;
    text-align:center;
    box-shadow:0 4px 0 #cfcfcf;
}

.rank-card img{
    width:120px;
}

.price{
    color:#4caf50;
    font-size:18px;
}

.rank-card button{
    background:#67c34a;
    border:none;
    padding:14px 25px;
    color:white;
    font-weight:bold;
    border-radius:12px;
    cursor:pointer;
    box-shadow:0 5px 0 #3f8e2c;
}

/* POPUP BACKGROUND */
.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    z-index:9999;

    display:flex;
    justify-content:center; /* horizontal center */
    align-items:center;     /* vertical center */

    padding:10px;
}

/* POPUP BOX */
.popup-box{
    background:white;
    width:100%;
    max-width:400px;
    max-height:90vh;          /* scroll if content too tall */
    padding:20px;
    border-radius:20px;

    display:flex;
    flex-direction:column;
    gap:12px;
    overflow-y:auto;          /* scroll inside box */

    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}


/* INPUTS + SELECT */
input, select{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:14px;
}

/* QR */
.qr-box{
    background:#f3f3f3;
    padding:15px;
    border-radius:15px;
    text-align:center;
}

.qr-box img{
    width:180px;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.qr-box p{
    margin-top:8px;
    font-size:14px;
    color:#555;
}

/* TOTAL */
.total{
    background:#eee;
    padding:15px;
    border-radius:10px;
    text-align:center;
    font-weight:bold;
}

/* BUTTONS 3D */
.submit{
    width:100%;
    background:linear-gradient(#6bdc4c,#4caf50);
    color:white;
    padding:15px;
    border:none;
    border-radius:12px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 6px 0 #2e7d32;
    transition:0.15s;
}

.submit:hover{ transform:translateY(-2px); box-shadow:0 8px 0 #2e7d32; }
.submit:active{ transform:translateY(4px); box-shadow:0 2px 0 #2e7d32; }

.close{
    width:100%;
    background:linear-gradient(#9e9e9e,#757575);
    color:white;
    padding:13px;
    border:none;
    border-radius:12px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 6px 0 #424242;
    transition:0.15s;
}

.close:hover{ transform:translateY(-2px); box-shadow:0 8px 0 #424242; }
.close:active{ transform:translateY(4px); box-shadow:0 2px 0 #424242; }

/* Inputs + Select */
input, select{
    width:100%;
    padding:20px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:14px;
}

/* QR BOX */
.qr-box{
    background:#f3f3f3;
    padding:10px;
    border-radius:15px;
    text-align:center;
}

.qr-box img{
    width:100px;
    border-radius:6px;
    box-shadow:0 4px 6px rgba(0,0,0,0.2);
}

.qr-box p{
    margin-top:5px;
    font-size:9px;
    color:#555;
}

/* Total */
.total{
    background:#eee;
    padding:30px;
    border-radius:10px;
    text-align:center;
    font-weight:bold;
}

/* PAY 3D BUTTON */
.submit{
    width:100%;
    background:linear-gradient(#6bdc4c,#4caf50);
    color:white;
    padding:15px;
    border:none;
    border-radius:12px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 6px 0 #2e7d32;
    transition:0.15s;
}

.submit:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 0 #2e7d32;
}

.submit:active{
    transform:translateY(4px);
    box-shadow:0 2px 0 #2e7d32;
}

/* CLOSE BUTTON 3D */
.close{
    width:90%;
    background:linear-gradient(#9e9e9e,#757575);
    color:white;
    padding:13px;
    border:none;
    border-radius:12px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 6px 0 #424242;
    transition:0.15s;
}

.close:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 0 #424242;
}

.close:active{
    transform:translateY(4px);
    box-shadow:0 2px 0 #424242;
}

.menu-btn{
    font-size:28px;
    cursor:pointer;
    color:white;
}

.side-menu{
    position:fixed;
    top:0;
    right:-200px;
    width:200px;
    height:30%;
    background:#c4002f;
    transition:0.6s;
    padding-top:50px;
    z-index:50;
}

.side-menu.active{
    right:0;
}

.side-menu a{
    display:block;
    text-align:center;
    padding:20px;
    color:white;
    text-decoration:none;
    font-size:22px;
    font-weight:bold;
}

.rank{
    background:yellow;
    color:#c4002f !important;
    margin:20px;
    border-radius:30px;
}

.popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    justify-content:center;
    align-items:center;
    animation:fade .3s;
}

.popup-box{
    animation:pop .35s ease;
}

@keyframes fade{
from{opacity:0}
to{opacity:1}
}

@keyframes pop{
from{transform:scale(.7)}
to{transform:scale(1)}
}

/* ===== QR BOX ===== */
.qr-box{
    background:#f3f3f3;
    padding:15px;
    border-radius:15px;
    text-align:center;
    margin-bottom:15px;
}

.qr-box img{
    width:180px;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.qr-box p{
    margin-top:8px;
    font-size:14px;
    color:#555;
}

.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    z-index:100;
}

.popup-box{
    background:white;
    padding:20px;
    border-radius:20px;
    width:90%;
    max-width:380px;
    max-height:80vh;
    overflow:auto;
}

.close{
    float:right;
    font-size:10px;
    cursor:pointer;
}

/* VERSION ROW */
.version-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#9e9e9e;
    padding:5px;
    border-radius:5px;
    margin:5px 0;
}

/* IMAGE */
.version-item img{
    width:50px;
    height:50px;
    border-radius:10px;
}

/* BUTTON 3D */
.version-item button{
    background:#63c04d;
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    box-shadow:0 5px #3c8f2e;
}

.version-item button:active{
    transform:translateY(3px);
    box-shadow:0 2px #3c8f2e;
}