.title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 600;
}

.title img {
    width: 42px;
}

.select-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    border: 2px solid #000;
    background: #fff;
    border-radius: 5px;
    padding: 30px 10px;
}

.select-btn {
    background: #000;
    border: 2px solid #000;
    color: #fff;
    width: 100%;
    height: 60px;
    font-size: 18px;
    margin-top: 20px;
    border-radius: 5px;
}

.select-btn:hover {
    opacity: 0.8;
}

.count-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 20px;
}

.coin-container {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    perspective: 1000px;
}

.coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s ease-out;
}

.coin-side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    backface-visibility: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.coin-side.front {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B4513;
}

.coin-side.back {
    background: linear-gradient(45deg, #C0C0C0, #808080);
    color: #333;
    transform: rotateY(180deg);
}

@keyframes shake {
    0% { transform: translate(0, 0) rotate(0); }
    20% { transform: translate(-5px, 0) rotate(-5deg); }
    40% { transform: translate(5px, 0) rotate(5deg); }
    60% { transform: translate(-5px, 0) rotate(-5deg); }
    80% { transform: translate(5px, 0) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0); }
}
.shake {
    animation: shake 0.6s;
}

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

.result {
    font-size: 18px;
    margin-top: 30px;
}

.range-inputs {
    margin: 15px 0;
    display: flex;
    gap: 20px;
}

.range-inputs input {
    width: 80px;
    text-align: center;
    padding: 5px;
    font-size: 16px;
}

.color-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-top: 15px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.description {
    font-size: 16px;
    color: #434343;
    margin-bottom: 10px;
}

.select, .input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 250px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .title img {
        width: 30px;
    }

    .title {
        font-size: 20px;
    }

    .range-inputs {
        justify-content: center;
    }
    
    .result {
        font-size: 16px;
        line-height: 24px;
        text-align: center;
    }

    .select {
        width: 100%;
        font-size: 14px;
    }

    .input {
        width: calc(100% - 20px);
        font-size: 14px;
    }

    .description {
        font-size: 14px;
        text-align: center;
    }
}