/*ランダムに旅行の行き先を決めるスタイルの設定*/

@charset 'utf-8';

/*全体のスタイル*/
.place_wrapper {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
}

.left_side, .right_side {
    padding: 20px;
}

button {
    color: var(--text_color);
    background-color: var(--main_bg_color);
    border: 1px solid var(--color_three);
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
}

.random_select_place {
    margin: 20px 2rem;
    padding: 10px 30px 30px 30px;
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
}

.random_select_place h2 {
    text-align: center;
}

#roulette {
    width: 100px;
    height: 50px;
}

/*右サイドのスタイル*/
details {
    margin: 20px auto;
    border: 1px solid var(--text_color);
    border-radius: 5px;
}

summary {
    height: 2rem;
    background-color: var(--main_bg_color);
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 0;
}

details hr {
    margin-top: 0;
}

.added_place_list, .add_place_list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
}

.added_place_list li, .add_place_list li {
    padding: 10px;
    background-color: #fff;
    border: 1px solid var(--color_one);
    margin: 5px;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.add_place_form_wrapper {
    display: none;
    margin-top: 20px;
}

/*左サイドのスタイル*/
#result {
    margin: 0 auto;
    letter-spacing: 2px;
}

.loading {
    display: inline-block;
    margin: 5px;
    font-size: 1.8rem;
    color: var(--color_three);
    animation: loading 1.5s infinite;
}
.loading:nth-child(2){
    color: #4d9f51;
    animation-delay: .2s;
}
.loading:nth-child(3){
    color: #68ab6b;
    animation-delay: .3s;
}

@keyframes loading {
    0%{transform: translateY(0);}
    50%{transform: translateY(5px);}
    100%{transform: translateY(0);}
}

.commentary_wrapper {
    display: none;
    padding: 10px;
}

.random_recomend_blog {
    display: none;
    background-color: var(--main_bg_color);
    border: 1px solid var(--text_color);
    border-radius: 10px;
    padding: 5px;
    margin: 20px auto;
}

.ran_rec_list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

/*768px以下の時のスタイル*/
@media (max-width: 768px) {
    .place_wrapper {
        display: block;
    }

    .place_list li {
        flex-direction: column;
    }
}