/* 基本要素 */
header {
    display: none;
}

body {
    position: relative;
    font-family: Arial, sans-serif;
    font-weight: normal;
    background: black;
    color:white;
}

/* body下の不用なマージン削除 */
.p-entry__body.p-entry__body--page {
    margin-bottom: 0;
}

.p-info, .p-info a, .p-footer-nav, .p-footer-nav a{
    background-color:black;
    color: white;
}

/*親テーマのヘッダー画像削除コード*/
/* #js-page-header {
display: none;
} */


/* ボタン */
button {
    background-color: rgba(0, 0, 0, 0.822);
    color: white;
}

.image-button-container {
    position: fixed;
    top: 65px;
    right: 5%;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index:999;
}

#prev-image-button{
    background: linear-gradient(to bottom, #000000, #464646);
    border-radius: 3px;
}

#next-image-button{
    background: linear-gradient(to bottom, #000000, #464646);
    border-radius: 3px;
}

.all-display-button{
    background: linear-gradient(to bottom, #000000, #464646);
    border-radius: 3px;
}

.display-button{
    margin-bottom: 0px;
    background: linear-gradient(to bottom, #000000, #464646);
    border-radius: 3px;
}

.formulatoggleButton {
    background: linear-gradient(to bottom, #01b45b, #00c563);
    border-color: rgb(255, 255, 255);
    border-radius: 5px;
    color: rgb(255, 255, 255);
}

.centering{
    position: relative;
    left: 50%; 
    transform: translateX(-50%);
}

/* メニュー */
.menu {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    height: 55px;
    background-color: black;
    z-index:997;
}

.menu-left-text {
    margin-left: 10%;
    font-size: 110%;
    z-index:997;
}

.menu-right-text {
    margin-right: 10%;
    font-size: 85%;
    z-index:997;
}

.menu-right-text a:not(:last-child) {
    margin-right: 20px;
}

/* テキストコンテンツ */
.text-highlight{
    color: rgb(255, 239, 94);
}

.content-title{
    margin-bottom: 2px;
    font-family: Arial, sans-serif;
    font-weight: normal;
}
@media screen and (max-width: 500px) {
    .content-title {
        padding-top: 200px;
    }
}

.explain-container {
    padding: 5px;
    /* border: 1px solid #ccc; */
    /* border-radius: 10px; */
}

p.explain {
    margin-top: 2px;
    margin-bottom: 2px;
}

.hide {
    display: none;
}

.text-group{
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #1d1d1d;
}

.answer{
    color:red;
}

/* ピクチャコンテンツ */
#fixed-image,
#timed-image {
    position: fixed;
    cursor: pointer;
    border-radius: 10px;
    opacity: 0.95;
    z-index: 998;
    border: 2px solid #7c7c7c;
}
@media screen and (max-width: 500px) {
    #fixed-image,
    #timed-image  {
        top: 100px;
        right: 5%;
    }
}
@media screen and (min-width: 500px) {
    #fixed-image,
    #timed-image  {
        margin-top: 25px;
        left: 50%;
    }
}

/* モーダルコンテンツ */
.modal {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 0%;
    left: 0%;
    /* transform: translate(-50%, -50%); */
    padding: 0px;
    border: 1px solid #888;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: fadeIn;
    animation-duration: 0.4s;
}

.pic-modal {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.pic-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid white;
    animation-name: fadeIn;
    animation-duration: 0.4s;
}

.pic-close {
    position: fixed;
    top: 13px;
    right: 0px;
    color: white;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 0, 0, 0.4);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

iframe {
    height: 100vh;
    width: 90vw;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}