/* =============================================
    quiz page template css
    ---- change log ----------------------------
    2022/09/22 新規作成
============================================= */

/* import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;700;900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.0/font/bootstrap-icons.css");

/* ---------------------------------------------
    common
--------------------------------------------- */
* {
    box-sizing:border-box;
}
html, body {
    height:100%;
    margin:0 auto;
    padding:0;
}
body {
    display:flex;
    flex-direction:column;
}

img {
    pointer-events: none;
    user-select: none;
}

footer {
    margin: auto;
    margin-bottom: 0;
    width: 100%;
    background-color: #f1f1f1;
    box-shadow: 0px 0px 4.4px 1.2px #cccccc;
}
.footer {
    width: 60%;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 0 auto;
    font-weight: 200;
    /* margin-right: 4.6rem; */
    font-size: .75rem;
    color: #3e3e3e;
}
.footer-right{
    margin-right: 1rem;
}

/* ---------------------------------------------
    main container
--------------------------------------------- */

.quiz-parent-container {
    width:90%;
    height:60vh;
    border:solid 2px #c2c2c2;
    border-radius:.8rem;
    margin:.2rem;
    padding-top: 40px;
}
.quiz-parent-container .quiz-number {
    display: flex;
    width: 100%;
    justify-content: space-between;
    background: transparent;
    overflow-y:auto;
}
.quiz-parent-container .quiz-number>h2 {
    display: flex;
    font-size:1.2rem;
    margin:.2rem 0 .2rem .8rem;
    max-height:3.6rem;
}
.quiz-parent-container .quiz-number>h2>span {
    background:#8f353b;
    color:#ffffff;
    border-radius: 100px;
    margin-right:0.4rem;
    padding-left: 30px;
    padding-right: 30px;
    display: block;
    min-width: 100px;
    /* letter-spacing:.4rem; */
}
.quiz-content {
    width:98%;
    height:80%;
    background:#e6e6e6;
    border-radius:  0.8rem;
    margin:0 auto;
    padding:1rem;
    overflow-y:scroll;
}

.quiz-content ul {
    list-style:none;
    margin: 0.5rem;
}

.quiz-content li{
    font-size: 1.25rem;
}

.quiz-content p {
    margin:.5rem;
    line-height: 180%;
}

.flex-two-column {
    display:flex;
    flex-direction:row;
    align-items:center;
    /* width: fit-content;
    margin: 0 auto; */
}
.flex-two-column img {
    width:275px;
    height:100%;
    max-width:fit-content;
    max-height:fit-content;
}

.flex-two-column .balloon {
    width:calc(100% - 150px);
    height:calc(100% - 150px);
}

h3{
    font-size: 150%;
}

.answer{
    position:relative;
    margin:1rem auto;
    padding:15px 35px 15px 25px;
    width:90%;
    background-color:#fffbbe;
    box-shadow:4px 4px 1px #ecda35;
}
.answer::before {
    position:absolute;
    content:'';
    top:-15px;
    right:10px;
    height:55px;
    width:15px;
    border:3px solid #C0C0C0; /*クリップ */
    background-color:none;
    border-radius:12px;
    box-shadow:1px 1px 2px #ccc; /*クリップ影*/
    transform:rotate(10deg);
    z-index:1;
}
.answer::after {
    position:absolute;
    content:'';
    top:0px;
    width:10px; 
    right:20px;
    border:solid 5px #fffbbe;
    z-index:2;
}
.answer p.explanation span{
    display: block;
    margin: 0;
    text-indent: 1em;
}
table {
    width:80%;
    height:10rem;
    background:#f1f1f1;
    font-size:2.6rem;
    margin:0 auto;
    border:2px solid #ffffff;
}
th, td {
    text-align:center;
    vertical-align:middle;
}
th {
    background:#b3424a;
    color:#c2c2c2;
    width:30%;
}
#result-msg {
    width:100%;
    background:#fbf0ff;
    font-size:2.6rem;
    text-align:center;
    margin: 1.6rem 0 .8rem 0;
    padding: 3rem 0;
}
/*---------------------------------------
　　　ふきだし
----------------------------------------*/
/*以下、①背景色など*/
.line-bc {
    padding: 20px 10px;
    max-width: 450px;
    margin: 15px auto;
    text-align: right;
    font-size: 14px;
    background: #7da4cd;
  
  }
  
  /*以下、②左側のコメント*/
  .balloon6 {
    width: 100%;
    margin: 10px 0;
    overflow: hidden;
  }
  
  .balloon6 .faceicon {
    float: left;
    margin-right: -50px;
    width: 40px;
  }
  
  .balloon6 .faceicon img{
    width: 100%;
    height: auto;
    border-radius: 50%;
  }
  .balloon6 .chatting {
    width: 100%;
    text-align: left;
  }
  .says {
    display: inline-block;
    position: relative; 
    margin: 0 0 0 50px;
    padding: 10px;
    max-width: 250px;
    border-radius: 12px;
    background: #edf1ee;
  }
  
  .says:after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 3px; 
    left: -19px;
    border: 8px solid transparent;
    border-right: 18px solid #edf1ee;
    -webkit-transform: rotate(35deg);
    transform: rotate(35deg);
  }
  .says p {
    margin: 0;
    padding: 0;
    font-size: 15px;
  }
  
  /*以下、③右側の緑コメント*/
  .mycomment {
    margin: 10px 0;
  }
  .mycomment p {
    display: inline-block;
    position: relative; 
    margin: 0 10px 0 0;
    padding: 8px;
    border-radius: 12px;
    background: #30e852;
    font-size: 15px;
  }
  
  .mycomment p:after {
    content: "";
    position: absolute;
    top: 30px; 
    right: -19px;
    border: 8px solid transparent;
    border-left: 18px solid #30e852;
    -webkit-transform: rotate(35deg);
    transform: rotate(35deg);
  }

/* ---------------------------------------------
    button
--------------------------------------------- */
button {
    background:#b3424a;
    color:#fbf0ff;
    text-align:center;
    border-radius:.4rem;
    box-shadow:0px 1px 4.4px 1.6px #8b8b8b;
}
.button-focus {
    background:#8f353b;
    box-shadow:none;
    transform:scale(.99);
    transition-duration:.4s;
}
.button-disabled {
    background-color:#C1C1C1;
    color:#ffffff;
    box-shadow:none;
    transform:scale(.99);
    text-decoration:none;    
}

.select-buttons {
    display:flex;
    flex-wrap:wrap;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    margin:0 auto;
    width:90%;
    height:18vh;
    background:#fbf0ff;
    border-radius:.8rem;
}
.select-buttons>button {
    position:relative;
    max-width:110px;
    min-width:80px;
    max-height:110px;
    min-height:80px;
    width:calc(100vw / 12);
    height:calc(100vw / 12);

    font-size:2.6rem;
    margin:.7rem;
}
.select-buttons button.content-btn {
    margin-left: 1.25rem;
    min-width: 12rem;
    max-width: 15rem;
    font-size: 1.25rem;
    min-height: 3.5rem;
    max-height: 3.5rem;
}
.select-buttons-i {
    position:absolute;
    display:block;
    top:-20px;
    left:-20px;

    padding:.1rem;
    font-size:4rem;
    background:#ffffff;
    color:#e48900;
    border-radius:2rem;

    visibility:hidden;
}
.button-focus>.select-buttons-i {
    visibility:visible;
}
.util-buttons {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    width:90%;
    margin: 0 auto;
    margin-top: 10px;
    height:8vh;
}
.util-buttons>button {
    min-width:140px;
    width:calc(100vw / 6);
    height:95%;
    font-size:1.5rem;
}
.util-buttons>button:nth-child(1),.util-buttons>button:nth-child(3)  {
    max-width:210px;
    height:80%;
}

/* ---------------------------------------------
    slide
--------------------------------------------- */
section {
    width:100%;
}
.slide {
    width:100%;
    display:flex;
    justify-content:center;
}
.toolbar {
    width:90%;
    display:flex;
    justify-content:space-between;
}
#page {
    color:#969696;
    margin:0 10px;
    font-size:2rem;
    font-weight:bold;
    text-align: center;
    position: relative;
    top: 2.8rem;
}
.scroll-in {
    opacity:1;
    transform:translate(0, 0);
}

/* ---------------------------------------------
    modal
--------------------------------------------- */
.modal, .start {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 200;
    border-radius: .5rem;
}
.modal {
    justify-content: space-around;
    top: 12%;
    width: 80%;
    height: 70%;
    border: solid .2rem #B95758;
}
.start {
    top: 10%;
    width: 95%;
    height: 75%;
    padding: 1rem 0;
}

.modal .modal-title {
    color:#B95758;
    border-bottom:solid 0.15rem #ccc;
    text-align:center;
    font-size:4.4rem;
    padding:10.5rem 0 2rem 0;
    margin:0 12rem;
    line-height:3.7rem;
    /* letter-spacing:1.6rem;
    text-indent:1.6rem; */
}
.start .start-msg {
    text-align: center;
    line-height: 1.5rem;
}
.start .achievement {
    width: 98%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .25rem 0;
    border: solid .1rem #dddddd;
    background-image: url("../img/paper_bg.jpg");
    overflow-y: auto;
}
.start .start-title {
    width: 30%;
    text-align:center;
    margin: .5rem;
    padding: .1rem 0;
    font-size: 1.5rem;
    font-weight: normal;
    border: solid 1px #666666;
    border-radius: .25rem;
}
.start div.content {
    width: 95%;
    margin: .5rem auto 1rem auto;
}
.start div.content h3 {
    font-size: 1.25rem;
}
.start div.content p {
    font-weight: normal;
    font-size: 1.1rem;
    text-indent: 1.1rem;
    line-height: 1.3rem;
}
.start div.evaluation {
    display: flex;
    width: 90%;
    margin-top: 1rem;
    justify-content: space-between;
}
.start div.content p a,
.start div.evaluation p a,
.answer p a {
    display: inline;
    background: transparent;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    text-decoration: underline;
    cursor: pointer;
}
.start div.content p a {
    text-decoration:underline solid 2px #f00;
}
.answer p a {
    font-size: .9rem;
    word-break: break-all;
}
.start div.content p a:hover,
.start div.evaluation p a:hover,
.answer p a:hover {
    color: blue;
    text-decoration:underline solid 1px blue;
}
.modal-msg{
    text-align: center;
}
.modal-msg span{
    font-size:1.5em;
}
.modal-btn, .end-btn {
    background-color:#B95758;
    color:#ffffff;
    border-color:#B95758;
    /* position:relative; */
}
.modal-btn {
    font-size:3rem;
    height:6rem;
    width:20rem;
}
.end-btn {
    font-size:1.25rem;
    height:2.5rem;
    width:10rem;
}

.modal-overlay {
	z-index:101;
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:120%;
	background-color:rgba(0,0,0,0.75);
}

h1{
    position: sticky;
    top: 0px;
    z-index: 100;
    padding: 1.6rem 3rem 1.5rem;
    /* width: 60%; */
    border-top: none;
    font-size: 1.8rem;
    font-weight: 900;
    background-color: white;
    line-height: 1.8rem;
    opacity: 100%;
    box-shadow: none;
    user-select: none;
}

p {
    font-size: 20px;
}
.quiz-under {
    width: 90%;
    display: flex;
    justify-content: space-between;
}
.toolbar>.answer-ander {
    display: none;
}
#result>.quiz-parent-container>.quiz-content>.hako>img {
    background-color: #222;
    display: block;
    justify-content: space-evenly;
}
#result>.quiz-parent-container>.quiz-content {
    display: block;
    justify-content: space-evenly;
}
#result-msg
{
    display: none;
}
.hako{
    display: flex;
    justify-content: space-between;
}

.invisible {
    display:none;
}


/* ---------------------------------------------
    media query
--------------------------------------------- */
/* for tablet */
@media screen and (max-width:1280px){
    .modal .modal-title {
        padding-top:1rem;
        font-size:2.6rem;
        margin:0;
        line-height:3rem;
        letter-spacing:.2rem;
        /* text-indent:.5rem; */
    }
      
    .modal-btn {
        font-size:1.6rem;
        max-width:230px;
        padding:0 0.5rem;
    }
    .util-buttons>button {
        font-size:1.25rem;
    }
    .footer {
        width: 100%;
        justify-content: space-between;
        display: flex;
        flex-wrap: wrap;
        margin: 0 0 0 auto;
        font-weight: 200;
        /* margin-right: 4.6rem; */
        font-size: .75rem;
        color: #3e3e3e;
    }
} 
/* for sp */
@media screen and (max-width:768px){
    .qniretu{
        display:block;
        flex-direction:row;
        align-items:center;
        /* width: fit-content;
        margin: 0 auto; */
    }
    .modal-msg{
        font-size: 1.1rem;
    }  
    .select-buttons {
        padding:1rem 0;
        height:max-content;
    }
    .select-buttons>button {
        min-width:70px;
        min-height:70px;
        font-size:1.8rem;
        margin:.3rem;
    }
    .select-buttons-i {
        top:-10px;
        left:-10px;
    
        padding:.1rem;
        font-size:2.6rem;
        border-radius:1.4rem;    
    }
    .util-buttons {
        padding:.4rem .2rem;
        height:max-content;
    }
    .util-buttons>button {
        min-width:fit-content;
        min-height:fit-content;
        font-size:.8rem;
    }
    .util-buttons>button:nth-child(2){
        transform:scale(1.1);
    }
    th, td {
        font-size:1.6rem;
    }
    #result-msg {
        font-size:1.6rem;
    }
    footer {
        width:100%;
    }
    .svg {
        width: 100%;
    }
}
