:root {
    --bg-color: #f0f2f5;
    --primary-color: #ffffff;
    --accent-color: #6a1b9a;
    --gradient-1: #9b51e0;
    --gradient-2: #4a2c7a;
    --text-color: #1c1f30;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    overflow: hidden;
}

.container {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin: 50px auto 80px;
}

h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--accent-color);
}

.coin {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    margin: 30px auto;
}

.side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
}

.heads {
    background-image: url('HEADS.png');
    transform: rotateY(0deg);
}

.tails {
    background-image: url('TAILS.png');
    transform: rotateY(180deg);
}

.status {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;
    min-height: 25px;
}

.button {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
    color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--gradient-1), var(--gradient-2));
    margin-top: 25px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

footer {
    background-color: var(--bg-color);
    text-align: center;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.footer-links {
    color: #555;
    font-size: 0.8em;
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    color: #777;
    font-size: 0.7em;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
}
