body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(90deg, rgba(151, 77, 252, 0.75), rgba(51, 203, 255, 0.75)), url("images/background.jpg") no-repeat center center fixed;
    background-size: cover;
    backdrop-filter: blur(6px);
    animation: none; 
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#turret {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 150px;
    z-index: 100;
    opacity: 0.9;
    transition: transform 0.3s, opacity 0.3s;
}

#turret:hover {
    transform: scale(1.1);
    opacity: 1;
}

#wrapper {
    position:relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 50px);
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: none;
}

#container {
    position: relative;
    display: flex; 
    width: 1090px; 
    height: 700px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
}

#header {
    text-align: center;
    font-size: 44px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 30px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

#gameCanvas {
    position: relative;
    width: 700px; 
    height: 700px; 
    background: linear-gradient(135deg, #1e90ff, #87cefa);
    border-radius: inherit;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

#gameMenu {
    position: absolute;
    top: 0;
    right: 0px;
    width: 290px;
    height: 100%;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 0 15px 15px 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#menuInfo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #ddd;
    background: rgba(40, 40, 40, 0.7);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#menuInfo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#menuInfo h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 18px;
    padding-left: 15px;
    margin: 0;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.menu-stat {
    display: flex;
    align-items: center;
    gap: 10px; 
    flex-direction: row; 
    justify-content: flex-start;
}

#Money, #Health, #Wave {
    font-size: 20px;
    font-weight: 700;
    color: white;
    font-family: 'Russo One', sans-serif;
    margin-left: 5px; 
}

#menuButtons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

#menuButtons button {
    height: 65px;
    width: 100%;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    border: none;
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.8), rgba(40, 40, 40, 0.8));
    color: white;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#menuButtons button:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, #007acc, #005f99);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 122, 204, 0.5);
}

#menuButtons button:active {
    transform: translateY(1px);
}

.autoStartToggle {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    font-family: 'Exo 2', sans-serif;
    margin-top: 5px;
    color: #FFD700;
}

.hoverButton {
    position: relative;
    background-color: transparent;
    color: white;
    border: 2px solid #007acc;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hoverButton .hoverText {
    position: absolute;
    right: 220px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    text-align: center;
    visibility: hidden;
    z-index: 10000;
}

.hoverButton:hover .hoverText {
    visibility: visible;
}

.hoverButton:hover {
    background-color: #005f99;
}

.popupMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
    z-index: 10;
}

#healthPopup, #moneypopup, #bossWarningPopup, #minionWarningPopup {
    position: fixed;
    left: 55%;
    padding: 11px 12px;
    width: 90px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateX(-50%) translateY(20px);
}


#healthPopup {
    top: 95px;
    background: linear-gradient(45deg, #eb6685, #f05d44);
    color: white;
}

#moneypopup {
    top: 30px; 
    background: linear-gradient(45deg, #eed12c, #FFA500);
    color: white;
}

#bossWarningPopup {
    top: 160px;
    left: 50%;
    width:100px;
    background: linear-gradient(45deg, #100846, #262ba8);
    color: white;
    font-size: 16px;
}

#minionWarningPopup {
    top: 210px;
    left: 50%;
    width: 140px;
    background: linear-gradient(45deg, #ff6600, #ffaa00);
    color: white;
    font-size: 16px;
    animation: pulseWarning 0.6s infinite alternate;
}

@keyframes pulseWarning {
    0% { transform: translateX(-50%) translateY(20px) scale(1); }
    100% { transform: translateX(-50%) translateY(20px) scale(1.05); }
}

#healthPopup.show, 
#moneypopup.show, 
#bossWarningPopup.show,
#minionWarningPopup.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    animation: popup 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popup {
    0% {
        transform: scale(0.3) translateY(20px);
        opacity: 0;
    }
    70% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#healthPopup:hover,
#moneypopup:hover,
#bossWarningPopup:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#footer {
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    padding: 10px;
    width: 100%;
    position: relative; 
}

#message
{
    color: white;
    font-size: 15px;
    text-align: center;
    margin-top: 20px;
    line-height: 0;
}

.popupMenu {
    position: absolute;
    top: 50%;
    right: 55%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    border-radius: 12px;
    padding: 15px;
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
    text-align: center;
    
}

.popupMenu button {
    background: linear-gradient(145deg, #007acc, #005f99);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    gap: 10px;
    margin: 2px;
}

.popupMenu button:hover {
    background: linear-gradient(145deg, #005f99, #003f66);
    transform: translateY(-2px);
}

.popupMenu button img {
    width: 85px;
    height: 85px;
    
}

.popupMenu button:active {
    transform: translateY(1px);
}


#turretMenu button{
    width: 200px;
}


#garbage {
    position: absolute;
    bottom: 10px; 
    left: 10px; 
    width: 70px; 
    height: auto;
    z-index: 10; 
    pointer-events: none; 
  }


#openTutorialButton {
    position: fixed;
    bottom: 7cap;
    right: 50px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #004080);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 123, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    overflow: hidden;
    font-size: 22px;
}


.tutorial-icon {
    
    color: white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

#openTutorialButton:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 123, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
}

#openTutorialButton:hover .tutorial-icon {
    animation: tutorialPulse 1.5s infinite;
}

#openTutorialButton:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #0056b3, #003366);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
@keyframes tutorialPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#openTutorialButton:before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #00e0ff);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#openTutorialButton:hover:before {
    opacity: 0.4;
    animation: tutorialRotate 3s linear infinite;
}



.tip-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 12px;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
}

table td {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

#stats-table th {
    background-color: #007bff;
    color: #fff;
}

.tip-image {
    width: 100%;
    max-width: 400px; 
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-content {
    display: none; 
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
}

.dropdown-toggle {
    margin-top: 5px;
    padding: 8px 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.dropdown-toggle:hover {
    background: #0056b3;
}

#wizard-placement {
    width: 120px;
}

#bad-placement {
    width: 220px;
}

.enemy-card canvas {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    image-rendering: pixelated;
  }
  
.enemies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-around;
  }
  
  .enemy-card {
    width: 200px;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
  }
  
  .enemy-card img {
    width: 100px;
    height: auto;
    border-radius: 5px;
  }
  
  .enemy-card h3 {
    margin: 10px 0;
  }
  
  .enemy-card p {
    font-size: 14px;
    color: #666;
  }
  
.turret-info {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 760px;
    height: 140px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    color: #fff;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Exo 2', sans-serif;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
    z-index: 50;
    transition: all 0.3s ease-in-out;
}

.turret-info h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 1px;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    text-align: center;
    font-family: 'Russo One', sans-serif;
}

.turret-info .info-container {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    align-items: center;
    height: 100px;
}

#turretCurrentStats,
#turretNextStats {
    background: rgba(60, 60, 60, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    line-height: 1.4em;
    width: 200px;
    height: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#upgradeCostLabel {
    position: absolute;
    top: 15px;
    right: 210px;
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    text-align: center;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    font-family: 'Russo One', sans-serif;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.upgrade-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

.turret-info .buttons-container {
  display: flex;
  gap: 10px; 
}

.damage-counter {
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 5px 15px;
    background: rgba(60, 60, 60, 0.5);
    border-radius: 20px;
    font-size: 14px;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Exo 2', sans-serif;
}

#upgradeButton {
    position: absolute;
    padding: 15px 25px;
    height: 80px;
    width: 170px;
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    top: 55px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Exo 2', sans-serif;
}

#upgradeButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #5BBD60, #43A047);
}

#upgradeButton.blue {
    background: linear-gradient(145deg, #388E3C, #2E7D32);
}

#upgradeButton.blue:hover {
    background: linear-gradient(145deg, #43A047, #388E3C);
}

#upgradeButton.red {
    background: linear-gradient(145deg, #ef5350, #d32f2f);
}

#upgradeButton.red:hover {
    background: linear-gradient(145deg, #f44336, #e53935);
}

#sellButton {
    position: absolute;
    top: 6px;
    left: 10px;
    padding: 8px 20px;
    height: 35px;
    background: linear-gradient(145deg, #FFA726, #FB8C00);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#sellButton:hover {
    background: linear-gradient(145deg, #FB8C00, #F57C00);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}


#leaderboardPrompt {
    position: fixed;
    top: 220px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 300px;
    background: linear-gradient(45deg, #00838f, #006064);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

#leaderboardPrompt.show {
    visibility: visible;
    opacity: 1;
    animation: floatNotification 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


#openLeaderboardBtn {
    position: fixed;
    bottom: 13cap;
    right: 50px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #5c6bc0, #3949ab);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
}

#openLeaderboardBtn:before {
    content: "🏆";
    font-size: 20px;
}

#openLeaderboardBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #3949ab, #283593);
}


#leaderboardPopup {
    width: 800px;
    max-height: 80vh;
    background: linear-gradient(145deg, #1a237e, #121858);
    border-radius: 20px;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#leaderboardPopup .popup-header {
    background: linear-gradient(90deg, #38428f, #242c7e);
    padding: 20px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#leaderboardPopup .popup-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    color: white;
}

#leaderboardPopup .popup-content {
    padding: 30px;
    color: white;
}

#addEntryButton {
    width: 100%;
    max-width: 250px;
    padding: 12px 25px;
    margin: 0;
    background: linear-gradient(135deg, #64b5f6, #2196f3);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#addEntryButton:hover {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

#leaderboardContents {
    padding: 15px;
    max-height: calc(80vh - 200px);
    overflow-y: auto;
    display: grid;
    gap: 15px;
}

.leaderboard-entry {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease;
}

.leaderboard-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: 300px;
    margin: 0 auto 20px auto;
}


.leaderboard-entry:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.entry-rank {
    font-size: 24px;
    font-weight: bold;
    color: #64b5f6;
}

.entry-name {
    font-size: 18px;
}

.entry-score {
    font-weight: bold;
    color: #81c784;
}

.entry-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    min-width: 100px;
    text-align: right;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.prompt-content {
    text-align: center;
}

.trophy-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: inline-block;
    animation: bounce 1s infinite;
}
.leaderboard-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
}


.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

.leaderboard-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
}

#leaderboardPopup {
    display: none;
}

#leaderboardPopup.show {
    display: block;
}


.leaderboard-filters {
    width: 100%;
    max-width: 250px;
    margin: 0;
    position: relative;
}

#difficultyFilter {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    background: linear-gradient(145deg, #283593, #1a237e);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#difficultyFilter:hover {
    background: linear-gradient(145deg, #3949ab, #283593);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#difficultyFilter:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.4);
}

#difficultyFilter option {
    background-color: #1a237e;
    color: white;
    padding: 12px;
    font-size: 14px;
}

.leaderboard-filters::after {
    content: '▼';
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.leaderboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}


#leaderboardContents::-webkit-scrollbar {
    width: 8px;
}

#leaderboardContents::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#leaderboardContents::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#leaderboardContents::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.success-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.success-popup.show {
    opacity: 1;
    visibility: visible;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translate(-50%, -20px); }
    to { transform: translate(-50%, 0); }
}


@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Exo+2:wght@400;600;700&display=swap');

#turretMenu.turret-shop-active {
    display: flex !important; 
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Changed from flex-start to space-between */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.95); 
    backdrop-filter: blur(8px);
    border-radius: 0 15px 15px 0; 
    padding: 20px;
    box-sizing: border-box;
    z-index: 150; 
    font-family: 'Exo 2', sans-serif;
    overflow: visible; /* Ensures tooltips can appear outside */
}
.turret-shop-scroll-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: calc(100% - 70px); /* Leave space for controls at bottom */
    position: relative;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 20px; /* Compensate for scrollbar width */
    margin-right: -20px; /* Offset the padding */
}

.turret-shop-scroll-container::-webkit-scrollbar {
    width: 10px;
}

.turret-shop-scroll-container::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.5);
    border-radius: 0 8px 8px 0;
}

.turret-shop-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    border-radius: 5px;
    border: 2px solid rgba(20, 20, 20, 0.7);
}

.turret-shop-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, #5BBD60, #43A047);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
.turret-shop-header {
    display: flex;
    justify-content: space-between;
    width: 90%;
    background: rgba(40, 40, 40, 0.7);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 0px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.shop-stat img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.shop-stat-value {
    font-family: 'Russo One', sans-serif;
    font-size: 1.2em;
    color: #FFD700; 
}

.shop-title {
    width: 100%;
    text-align: center;
    margin: 0 0 10px 0;
    color: #FFD700;
    font-family: 'Russo One', sans-serif;
    font-size: 1.5em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    letter-spacing: 1px;
}



.turret-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
    width: 90%;
    margin: 0 auto 0 auto; 
    padding: 10px; 
}

.turret-shop-item {
    position: relative; 
    background: linear-gradient(145deg, rgba(60, 60, 60, 0.8), rgba(40, 40, 40, 0.8));
    border: 2px solid #4CAF50; 
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 140px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000; 
}

.turret-shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
    border-color: #8BC34A;
    z-index: 1001; 
}

.turret-shop-item:nth-child(1) .turret-tooltip,
.turret-shop-item:nth-child(2) .turret-tooltip {
    bottom: auto;
    top: 125%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500; 
}


.turret-shop-item:nth-child(1) .turret-tooltip:after,
.turret-shop-item:nth-child(2) .turret-tooltip:after {
    top: -10px; 
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    border-color: transparent transparent rgba(20, 20, 20, 0.95) transparent;
}


.turret-shop-item:nth-child(1):hover .turret-tooltip,
.turret-shop-item:nth-child(2):hover .turret-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(5px); 
}

.turret-shop-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.turret-shop-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #888;
}

/* .turret-shop-item.disabled:hover {
    transform: none;
    box-shadow: none;
} */

.turret-name {
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 32px;
}

.price-tag {
    position: absolute;
    bottom: 10px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Russo One', sans-serif;
}


.turret-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%; 
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 230px; 
    min-width: 220px; 
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    color: #FFD700 !important; 
    text-align: left;
    padding: 15px;
    border-radius: 10px;
    z-index: 1200; 
    transition: all 0.3s ease;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    pointer-events: none; 
    border: 1px solid rgba(76, 175, 80, 0.3);
    
    box-sizing: border-box; 
    margin: 0;
}

.turret-tooltip * {
    color: #FFD700 !important;
}


.turret-shop-item:hover .turret-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}



.turret-shop-item:nth-child(3):hover .turret-tooltip,
.turret-shop-item:nth-child(4):hover .turret-tooltip {
    transform: translateX(0) translateY(-5px);
}


.turret-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: rgba(20, 20, 20, 0.95) transparent transparent transparent;
}



.tooltip-title {
    color: #FFD700;
    font-family: 'Russo One', sans-serif;
    font-size: 1.2em;
    margin: 0 0 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 5px;
}

.tooltip-description {
    color: #FFA500 !important;
    margin: 5px 0 8px 0;
    font-style: italic;
    font-size: 0.85em;
    line-height: 1.2;
}

.tooltip-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 8px;
    margin-top: 8px;
    font-size: 0.85em;
}

.stat-label {
    color: #8BC34A !important; 
    font-weight: 600;
    text-align: right;
}

.stat-value {
    color: #FFD700 !important;
}

#cancelTurretSelectionButton {
    background: linear-gradient(145deg, #f44336, #d32f2f);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 80%;
    max-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#cancelTurretSelectionButton:hover {
    background: linear-gradient(145deg, #d32f2f, #b71c1c);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}




.turret-shop-item:nth-child(1) .turret-tooltip,
.turret-shop-item:nth-child(3) .turret-tooltip {
    left: 10px;
    transform: translateX(0);
}

.turret-shop-item:nth-child(1) .turret-tooltip:after,
.turret-shop-item:nth-child(3) .turret-tooltip:after {
    left: 20%;
}


.turret-shop-item:nth-child(2) .turret-tooltip,
.turret-shop-item:nth-child(4) .turret-tooltip {
    left: auto;
    right: 10px;
    transform: translateX(0);
}




.turret-shop-item:nth-child(3):hover .turret-tooltip,
.turret-shop-item:nth-child(4):hover .turret-tooltip {
    transform: translateX(0) translateY(-5px);
}


.turret-hover-info {
    position: absolute;
    display: none;
    width: 220px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 12px;
    color: white;
    z-index: 100;
    font-family: 'Exo 2', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.turret-hover-title {
    color: #FFD700;
    font-family: 'Russo One', sans-serif;
    font-size: 1.1em;
    margin: 0 0 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 4px;
}

.turret-hover-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 8px;
    font-size: 0.85em;
}

.turret-hover-label {
    color: #8BC34A;
    font-weight: 600;
    text-align: right;
}

.turret-hover-value {
    color: white;
}

#buyText {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#buyText:hover {
    background: linear-gradient(145deg, #5BBD60, #43A047);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#buyText img {
    width: 22px !important;
    height: 22px !important;
}




.difficulty-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,20,40,0.95) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.difficulty-screen .title {
  font-family: 'Arial Black', sans-serif;
  font-size: 3rem;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}

.button-container {
  display: flex;
  gap: 2rem;
}

.difficulty-btn {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.difficulty-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

#cancelSelectionOverlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 290px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    pointer-events: none;
    justify-content: center;
    align-items: center;
}

#cancelSelectionOverlay.active {
    display: flex;
    pointer-events: auto;
}

.difficulty-btn.easy {
  background: linear-gradient(45deg, #4CAF50, #45a049);
}

.difficulty-btn.normal {
  background: linear-gradient(45deg, #ff9800, #f57c00);
}

#cancelSelectionOverlay.hover-red {
    background-color: rgba(255, 0, 0, 0.4);
}

#gameMenu.red-blur {
    filter: blur(1px);
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
}

.overlay-content {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

#cancelSelectionOverlay.hover-red .overlay-content {
    color: #ffdddd;
    background: rgba(139, 0, 0, 0.6);
    border-color: rgba(255, 100, 100, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: 120%; 
    left: 50%;
    transform: translateX(-50%); 
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.tooltip:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.1);
}


.tooltip h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.tooltip p {
    color: #ddd;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.tooltip ul {
    list-style: none;
    padding: 0;
}

.tooltip li {
    color: #fff;
    margin: 8px 0;
    font-size: 0.9em;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.easy-tooltip {
    border-color: rgba(100, 255, 100, 0.3);
}

.normal-tooltip {
    border-color: rgba(255, 200, 100, 0.3);
}


.hard-tooltip {
    border-color: rgba(255, 100, 100, 0.3);
}

.difficulty-btn.hard {
    background: linear-gradient(45deg, #8b0000, #ff0000);
    color: white;
}

.difficulty-btn.hard:hover {
    background: linear-gradient(45deg, #ff0000, #8b0000);
}

.help-text {
    position: absolute;
    bottom: 20%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

.popup.minion-warning {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 1001;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup.minion-warning.show {
    opacity: 1;
}


#powerUpMenu.power-up-shop-active {
    display: flex !important; 
    flex-direction: column;
    align-items: center;
    /* justify-content: space-between; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.95); 
    backdrop-filter: blur(8px);
    border-radius: 0 15px 15px 0; 
    padding: 20px;
    box-sizing: border-box;
    z-index: 150; 
    font-family: 'Exo 2', sans-serif;
    overflow: visible; 
}


.turret-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.turret-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.turret-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.turret-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

.turret-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.turret-card-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.turret-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.turret-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.turret-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}

.quick-stat .stat-label {
    font-weight: 600;
    color: #495057;
}

.quick-stat .stat-value {
    font-weight: 700;
    color: #007bff;
}

.turret-ability {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.ability-label {
    font-weight: 700;
    color: #2e7d32;
    margin-right: 8px;
}

.ability-text {
    color: #388e3c;
    font-style: italic;
}

/* Enhanced Table Styles */
.table-turret-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-turret-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.section-header {
    color: #2c3e50;
    font-size: 1.6rem;
    margin: 30px 0 20px 0;
    padding: 10px 0;
    border-bottom: 3px solid #007bff;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #28a745;
}

/* Power-up Overview Cards */
.powerup-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.powerup-card {
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.powerup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.powerup-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.powerup-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid #ffcc02;
}

.powerup-card-image {
    width: 56px;
    height: 56px;
    margin-right: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
}

.powerup-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d84315;
    margin: 0;
}

.powerup-description {
    color: #5d4037;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
    font-weight: 500;
}

.powerup-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.powerup-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
}

.powerup-stat .stat-label {
    font-weight: 600;
    color: #6d4c41;
}

.powerup-stat .stat-value {
    font-weight: 700;
    color: #e65100;
}

.powerup-tips {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8f5e8 100%);
    padding: 14px;
    border-radius: 10px;
    border-left: 4px solid #9c27b0;
}

.tips-label {
    font-weight: 700;
    color: #7b1fa2;
    margin-right: 8px;
}

.tips-text {
    color: #4a148c;
    font-style: italic;
    line-height: 1.4;
}

/* Power-up Usage Guide */
.powerup-usage-guide {
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.usage-step {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.powerup-notes {
    margin-top: 20px;
    padding: 18px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.powerup-notes h3 {
    margin: 0 0 12px 0;
    color: #155724;
    font-size: 1.2rem;
}

.powerup-notes ul {
    margin: 0;
    padding-left: 20px;
}

.powerup-notes li {
    color: #155724;
    margin: 8px 0;
    line-height: 1.4;
}
