@charset "UTF-8";

body {
    background-color: #000;
    background-image: url(../images/black.jpg);
    background-size: 50px;
    background-repeat: repeat;
    background-position: 0px 0px;
    color: #fff;
    font-family: "メイリオ";
    animation: move-diagonal 10s infinite;
}

@keyframes move-diagonal {
    0% {
        background-image: url(../images/black.jpg);
    }
    25% {
        background-image: url(../images/green.jpg);
    }
    50% {
        background-image: url(../images/white.jpg);
    }
    75% {
        background-image: url(../images/green.jpg);
    }
    100% {
        background-image: url(../images/black.jpg);
        background-position-x: 100px;
        background-position-y: 100px;
    }
}

@keyframes fade-in-out {
    0% {
        background-color: rgba(0, 0, 0, 1);
    }
    100% {
        background-color: rgba(0, 0, 0, 0);
    }
}

@keyframes opacity-up {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

img {
    vertical-align: bottom;
}

.wrap {
    background-color: rgba( 20, 20, 20, 0.8 );
    position: relative;
}

.title-RE {
    color: #f51221;
}

.mode-select label {
    background-color: #0c64fd;
    border: 3.5px outset #0d55c0;
}

.mode-select label:hover {
    border: 5px outset #0d22c0;
}

.mode-select label:active {
    transform: scale(0.95);
}

.mode-select input[type="submit"] {
    background-color: #0cfc2e;
    border: 3.5px outset #0ab624;
}

.mode-select input[type="submit"]:hover {
    background-color: #0cfc2e;
    border: 5px outset #0ab624;
}

.mode-select input[type="submit"]:active {
    transform: scale(0.7);
}

.mode-select label,
.mode-select input[type="submit"] {
    transition: 0.2s ease-in-out;
    border-radius: 7px;
    cursor: pointer;
    text-shadow: 1px 2px #1e1e1e;
}

.black-out-anim {
    margin: auto;
    inset: 0;
    position: fixed;
}

.fade-out {
    display: none;
    background-color: rgba(0, 0, 0, 1);
    animation: fade-in-out 1s reverse;
}

.fade-in {
    background-color: rgba(0, 0, 0, 0);
    animation: fade-in-out 1s;
}

.result {
    display: none;
    width: 100%;
    height: 100%;
    margin: auto;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.9);
    inset: 0;
    position: fixed;
    z-index: 5;
    animation: opacity-up 0.5s ease-in-out;
}

.result-contents {
    display: none;
    width: 80%;
    height: 80%;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.result-content {
    line-height: 2;
    text-align: center;
}

.result-content::before {
    content: "RESULT";
    color: #f50;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 15px;
    text-shadow:
    -1px 0px 0 #fff,
    1px 0px 0 #fff,
    0px 1px 0 #fff,
    0px -1px 0 #fff,
    -1px -1px 0 #fff,
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff;
}

@keyframes blur-anim {
    0% {
        text-shadow:
        -2px -2px 0 #f00,
        0 2px 0 #00f,
        2px -2px 0 #0f0;
        transform: skew(0);
    }
    25% {
        text-shadow:
        -2px -2px 0 #f00,
        0 2px 0 #00f,
        2px -2px 0 #0f0;
        transform: skew(30deg);
    }
    50% {
        text-shadow:
        0px 0px 0 #f00,
        0 0px 0 #00f,
        0px 0px 0 #0f0;
        transform: skew(0);
    }
    75% {
        text-shadow:
        2px 2px 0 #f00,
        0 -2px 0 #00f,
        -2px 2px 0 #0f0;
        transform: skew(-70deg);
    }
    100% {
        text-shadow:
        0px 0px 0 #f00,
        0 0px 0 #00f,
        0px 0px 0 #0f0;
        transform: skew(0deg);
    }
}

.result h2  {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 45px;
    text-shadow:
    2px 2px 0 #f00,
    0 -2px 0 #00f,
    -2px 2px 0 #0f0;
    animation: blur-anim 2s infinite cubic-bezier(0, 1.64, 0.99,-0.63);
}

.result h2 span {
    display: block;
}

.result-action {
    width: 75%;
    height: 15%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.result-action-select {
    width: 40%;
    height: 50%;
    display: flex;
    align-items: center;
    background-color: #0cfc2e;
    border: 3.5px outset #0ab624;
    cursor: pointer;
}

.result-action-select:hover {
    border: 5px outset #0ab624;
}

.result-action-select a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 2px #1e1e1e;
}

.audio-btns {
    width: 140px;
    height: 90px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    position: absolute;
    bottom: 0;
    right: 0;
}

.audio-text {
    width: 100%;
    height: 20px;
}

.audio-btn {
    margin-bottom: 5px;
    cursor: pointer;
}

.audio-btn:active {
    transform: scale(0.9);
}


/* PC */
@media screen and (min-width: 1280px) {
    body {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    .wrap {
        width: 900px;
        height: 590px;
        margin: 0 auto;
        padding-bottom: 20px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    .mode-select-wrap {
        justify-content: space-between;
    }
    .description {
        font-size: 18px;
        text-align: center;
    }
    .header {
        width: 600px;
        height: 100px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        text-align: center;
    }
    .black,
    .white {
        width: 80px;
    }
    .black div,
    .white div {
        width: 50px;
        height: 50px;
        margin: 10px auto 0;
    }
    .black p,
    .white p {
        width: 80px;
        height: 40px;
        line-height: 40px;
    }
    .white p {
        color: #f51221;
    }
    .title {
        font-size: 35px;
        line-height: 100px;
    }
    .board {
        width: 410px;
        height: 410px;
        margin: 0 auto;
    }
    .mode-state {
        margin-top: 20px;
        font-family: italic;
        font-size: 13px;
        font-weight: bold;
    }
    .mode-select-title {
        margin-top: 80px;
        line-height: initial;
        text-align: center;
    }
    .mode-select {
        width: 100%;
        height: 400px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-evenly;
    }
    .mode-select label {
        width: 500px;
        height: 55px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 23px;
    }
    .mode-select input[type="submit"] {
        width: 150px;
        height: 60px;
        font-size: 18px;
    }
}


/* スマホ */
@media screen and (max-width: 480px) {
    body {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    .wrap{
        width: 350px;
        height: 480px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    .mode-select-wrap {
        justify-content: space-between;
    }
    .description {
        font-size: 18px;
        text-align: center;
    }
    .header {
        width: 300px;
        height: 80px;
        margin: 10px auto 15px;
        display: flex;
        justify-content: space-between;
        text-align: center;
    }
    img {
        width: 100%;
    }
    .black,
    .white {
        width: 60px;
    }
    .black div,
    .white div {
        width: 35px;
        height: 35px;
        margin: 10px auto 0;
    }
    .black p,
    .white p {
        width: 60px;
        height: 30px;
        font-size: 0.75em;
        line-height: 30px;
    }
    .white p {
        color: #f51221;
    }
    .title {
        font-size: 1.5em;
        line-height: 80px;
    }
    .board {
        width: 290px;
        height: 290px;
        margin: 0 auto;
    }
    .mode-state {
        margin-top: 10px;
        font-family: italic;
        font-size: 13px;
        font-weight: bold;
    }
    .mode-select-title {
        margin-top: 40px;
        font-size: 35px;
        line-height: initial;
        text-align: center;
    }
    .mode-select {
        width: 100%;
        height: 400px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-evenly;
    }
    .mode-select label {
        width: 280px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 22px;
    }
    .mode-select input[type="submit"] {
        width: 100px;
        height: 60px;
        font-size: 13px;
    }
    .audio-btns {
        width: 80px;
        height: 50px;
    }
    .audio-text {
        height: 20px;
        font-size: 6px;
    }
    .audio-btn img {
        display: block;
        width: 30px;
        height: 30px;
    }
}

/* スマホ(幅狭) */
@media screen and (max-width: 320px) {
    body {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    .wrap{
        width: 300px;
        height: 430px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    .mode-select-wrap {
        justify-content: space-between;
    }
    .description {
        font-size: 18px;
        text-align: center;
    }
    .header {
        width: 240px;
        height: 60px;
        margin: 0 auto 15px;
        display: flex;
        justify-content: space-between;
        text-align: center;
    }
    img {
        width: 100%;
    }
    .black,
    .white {
        width: 60px;
    }
    .black div,
    .white div {
        width: 35px;
        height: 35px;
        margin: 10px auto 0;
    }
    .black p,
    .white p {
        width: 60px;
        height: 30px;
        font-size: 0.35em;
        line-height: 30px;
    }
    .white p {
        color: #f51221;
    }
    .title {
        font-size: 1.5em;
        line-height: 80px;
    }
    .board {
        width: 290px;
        height: 290px;
        margin: 0 auto;
    }
    .mode-state {
        font-family: italic;
        font-size: 13px;
        font-weight: bold;
    }
    .mode-select-title {
        margin-top: 40px;
        font-size: 25px;
        line-height: initial;
        text-align: center;
    }
    .mode-select {
        width: 100%;
        height: 400px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-evenly;
    }
    .mode-select label {
        width: 250px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
    }
    .mode-select input[type="submit"] {
        width: 100px;
        height: 44px;
        font-size: 10px;
    }
}


