body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

.emoji {
    font-size: 3rem;
    display: block;
    margin: 1rem 0;
}

.fas {
    margin-right: 0.5rem;
}

header {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

h1 {
    margin: 0;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

nav {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}

section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.rock-animation {
    text-align: center;
    margin: 2rem 0;
}

.rock {
    font-size: 5rem;
    animation: bounce 2s infinite;
    color: #ffd700;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

.rock-types {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.rock-type {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.rock-type:hover {
    transform: translateY(-5px);
}

.emoji {
    font-size: 3rem;
    display: block;
    margin: 1rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.gallery-item:hover {
    background-color: #e0e0e0;
}

.rock-type button {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.rock-type button:hover {
    background-color: #5a67d8;
}

#adopt-form {
    margin-top: 2rem;
    text-align: center;
}

#adoption-form {
    display: inline-block;
    text-align: left;
}

#adoption-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#adoption-form input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#adoption-form button {
    background-color: #48bb78;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#adoption-form button:hover {
    background-color: #38a169;
}

.adopted-rock {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.adopted-rock h4 {
    margin: 0 0 0.5rem 0;
    color: #667eea;
}

.rock-actions {
    margin-top: 1rem;
}

.action-select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #667eea;
    border-radius: 5px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.action-select:focus {
    outline: none;
    border-color: #4299e1;
}

.action-select option:disabled {
    color: #ccc;
    font-style: italic;
}

.action-result-card {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.action-result-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.action-result-card p {
    margin: 0;
    font-size: 1.1rem;
}

.leaderboard-container {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.leaderboard-section {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaderboard-section h3 {
    margin-top: 0;
    color: #667eea;
    text-align: center;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

.rank {
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
}

.rock-info {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.score {
    font-weight: bold;
    color: #48bb78;
    min-width: 80px;
    text-align: right;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .rock-types {
        flex-direction: column;
        align-items: center;
    }
}

.skip-results {
    margin-bottom: 2rem;
}

.skip-result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.skip-result-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.result-details {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.rock-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: #ffd700;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #48bb78;
}

.farewell {
    margin: 1rem 0 0 0;
    font-style: italic;
    opacity: 0.9;
}

footer {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}