@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {
    background-color: #000000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: white;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

.headers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 120px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.KomaruStart {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    justify-content: center;
    background-color: #1a1a1a;
}

.KomaruStart a {
    margin: 10px;
    background-color: lightsteelblue;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s;
    font-size: 1em;
}

.KomaruStart a:hover {
    background-color: steelblue;
    color: white;
}

.clicker_lmao {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

#clicker-img {
    border-radius: 50%;
    width: 250px;  /* Меньше для мобильных */
    height: 250px;
    cursor: pointer;
    transition: transform 0.1s;
}

#clicker-img:active {
    transform: scale(0.95);
}

.Coins_Count {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

footer {
    color: white;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #1a1a1a;
    font-size: 0.9em;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#upgrades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.upgrade {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.upgrade button {
    background-color: lightsteelblue;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upgrade button:hover {
    background-color: steelblue;
    color: white;
}

h1, h2 {
    text-align: center;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    #clicker-img {
        width: 200px;
        height: 200px;
    }

    .KomaruStart a {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .Coins_Count {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .KomaruStart {
        flex-direction: column;
        padding: 10px;
    }

    .KomaruStart a {
        width: 100%;
        text-align: center;
    }

    #clicker-img {
        width: 150px;
        height: 150px;
    }

    .Coins_Count {
        font-size: 1.1em;
    }

    footer {
        font-size: 0.8em;
    }
}
