html {
    overflow: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f8ff; /* 明るい背景色 */
    color: #333333;
    margin: 0;
    padding: 0;
    text-align: center;
}

#game-container {
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
}

.esa {
    width: 25%; /* 餌の幅を元のサイズの20%に設定 */
    position: absolute; /* 絶対位置指定 */
    margin-right: 50px; /* 右側のマージンを増やす */
    right: -50px; /* 鳥の右側に配置 */
    top: 50%; /* 中央に配置 */
    transform: translateY(-50%); /* Y軸中央に配置 */
}


button {
    flex: 1; /* 各ボタンが均等にスペースを取るように */
    touch-action: manipulation; /* ズームや二重タップによるスクロールを防止 */
    background-color: #4caf50; /* 鮮やかな緑色 */
    color: white;
    border: none;
    padding: 10px 0px;
    margin: 0 5px; /* ボタン間のマージン */
    border-radius: 5px;
    font-size: 18px;
    box-shadow: 0 4px #2e7d32;
    cursor: pointer;
    width: 100%;
}

button:active {
    box-shadow: 0 2px #2e7d32;
    transform: translateY(2px);
}

button[disabled] {
    background-color: #cccccc;
    cursor: default;
}

#money, #timer, #game-over-text, #score-text {
    font-size: 24px;
    margin: 20px 0;
}

#birds-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.bird {
    width: 50%; /* 初期サイズを50%に設定 */
    height: auto;
    font-size: 32px;
    margin: 5px;
    /*  transition: width 3s; */ /* ここでアニメーションを設定 */
}

.bird.grown {
    width: 100%; /* 成長した鳥のサイズを100%に設定 */
}


.grown {
    font-size: 64px;
}

#game-over-message {
    display: none;
    font-size: 24px;
    color: #ff4500; /* 赤色のテキスト */
    margin-top: 20px;
}

#reset-button {
    background-color: #ff6347; /* トマト色 */
    box-shadow: 0 4px #d35400;
}

@media (max-width: 600px) {
    .buy-bird {
        font-size: 14px; /* フォントサイズを小さくする */
        padding: 8px 4px; /* パディングを調整 */
        text-align: center; /* テキストを中央揃えに */
    }


    .buy-bird {
        text-align: center; /* テキストを中央揃えに */
    }

    #money, #timer, #game-over-text, #score-text {
        font-size: 20px;
    }

    .bird, .grown {
        font-size: 48px; /* スマートフォンでは大きめのサイズに */
    }
}


#footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* フッターの背景色 */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    box-sizing: border-box;
}

.button-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}


/* 出荷ボタンのスタイル */
#ship-button {
    background-color: #DE653C; /* オレンジ色に変更 */
    /* その他のスタイル... */
}

#ship-button:not([disabled]) {
    animation: highlight 0.5s ease-out;
}

/* キラッと光るエフェクトのアニメーション */
@keyframes highlight {
    0% {
        box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #DE653C, 0 0 40px #DE653C, 0 0 50px #DE653C, 0 0 60px #DE653C, 0 0 70px #DE653C;
    }
    100% {
        box-shadow: 0 0 5px #DE653C, 0 0 10px #DE653C, 0 0 15px #DE653C, 0 0 20px #DE653C, 0 0 25px #DE653C, 0 0 30px #DE653C, 0 0 35px #DE653C;
    }
}

/* 出荷ボタン無効時のスタイル */
#ship-button[disabled] {
    background-color: #cccccc; /* 灰色 */
}

.growing {
    animation: growBird 3s forwards; /* アニメーションを適用 */
}

@keyframes growBird {
    from {
        width: 50%; /* 開始時のサイズ */
    }
    to {
        width: 100%; /* 終了時のサイズ */
    }
}

@keyframes grow {
    from { width: 50%; }
    to { width: 100%; }
}

.bird-container {
    position: relative; /* 相対位置指定 */
}

#sound-control {
    position: absolute;
    top: 110px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    background-color: #f0f8ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ホバー時のスタイル変更 */
#sound-control:hover {
    background-color: #e0e8ff;
}



#game-info {
    margin: 20px;
    padding: 10px;
    background-color: #f0f8ff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#game-info h1, #game-info h2 {
    color: #333;
    margin: 10px 0;
}

#game-info p {
    margin: 5px 0;
}

#game-info img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

#footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    box-sizing: border-box;
}

#game-timer-container {
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd; /* 下線（お好みで） */
    margin-bottom: 20px; /* 鳥のコンテナとの間隔 */
    text-align: left; /* 左寄せ */
    display: block; /* ブロックレベル要素として扱う */
    margin-top: 10px; /* 上部の余白 */
}

#game-timer {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #f2f2f2; /* 背景色（お好みで） */
}

#money, #timer {
    font-weight: bold; /* テキストを太く表示 */
}



#top-container {
    text-align: center;
    padding: 20px;
}

.top-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.button {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
    display: inline-block;
}

#game-description {
    margin: 20px 0;
}

#other-games {
    margin-top: 40px;
}

/* モーダルウィンドウのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px 20px 40px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 56px;
    font-weight: bold;
    margin-top: 30px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* ランキングテーブルのスタイル */
table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.my-table td {
    vertical-align: middle;
}

.first-place-icon {
    vertical-align: middle;
}

button {
    touch-action: manipulation; /* タップ時のズームや二重タップによるスクロールを防止 */
}

#submit {
    font-size: 16px;
    padding: 5px 10px;
}
