/* General Style */
* {
    margin: 0;
    padding: 0;
    outline: 0;   
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background-color: #343a40;
}

header {
    margin-top: 2rem;
    width: 100%;
    max-height: 10vh;
    /* line-height: 10vh; */
}

h1 {
    font-family: Helvetica, sans-serif;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    letter-spacing: .25rem;
    text-transform: uppercase;
    word-spacing: 0.2rem;
}

h2 {
    font-size: 1.8rem;
    color: white;
    /* margin-bottom: 1.2rem; */
}
h3 {
    font-size: 1.2rem;
    color: white;
}

/* Flexbox style */

.box-container {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.center-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-item {
    padding: 0.2rem .8rem;
    font-size: 1rem;
}

.container.item + .container-item {
    margin-left: 2rem;
}

.list-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 600px) {
    .container-item {
        padding: 0.2rem .8rem;
        font-size: 0.8rem;
    }
    
    .container.item + .container-item {
        margin-left: 1rem;
    }
}


/* Game setting style */

.openingDisplay {
    margin-bottom: 1.2rem; 
}

section {
    margin-top: 2rem;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    max-height: 90vh;
}

.header-link {
    font-family: Helvetica, sans-serif;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
}
.header-link:hover {
    font-weight: 600;
}



/* Overall Game Board Style */

.GameArea {
    width: 80%;
    /* height: 90vh; */
    padding: 20px 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 20px 20px -9px black;
    border-radius: 20px;
    border: 1px solid #f8f9fa;
}

.bestScore {
    margin-top: 2rem;;
}

/* Intial message */
.start {
    font-size: 1.2rem;
    color: #e9ecef;
    transform: translate(0, -30px);
}

.incorrect {
    color: #f05454;
}

.correct {
    color: #6ab547;
}

.life {
    margin-top: 2rem;
    font-size: 1.3rem;
    color: #e9ecef;
    transform: translate(0, -30px);
}

/* Input section */
#answer input {
    border: 0;
    outline: 0;
    -webkit-outline: 0;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -webkit-border-radius: 0; 
    margin: 0 5px;
    text-align: center;
    line-height: 0.9rem;
    font-size: 2rem;
    color: #e9ecef;
    width: 2.2rem;
    transition: all .2s ease-in-out;
}

/* Game Button */
button {
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: #000;
    border-radius: 500px;
}

button.btn {
    font-weight: 600;
    padding: 1rem 2rem;
    background: #e9ecef;
    text-transform: uppercase;
    transition-property: all;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.65, -0.25, 0.25, 1.95);
    margin-top: 1.8rem;
}
button + button {
    margin-left: 1rem;
}

button.btn:hover,
button.btn:active,
button.btn:focus {
    letter-spacing: 0.125rem;
    word-spacing: 0.2rem;
}

.header-btn {
    background: #e9ecef;
    margin: -2rem, 1rem;
}
/* Score display */
.score {
    font-size: 1.2rem;
    padding: 10px 0;
    transform: translate(0, -30px);
    color: #f8f9fa;
    text-transform: uppercase;
} 


/* Question and Answer Section */
.question {
    letter-spacing: 0.3rem;
}

#answer {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}


/* hidden style */
.hidden {
    display: none;
}

/* Modal Style starts here */
/* The Modal (background) */
#modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
    background-color: #fefefe;
    color: #000;
    float: right;
    margin-top: -20px;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
  }
  .modal {
      background: #B0B7CB !important;
  }
  .modal-header {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 1rem;
  }
  .modal button {
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: #000;
    border-radius: 200px;
    text-decoration: none;
    margin-top: 1.3rem;
  }
  .modal-btn {
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    background: #e9ecef;
    text-transform: uppercase;
    transition-property: all;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.65, -0.25, 0.25, 1.95);
  }


  @media screen and (max-width: 400px) {
    .modal button {
        font-size: 0.6rem;
        cursor: pointer;
        outline: none;
        border: 1px solid #e9ecef;
        text-decoration: none;
        color: #000;
        border-radius: 200px;
        text-decoration: none;
        margin-top: 1.3rem;
      }
      .modal-btn {
        font-weight: 400;
        padding: 0.6rem 1.3rem;
        font-size: 0.6rem;
        background: #e9ecef;
        text-transform: uppercase;
        transition-property: all;
        transition-duration: 0.5s;
        transition-timing-function: cubic-bezier(0.65, -0.25, 0.25, 1.95);
      }
  }

  .modal-label {
      /* if label is displaying as an inline element, the top margin won't have any effect. */
    display:inline-block; 
    margin-top: 1rem;
  }

  .modalinput {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    font-size: 1.2rem;
    box-sizing: border-box;
}
  
/* Heart style */
i {
    margin-right: 0.3rem;
}

/* Overlay List */

.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */    
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgba(238, 238, 235, 0.8); /* light grey w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
  }

.list-heading {
      color: black;
      font-size: 1.5rem;
  }
.list-content {
    color: black;
}
.list-iconlink {
    font-size: 1.2rem;
    margin-right: 1.5rem;
    cursor: pointer;
}

.overlay a {
    text-decoration: none;
    color: #000;
}

.overlay a:hover {
    font-weight: 900;
}

.overlay .closebtn {
    font-size: 2.5rem;
}

.card {
    width: 25%;
    height: auto;
    background-color: #E9C63D;
    border-radius: 4px;
    padding: 32px 24px;
    margin: 12px;
    text-decoration: none;
    z-index: 0;
    overflow: hidden;
}
.card:hover {
        transition: all 0.2s ease-out;
        box-shadow: 0px 4px 8px rgba(38, 38, 38, 0.2);
        top: -5px;
        border: 1px solid #cccccc;
        /* background-color: white; */
}
.card-delete {
    float: right;
    color: black;
    cursor: pointer;
    margin-bottom: 1rem;
    margin-top: -1rem;
}
.card-delete:hover {
    display: block;
    color: red;
}
@media screen and (max-width: 600px) {
    .card{
        width: 50%;
        height: auto;
    }
    .card p{
        font-size: 1rem;
    }
    .list-heading {
        color: black;
        font-size: 1.2rem;
    }
}

.card p {
    margin-top: 1.1rem;
}


/* Media Query */
@media screen and (max-width: 600px) {
    h1 {
        font-family: Helvetica, sans-serif;
        text-align: center;
        color: white;
        font-size: 0.8rem;
        letter-spacing: 0.2rem;
        text-transform: uppercase;
        word-spacing: 0.2rem;
    }
    h2 {
        font-size: 1rem;
        color: white;
    }

    h3 {
        font-size: 1rem;
        color: white;
    }
    .header-link {
        font-size: 0.8rem;
    }
    button {
        font-size: 0.8rem;
        cursor: pointer;
        outline: none;
        border: 1px solid #e9ecef;
        text-decoration: none;
        /* margin-top: 10px; */
        color: #000;
        border-radius: 500px;
    }
    button.btn {
        font-weight: 600;
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        background: #e9ecef;
        text-transform: uppercase;
        transition-property: all;
        transition-duration: 0.5s;
        transition-timing-function: cubic-bezier(0.65, -0.25, 0.25, 1.95);
        margin-top: 1.5rem;
    } 
    section {
        margin-top: 1rem;
        display: flex;
        text-align: center;
        justify-content: center;
        align-items: center;
        max-height: 85vh;
    }
    .GameArea {
        width: 90%;
        height: 100%;
        padding: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        box-shadow: 0 20px 20px -9px black;
        border-radius: 20px;
        border: 1px solid #f8f9fa;
    }
    #answer input {
        border: 0;
        outline: 0;
        -webkit-outline: 0;
        background: transparent;
        border-bottom: 1px solid #e9ecef;
        box-shadow: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        -webkit-border-radius: 0; 
        margin: 0 5px;
        text-align: center;
        line-height: 1.2rem;
        font-size: 1.4rem;
        color: #e9ecef;
        width: 1.5rem;
        transition: all .2s ease-in-out;
        -moz-box-sizing:    border-box;
        -webkit-box-sizing: border-box;
         box-sizing:        border-box;
    }
    .life {
        margin-top: 1rem;
        font-size: 1.3rem;
        color: #e9ecef;
        transform: translate(0, -30px);
    }
}