
:root {
    --body-backG-color: #340ac01f;
    --container-border-color: #0000002c;
    --container-backG-active-color: aliceblue;
}

@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');

* {
    box-sizing: border-box; /*if we add border or padding, it doesn't affect the width of it. */
}

body {
    font-family: 'Muli', sans-serif;
    background-color: var(--body-backG-color);
}

h1 {
    margin: 50px 0px 30px;
    text-align: center;
}

.faq-container {
    max-width: 600px;
    margin: 0px auto;
}

.faq {
    background-color: var(--body-backG-color);
    border: 1px solid var(--container-border-color);
    border-radius: 10px;
    margin: 20px 0px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.faq.active {
    background-color: var(--container-backG-active-color);
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.faq.active::before,
.faq.active::after {
    content: '\f075';
    /* use \ for UNI-CODE */
    font-family: 'Font Awesome 5 Free';
    /* to display icon */
    color: #2ecc71;
    opacity: 0.2;
    font-size: 7rem;
    /* 7 times wrt usual size */
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.faq.active::before {
    color: #3498db;
    top: -10px;
    left: -30px;
    transform: rotateY(180deg);
}

.faq-title {
    margin: 0px 35px 0px 0px;
}

.faq-text {
    display: none;
    margin: 30px 0px 0px;
}

.faq.active .faq-text {
    display: block;
}

.faq-toggle {
    background-color: transparent;
    border: 0px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0px;
    position: absolute;
    top: 30px;
    right: 30px;
    height: 30px;
    width: 30px;
}

.faq-toggle .fa-times {
    display: none;
}

.faq.active .faq-toggle .fa-times {
    display: block;
}

.faq.active .faq-toggle .fa-chevron-down{
    display: none;
}

.faq.active .faq-toggle {
    background-color: #9fa4a8;
    color: var(--container-backG-active-color);
}
