@charset "UTF-8";

@font-face {
    font-family: 'DotGothic16';
    src: url('./DotGothic16-Regular.woff') format('woff');
}

a:link { color: #A404F2; }
a:visited { color: #777777; }
a:active { color: #777777; }

body {
    background-image: 
        url("./basic-images/background.png"),  
        url("./basic-images/skull-background.jpg");  
    
    background-size: 
        cover,  /* 上の背景を画面いっぱいに */
        250px;   /* 下の背景を 250px で繰り返し */
    
    background-repeat: 
        no-repeat,  /* 上の背景は繰り返さない */
        repeat;  /* 下の背景は繰り返す */
    
    background-attachment: 
        fixed,  /* 上の背景はスクロールしても固定 */
        scroll; /* 下の背景は通常スクロール */
    
    background-position: 
        center,  /* 上の背景を中央揃え */
        left top; /* 下の背景は左上基準 */
}

h1 {
    margin: 0;
    display: inline-block;
}
h2 {
    margin: 0;
    display: inline-block;
}
h3 {
    margin: 0;
    display: inline-block;
}
p {
    margin: 0;
    display: inline-block;
}

.toplogoart {
    max-width: 250px;
    margin: auto;
    text-align: center;
  }
img {
    width: 100%;
}

.title {
    font-family: 'DotGothic16';
    text-align: center;
    margin: auto;
    color: red;
    background-color: black;
    font-size: 15pt;
    max-width: 500px;
    padding: 5px;
    animation: blink 0.3s infinite;   
}
@keyframes blink {
    0%, 49% { color: red; }  /* 49% まで赤 */
    50%, 100% { color: #A404F2; } /* 50% で一気に白へ変わる */
} 

.message1 {
    font-family: 'DotGothic16';
    text-align: center;
    margin: auto;
    color: white;
    border: #A404F2 solid 3px;
    background-color: black;
    font-size: 10pt;
    max-width: fit-content;
    padding: 10px;
    margin-top: 10px;
}

.message2 {
    font-family: 'DotGothic16';
    text-align: center;
    margin: auto;
    color: white;
    border: #A404F2 solid 3px;
    background-color: black;
    font-size: 10pt;
    max-width: 400px;
    padding: 10px;
    margin-top: 10px;
}

#button {
    font-family: 'DotGothic16';
    text-align: center;
    margin: auto;
    color: black;
    border: black solid 3px;
    background-color: red;
    font-size: 15pt;
    max-width: fit-content;
    padding: 5px;
    margin-top: 5px;
}

.shikiri {
    text-align: center;
    margin: auto;
    max-width: 500px;
}

.next {
    max-width: 200px;
    margin: auto;
    text-align: center;
    img {
        width: 100%;
    }
}

.img {
    margin: auto;
    text-align: center;
    max-width: 300px;
}

#game-container {
    position: relative;
    text-align: center;
    margin: 0 auto;  /* 修正: `0 auto` にして中央配置 */
    max-width: 400px;
    justify-content: center; /* 修正: 横方向の中央揃え */
}

#main-image {
    border-radius: 30px;
    border: 10px solid red; 
    -webkit-border: 10px solid red; 
    box-sizing: border-box;  /* 修正: ボーダー込みで中央揃え */
}

#clickbutton {
    text-align: center;
    margin: auto;
    max-width: 250px;
    margin-top: 10px;
}

#counter {
    position: absolute;
    font-family: 'DotGothic16';
    bottom: 28%;  /* 画像の上端から10px */
    left: 6%; /* 画像の右端から10px */
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.7); /* 半透明の黒背景 */
    padding: 5px 10px;
    border-radius: 5px;
}

#jumpscare {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: 1000;
}

.goback{
    max-width: 250px;
    margin: auto;
    text-align: center;
    img {
        width: 100%;
    }
}

.copyrightmessage {
    font-family: 'DotGothic16';
    font-size: 10pt;
    color: #A404F2;
    background-color: black;
    width: fit-content;
    margin: auto;
    text-align: center;
}


/*ここからスマホ*/
@media only screen and (max-width: 767px) {
    
    body{
        background-image: url("./basic-images/skull-background.jpg");
        background-repeat: repeat;
        background-size: 50%;
    }
    
    h1 {
        margin: 0;
        display: inline-block;
    }
    h2 {
        margin: 0;
        display: inline-block;
    }
    h3 {
        margin: 0;
        display: inline-block;
    }   
    p {
        margin: 0;
        display: inline-block;
    } 

    .toplogoart {
        max-width: 50%;
        margin: auto;
        text-align: center;
      }
    img {
        width: 100%;
    }


.title {
    font-family: 'DotGothic16';
    text-align: center;
    margin: auto;
    color: red;
    background-color: black;
    font-size: 4vw;
    max-width: 100%;
    padding: 5px;
    animation: blink 0.3s infinite;   
}
@keyframes blink {
    0%, 49% { color: red; }  /* 49% まで赤 */
    50%, 100% { color: #A404F2; } /* 50% で一気に白へ変わる */
} 

.message1 {
    font-family: 'DotGothic16';
    text-align: center;
    margin: auto;
    color: white;
    border: #A404F2 solid 3px;
    background-color: black;
    font-size: 3vw;
    max-width: fit-content;
    padding: 10px;
    margin-top: 10px;
}

.message2 {
    font-family: 'DotGothic16';
    text-align: center;
    margin: auto;
    color: white;
    border: #A404F2 solid 3px;
    background-color: black;
    font-size: 3vw;
    max-width: 70%;
    padding: 10px;
    margin-top: 10px;
}

#button {
    font-family: 'DotGothic16';
    text-align: center;
    margin: auto;
    color: black;
    border: black solid 3px;
    background-color: red;
    font-size: 4vw;
    max-width: fit-content;
    padding: 5px;
    margin-top: 5px;
}

.img {
    margin: auto;
    text-align: center;
    max-width: 80%;
}

#game-container {
    position: relative;
    text-align: center;
    margin: 0 auto;  /* 修正: `0 auto` にして中央配置 */
    max-width: 80%;
    justify-content: center; /* 修正: 横方向の中央揃え */
}

#main-image {
    border-radius: 30px;
    border: 10px solid red; 
    -webkit-border: 10px solid red; 
    box-sizing: border-box;  /* 修正: ボーダー込みで中央揃え */
}

#clickbutton {
    text-align: center;
    margin: auto;
    max-width: 70%;
    margin-top: 10px;
}

#counter {
    position: absolute;
    font-family: 'DotGothic16';
    bottom: 30%;  /* 画像の上端から10px */
    left: 7%; /* 画像の右端から10px */
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.7); /* 半透明の黒背景 */
    padding: 5px 10px;
    border-radius: 5px;
}

#jumpscare {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: 1000;
}

.shikiri {
    text-align: center;
    margin: auto;
    max-width: 100%;
}

.next {
    max-width: 40%;
    margin: auto;
    text-align: center;
    img {
        width: 100%;
    }
}

.goback{
    max-width: 50%;
    margin: auto;
    text-align: center;
    img {
        width: 100%;
    }
}

    .copyrightmessage {
        font-family: 'DotGothic16';
        font-size: 3vw;
        color: #A404F2;
        background-color: black;
        width: fit-content;
        margin: auto;
        text-align: center;
    }
}
