
body{
    margin: 0 auto;
    font-family: sans-serif;
    background-image:url("../images/sibafu.png");
    /* background-image:url("https://github.com/kyo3210/janken_kadai02/blob/main/images/sibafu.png?raw=true"); */
}

#back{
    height: 100vh;
    width: 100vw;
    display: grid;
    place-content: center;
    place-items: center;
    font-weight: bold;
}

#sample{
    display: flex;
    font-size: 20px;
    color: #2e3834;  
}

.png{
    border: 7px ridge #0080009a;
    margin: 5px;
}

#sample img{
    width: 100px;
    vertical-align: top
}


#messege{
    font-size: 25px;
    font-family: arial;
	font-weight: bold;
	color: transparent;
    background: #fbfcfb;
    background: #000;
    text-shadow: 5px 3px 3px rgba( 255, 255, 255, 0.5);
	-webkit-background-clip: text;
}


h1{
    font-family: arial black;
	font-size: 60px;
	font-weight: bold;
	color: transparent;
    background: #000;
    text-shadow: 5px 3px 3px rgba( 255, 255, 255, 0.5);
	background-clip: text;
	-webkit-background-clip: text;
    margin: 0px;
}

#setumei{
    font-family: arial black;
    font-size: 25px;
    background: #000;
    font-weight: bold;
    color: transparent;
    text-shadow: 5px 3px 3px rgba( 255, 255, 255, 0.5);
	background-clip: text;
	-webkit-background-clip: text;
}

#game{
    display: grid;
    grid-template-rows: repeat(3,150px);
    grid-template-columns: repeat(3,150px);
    grid-gap: 5px;
    border: 10px ridge #ffa500;

}

.cell{
    position: relative;
    font-size: 100px;
    font-weight: bold;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffffd0;
    /* backdrop-filter: blur(3px); */
    color: #ffb366;
}


.cell back{
    background-color: #ffffff07;
}

.button_section{
  margin-top: 10px;
  display: flex;
  justify-content: center;
  max-width: 500px;
}

#button_g,#button_c,#button_p{
    padding: 0;
    background-color:transparent;
    position: relative;
    border: none;
    overflow: hidden;
    }

button p{
    margin: 0px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: bold;    
    position: absolute;/*重ねたい子要素にabsolute*/
    top:50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
    -webkit-transform: translate(-50%,-50%);/*ベンダープレフィックス*/
    transform: translate(-50%,-50%);/*センター寄せの修正*/
  	font-size: 35px;
	font-weight: bold;
	color: transparent;
    background: #2e3834;
    text-shadow: 5px 3px 3px rgba( 255, 255, 255, 0.5);
	background-clip: text;
	-webkit-background-clip: text;
}

button img{
 width: 90%;
}

.cell img{
    width: 70%;
    height: 70%;
}


/* 勝敗マークの共通スタイル */
.result-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: bold;
    z-index: 10; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* --------------------------------- */
/* 勝敗によるセルの状態定義 */
/* --------------------------------- */

.cell.win {
    background-color: rgba(128, 128, 128, 0.4) !important; 
    border-color: #aaa;
    opacity: 1;
}

.cell.lose {
    /*background-color: #f0f0f0 !important; /* 初期色に戻す */
    /*border-color: #ccc; /* 初期色に戻す */
    background-color: rgba(128, 128, 128, 0.4) !important; 
    border-color: #aaa;
    opacity: 1;

}


.cell.draw {
    /*background-color: #f0f0f0 !important; /* 初期色に戻す */
    /*border-color: #ccc; /* 初期色に戻す */
    background-color: rgba(128, 128, 128, 0.4) !important; 
    border-color: #aaa;
    opacity: 1;
}

.result-mark.win-mark{
    color: #ffb366;
}

.result-mark.lose-mark{
    color: #f85e53f5;

}

.result-mark.draw-mark {
    color: #3d2cf8;
}



/* アニメーション用のボールのスタイル */
.janken-ball {
    position: absolute; /* 絶対位置で配置 */
    width: 40px; /* ボールのサイズ */
    height: 40px;
    background-color: rgb(245, 72, 9); /* オレンジ色 */
    border-radius: 50%; /* 円形にする */
    z-index: 1000; /* 他の要素の上に表示 */
    display: none; /* 初期状態では非表示 */
}

/* ボールがターゲットに移動するアニメーション */
@keyframes flyToCell {
    from {
        opacity: 1;
        transform: translate(0, 0);
    }
    to {
        opacity: 0;
        transform: translate(var(--target-x), var(--target-y)); /* JavaScriptで座標を設定 */
    }
}

#maru{
    color: #ffb366;

}

#batu{
    color: #f85e53f5;
    font-weight: bold;
    font-size: 25px;
}

#sankaku {
    color: #3d2cf8;
    font-weight: bold;
    font-size: 24px;

}



/* スライダーのコンテナ */
#main-view {
    position: relative; /* ボタンを配置するために必要 */
    width: 120px; /* パネル画像の幅に合わせる */
    height: 120px; /* パネル画像の高さに合わせる */
    margin: 10px auto;
    padding: 0 30px;
    /* overflow: hidden; 画像がはみ出さないように */
    display: flex;
}

/* 個々のスライドアイテム */
.slide-item {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 初期状態ではすべての画像を非表示にする */
    display: none;
}

/* 最初の画像だけを初期表示する */
/* (JavaScriptでも設定可能ですが、CSSで設定すると確実です) */
#main-view .slide-item:first-child {
    display: block; 
    
}

.slide-item{
    height: 100px;
}

/* ボタンのスタイル */
#prev-button, #next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 10;
}

#prev-button {
    left: 0;
}

#next-button {
    right: 0;
}