* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --corner-radius: 20px;
    --main-color1: #F6AD65;
    --main-color2: #FE8882;
    --main-color3: #60B7E6;
    --main-color4: #88C7E7;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url(./Images/bgi2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

#welcome-card-border {
    background-color: var(--main-color1);
    width: 51em;
    height: 36em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8%;
    animation: slideInBottomwithFade 0.8s ease-in-out;
}

.welcome-card {
    background-color: #fff;
    clip-path: inset(0% 0% 0% 0% round 8%);
    padding: 0 1em 1em 1em;
    width: 50em;
    height: 35em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.welcome-card-title {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--main-color2);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
}

.welcome-card-content {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.welcome-card-left {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome-card-left img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.welcome-card-right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--main-color2);
}

.overview-card {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: left;
    border: 3px dotted #FE8882;
    padding: 1em;
    border-radius: var(--corner-radius);
    position: relative;
}

.overview-card h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.overview-card p {
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 0.5em;
}

#quiz-start-btn {
    width:111px;
    background-color: var(--main-color2);
    color: #fff;
    border: none;
    border-radius: var(--corner-radius);
    padding: 0.5em 1em;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    bottom: 5%;
    left: 0;
    right: 0;
    text-align: center;
}

#quiz-start-btn:hover {
    box-shadow: 0 0 10px #FE8882;
    transform: scale(1.1);
}

#quiz-start-btn:active {
    box-shadow: 0 0 10px #FE8882;
    transform: scale(0.9);
}

/********* Quiz **********/

#quiz-border {
    background-color: var(--main-color1);
    width: 51em;
    height: 36em;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8%;
    animation: slideInBottomwithFade 0.8s ease-in-out;
}

#quiz-container {
    background-color: #fff;
    clip-path: inset(0% 0% 0% 0% round 8%);
    padding: 1em;
    width: 50em;
    height: 35em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#quiz-header {
    width: 100%;
    height: 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 2%;
}

#quiz-header-title {
    width: 30%;
    height: 100%;
    margin-left: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: 600;
    color: white;
    background-color: var(--main-color3);
    border-radius: var(--corner-radius);

}

#question-title {
    font-size: 1.5em;
    font-weight: 600;
}

#timer-text {
    width: 20%;
    height: 100%;
    margin-right: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: 600;
    color: white;
    background-color: var(--main-color3);
    border-radius: var(--corner-radius);
}

#timer {
    font-size: 1.5em;
    font-weight: 600;
    color: white;
}

#quiz-content {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#quiz-footer {
    width: 100%;
    height: 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    position: absolute;
    bottom: 2%;
}

#check-btn {
    background-color: white;
    color: var(--main-color2);
    border: none;
    border-radius: var(--corner-radius);
    border: 3px solid var(--main-color2);
    padding: 0.5em 1em;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

#next-btn, #previous-btn {
    background-color: var(--main-color2);
    color: #fff;
    border: none;
    border-radius: var(--corner-radius);
    padding: 0.5em 1em;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

button:hover {
    background-color: #FE8882;
    color: white;
    box-shadow: 0 0 10px #FE8882;
    transform: scale(1.1);
}

/********* Type1 questions **********/

#answer-container {
    width: 50%;
    margin-top: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

#true{
    background-color: white;
    color: var(--main-color2);
    border: none;
    border-radius: var(--corner-radius);
    border: 3px solid var(--main-color2);
    padding: 0.5em 1em;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

#false{
    background-color: white;
    color: var(--main-color2);
    border: none;
    border-radius: var(--corner-radius);
    border: 3px solid var(--main-color2);
    padding: 0.5em 1em;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

#true:hover, #false:hover {
    background-color: #FE8882;
    color: white;
    box-shadow: 0 0 10px #FE8882;
    transform: scale(1.1);
}

/********* Type2 questions **********/

/* Multiple choices */

#choices{
    width: 50%;
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}
.choice-text {
    position: absolute;
    /*center*/
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#choice0, #choice1, #choice2, #choice3, #choice4 {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    color: var(--main-color2);
    border: none;
    border-radius: var(--corner-radius);
    border: 3px solid var(--main-color2);
    padding: 0.5em 1em;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin-top: 1em;
    position: relative;
}

#choice0:hover, #choice1:hover, #choice2:hover, #choice3:hover, #choice4:hover {
    background-color: #FE8882;
    color: white;
    box-shadow: 0 0 10px #FE8882;
    transform: scale(1.1);
}

/*********  Type4 questions  *********/

#question {
    background-color: var(--main-color1);
    border-radius: var(--corner-radius);
    text-align: justify;
    padding: 1em;
    font-size: 1.2em;
}

#question input {
    outline: none;
    border: 1px solid white;
    background-color: white;
    padding: 0.3em;
    border-radius: var(--corner-radius);
    font-size: 1em;
    text-decoration: dotted underline;
    text-align: center;
}

#question input:focus {
    border: 1px solid var(--main-color2);
}

#question input:disabled {
    background-color: transparent;
    text-decoration: none;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: not-allowed;
}

#question input::placeholder {
    opacity: 0;
}

/*********  Type5 questions  *********/

#questionandDragContainer {
    width: 100%;
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: red;
}

#questionImage {
    margin: 1em;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
}

#questionImage img {
    margin-right: 1.8em;
    width: 140px;
    height: 100px;
    border: 3px solid var(--main-color3);
    border-radius: var(--corner-radius);
}

#drag-container {
    margin-top: 1em;
    width: 100%;
    padding: 1.5em 0 1.5em 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    border: 3px solid var(--main-color2);
    border-radius: var(--corner-radius);
}

.draggable-item {
    width: 6em;
    height: 6em;
    border-radius: var(--corner-radius);
    border: 3px solid #FE8882;
    cursor: pointer;
    padding: 0.5em;
}

.draggable-item:hover {
    transform: scale(1.1);
}

.draggable-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sortable-ghost {
    width: 6em;
    height: 6em;
    border-radius: var(--corner-radius);
    border: 3px dashed #FE8882;
    cursor: pointer;
    padding: 0.5em;

}

.sortable-ghost img {
    display: none;
}

.sortable-chosen {
    width: 6em;
    height: 6em;
    border-radius: var(--corner-radius);
    cursor: pointer;
    padding: 0.5em;
}

/*********  Type6 questions  *********/

#matching-container {
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

#arrow-line {
    width: 100%;
    height: 2em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

#arrow {
    color: var(--main-color3);
    font-size: 1.5em;
}

#drag-container1 {
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    border: 3px solid var(--main-color2);
    border-radius: var(--corner-radius);
}

.matching-item {
    width: 6em;
    height: 6em;
    border-radius: var(--corner-radius);
    border: 3px solid var(--main-color3);
    padding: 0.5em;
}

.matching-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*********  Results  *********/

#results-modal-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: fadeIn 1s ease-in-out;
}

.results-modal-border{
    background-color: var(--main-color1);
    width: 51em;
    height: 36em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8%;
    animation: slideInTopwithFade 0.8s ease-in-out;
}

.results {
    background-color: #fff;
    clip-path: inset(0% 0% 0% 0% round 8%);
    padding: 0 1em 1em 1em;
    width: 50em;
    height: 35em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.results-title {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--main-color2);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
}

.results-content {
    width: 100%;
    height: 70%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.results-left {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.results-left img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.results-right {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--main-color2);
}

.results-card {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: left;
    border: 3px dotted #FE8882;
    padding: 1em;
    border-radius: var(--corner-radius);
    position: relative;
}

.results-card h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.results-card p {
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 0.5em;
}

.results-card button {
    width:200px;
    background-color: var(--main-color2);
    color: #fff;
    border: none;
    border-radius: var(--corner-radius);
    padding: 0.5em 1em;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    bottom: 5%;
    left: 0;
    right: 0;
    text-align: center;
}

.results-card button:hover {
    /*box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--main-color2);*/
    box-shadow: 0 0 10px #FE8882;
    transform: scale(1.1);
}

.results-card button:active {
    transform: scale(0.9);
}
/*********  Animations  *********/

@keyframes slideInLeftwithFade {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRightwithFade {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInBottomwithFade {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutTopwithFade {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
        display: none;
    }
}

@keyframes slideInTopWithFade {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popInwithwobble {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}