body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

.game-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    margin: 20px auto;
}

.cookie-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    order: 2; /* Place in middle */
}

.left-shop {
    flex: 1;
    order: 1; /* Place on left */
}

.right-shop {
    flex: 1;
    order: 3; /* Place on right */
}

/* Update shop styles */
.shop {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

#mainCookie {
    font-size: 100px;
    cursor: pointer;
    transition: transform 0.3s ease-out, filter 0.3s;
    user-select: none;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#mainCookie:hover {
    filter: brightness(1.2);
}

#counter {
    font-size: 24px;
    margin: 20px;
    color: #ffd700;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.shop-item.unlocked {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.shop-item.locked {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.shop-item:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.shop-item .tooltip {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

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

#bots-info {
    margin: 10px 0;
    color: #00ff00;
    text-align: center;
}

.current-skin {
    margin: 10px 0;
    color: #ffd700;
    text-align: center;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    width: 100%;
}

.tab-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    border-radius: 25px; /* Changed from 5px to 25px for more rounded corners */
    transition: background 0.3s;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.3);
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2, h3 {
    text-align: center;
}

.stats-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.unlocked {
    opacity: 1;
}

.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.unlocked-skins-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.unlocked-skins-section h3 {
    margin-top: 0;
    color: #ffd700;
}

#unlocked-skins-container .shop-item {
    background: rgba(255, 255, 255, 0.1);
}

#unlocked-skins-container .shop-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.reset-button {
    background: rgba(255, 0, 0, 0.3);
    border: none;
    padding: 15px 30px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    margin: 20px auto;
    display: block;
    font-size: 16px;
    transition: background 0.3s;
}

.reset-button:hover {
    background: rgba(255, 0, 0, 0.5);
}

.city-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.map-viewport {
    width: 600px;
    height: 600px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.city-map {
    width: 2400px;
    height: 2400px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.3s;
    cursor: grab;
    background: radial-gradient(circle, rgba(0,255,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.city-map:active {
    cursor: grabbing;
}

.building {
    position: absolute;
    font-size: 64px; /* Increased from 48px */
    transform: translate(-50%, -50%);
    transition: all 0.3s;
    cursor: pointer;
    background: none;
    border: none;
}
.building-shop{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 10px;
    width: 50%;
}

/* Remove hover transform from buildings */
.building:hover {
    /* Remove the transform scale and filter effects */
    transform: translate(-50%, -50%); /* Keep only the centering transform */
}

.building-plot {
    width: 80px; /* Increased from 60px */
    height: 80px; /* Increased from 60px */
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 64px; /* Increased from 48px */
}

/* Remove hover transform from building plots */
.building-plot:hover {
    /* Keep only the base styling, no hover effects needed */
    background: rgba(255, 255, 255, 0.1);
}

@keyframes tapFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.tap-text {
    position: absolute;
    color: white;
    font-size: 20px;
    pointer-events: none;
    z-index: 1000;
}

/* Add styles for ocean tab */
.ocean-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.ocean-stats {
    background: rgba(0, 127, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#coral-counter {
    font-size: 24px;
    color: #ff7f50;
    margin: 10px 0;
}

#coral-per-second {
    font-size: 18px;
    color: #98fb98;
}

.ocean-shop {
    background: rgba(0, 127, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.ocean-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 127, 255, 0.9);
    color: white;
    padding: 15px;
    border-radius: 10px;
    animation: slideIn 0.5s ease-out;
    z-index: 1000;
    max-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.patience-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    font-size: 24px;
    animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }  
    100% { opacity: 0; }
}

/* Loader styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    gap: 20px;
}

.loader-text {
    color: white;
    font-size: 48px;
}

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

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Conteneur principal pour les règles */
.rules-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
    color: #fff;
    line-height: 1.8;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Titre principal */
.rules-container h1 {
    font-size: 32px;
    color: #00ff00;
    text-align: center;
    margin-bottom: 20px;
}

/* Sous-titres */
.rules-container h2 {
    font-size: 24px;
    color: #00cc66;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

/* Texte général */
.rules-container p {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

/* Listes */
.rules-container ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #d6ffd6;
}

.rules-container ul li {
    margin-bottom: 8px;
}

/* Effet lumineux décoratif */
.rules-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.2), transparent);
    top: -50px;
    left: -50px;
    border-radius: 50%;
    z-index: 0;
    animation: glow 5s infinite alternate;
}

/* Animation de l'effet lumineux */
@keyframes glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
