:root {
    --primary: #ff4655;
    --secondary: #00f2ff;
    --dark: #0b0e14;
    --card: #161b22;
}
#gameSearch {
    width: 90%;
    max-width: 400px;
    padding: 12px 20px;
    margin-top: 20px;
    background: #1a1f29;
    border: 1px solid #ff4655; /* لون متناسق مع كلمة GENERATOR */
    border-radius: 5px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    outline: none;
}

#gameSearch::placeholder {
    color: #666;
}

body {
    background-color: var(--dark);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding: 0;
}

.header { text-align: center; padding: 40px 20px; }
.header h1 span { color: var(--primary); }

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

.game-card {
    background: var(--card);
    border: 1px solid #30363d;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    transition: 0.3s;
}

.game-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.game-card img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 10px; }

/* Sharp Gaming Buttons */
.action-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    transition: 0.2s;
    font-size: 1rem;
}
/* This controls the logo size on the amount selection page */
#headerLogo {
    width: auto;
    max-width: 150px; /* Adjust this number to make it smaller or bigger */
    height: auto;
    max-height: 100px; 
    margin: 0 auto 15px auto;
    display: block;
    object-fit: contain;
}

/* Ensure the container doesn't force it to stretch */
.card img {
    max-width: 150px;
    height: auto;
}

.action-btn:hover { background: #ff5e6a; box-shadow: 0 0 15px var(--primary); }

/* Resource Page */
/* Center the main container on the screen */
.container { 
    display: flex; 
    flex-direction: column; /* Stack vertically */
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 15px;
    width: 100%;
}

/* The card that holds the amounts */
.card { 
    background: var(--card); 
    width: 100%; 
    max-width: 400px; /* Keep it narrow enough for phones */
    padding: 25px; 
    border-radius: 15px; 
    border: 1px solid var(--secondary); 
    text-align: center;
    margin: 0 auto; /* Force horizontal centering */
}

/* Fix the Amount Divs */
#amountList {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items inside the list */
    width: 100%;
    margin-top: 20px;
}

.amount-item {
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Icon left, Text middle, Button right */
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    width: 100%; /* Fill the card width */
    max-width: 350px;
    cursor: pointer;
    transition: 0.3s;
}

.amount-item:hover {
    border-color: var(--secondary);
    background: rgba(0, 242, 255, 0.1);
    transform: scale(1.02);
}

/* Ensure the button inside the amount div looks good */
.main-btn-small {
    padding: 6px 12px;
    background: var(--secondary);
    color: #000;
    font-weight: bold;
    border: none;
    font-size: 0.8rem;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.amount-item {
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    margin: 10px 0;
    border: 1px solid transparent;
    cursor: pointer;
}
.amount-item:hover { border-color: var(--secondary); background: rgba(0, 242, 255, 0.1); }
.amount-item img { width: 35px; height: 35px; }

input {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    background: #0d1117;
    border: 1px solid #30363d;
    color: white;
    border-radius: 4px;
}

.success-text { color: #22c55e; }
.back-btn { position: absolute; top: 20px; left: 20px; background: none; color: white; border: 1px solid white; cursor: pointer; padding: 5px 10px; }