/* Styling the inspiration modal */

/* 
    Styling source from w3schools:
    https://www.w3schools.com/howto/howto_css_modals.asp
*/

#challenge-modal {
    display: none;
    font-family: Arial, Helvetica, sans-serif;
    position: fixed; 
    z-index: 1; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}
  
/* Modal Content */
#challenge-modal  .modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animateleft;
    -webkit-animation-duration: 0.4s;
    animation-name: animateleft;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animateleft {
    from {left:-500px; opacity:0} 
    to {left:0; opacity:1}
}

@keyframes animateleft {
    from {left:-500px; opacity:0}
    to {left:0; opacity:1}
}

/* styling for modal header */
  
#challenge-modal .modal-header {
    background: #3366ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: white;
    border-bottom: 1px solid #000;
    
}

#get-challenge {
    background-color: rgba(36%,75%,87%,0.7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.2s ease;
}

#get-challenge:hover,
#get-challenge:focus {
    border: 2px solid #F4f4f4;
    background: transparent;
}

/* The Close Button */
#challenge-modal .close {
    color: white;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
}

#challenge-modal .close:hover,
#challenge-modal .close:focus {
    color: #330099;
    text-decoration: none;
    cursor: pointer;
}


/* styling the modal body and content  */
#challenge-modal .modal-body {
    background: transparent;
    padding: 5px 16px;
    overflow: auto;
    height: 70vh;
    color: #fff;
    text-align: center;
    background-color: rgba(0,0,0,0.3);
}

#challenge-modal .modal-body section {
    margin: 20px 0;

}

#challenge-modal .modal-body .heading {
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #3366ff;
}

.modal-body .answer-area,
.modal-body .score-area {
    margin: 20px;
}

#answer-box {
    display: block;
    margin: 0 auto 10px;
    padding: 7px 10px;
    text-align: center;
    border-radius: 5px;
    border: none;
    outline-color: #3366ff;
    color: #330099;
    max-width: 300px;
    width: 100%;
}

#submit-answer {
    padding: 7px 14px;
    border-radius: 7px 15px;
    border: none;
    text-transform: uppercase;  
    background-color: #330099;
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease-out;
}

#submit-answer:hover {
    background-color: #3366ff;
}

#corrected-answer {
    color: #ff0000;
    padding: 7px 15px;
    margin: 10px;
}

.score-area .scores {
    margin: 10px;
}

.score-area .correct {
    color:#00FF00;
}

.score-area .incorrect {
    color:#ff0000;
}

/* =====Responsive design with media queries for small screens========= */
@media screen and (max-width: 500px) { 
    #challenge-modal .modal-header h2 {
        font-size: 4vw;
    }
}


