@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: #fafafb;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #4A4747;
}

.main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    flex-direction: column;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid #433C3C;
    width: 100%;

}

#wrapper {
    min-height: 0;
    display: inline-block;
    position: relative;
    left: 50%;
    margin: 0 0;
    z-index: 1;
    background: #fafafb;
    transform: translate(-50%, 0);
    max-width: 450px;
    padding: 30px;
    overflow: hidden;
}

@media (max-width: 550px) {
    #wrapper {
        box-sizing: border-box;
        transform: translate(0, 0);
        max-width: 100%;
        min-height: 100%;
        margin: 0;
        left: 0;
    }
}

h1,
h2 {
    color: #000;
}

h1 {
    margin: 10% auto 0;
    text-transform: uppercase;
    font-size: 36px;
    line-height: 42px;
    letter-spacing: 3px;
    text-align: center;
    display: table;
    padding: 10px 0;
    font-weight: bolder;
    border-bottom: 2px solid #000;
}

h2 {
    padding: 15px;
    font-size: 14px;
    line-height: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    display: block;
    background: #BB0007;

    margin: 0;
    cursor: pointer;
    color: #fff;
    text-align: center;
}

p {
    font-size: 14px;
    line-height: 16px;
    margin: 0 0 1rem;
}

.detail {
    border: 1px solid #BB0007;
    transform: translate(0, 0);
    transition:all 500ms ease;
    opacity: 1;
    z-index: 2;
    position: relative;
}
.detail-inner {
    padding: 20px;
}

.detail a.btn {
    display: block;
    width: 300px;
    background: #433C3C;
    color: #fff;
    font-size: 14px;
    padding: 12px 10px;
    text-align: center;
    margin: 0 auto 18px;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

.detail a.btn-red {
    background: #BB0007;
}

.detail a.btn:hover {
    opacity: 0.5;
}

.red {
    color: #BB0007;
}

p,
ul li i:before,
ul li i:after {
    transition: all 0.25s ease-in-out;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    position: relative;
    padding: 18px 0 4px;
    margin: 0;
}

ul li i {
    position: absolute;
    transform: translate(-21px, 0);
    margin-top: 14px;
    right: 0;
}

ul li i:before,
ul li i:after {
    content: "";
    position: absolute;
    background-color: #fff;
    width: 3px;
    height: 16px;
}

ul li i:before {
    transform: translate(2px, 0) rotate(45deg);
}

ul li i:after {
    transform: translate(2px, 0) rotate(-45deg);
}

ul li input[type="checkbox"] {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 48px;
    z-index: 1;
    opacity: 0;
}

ul li input[type="checkbox"]:checked ~ i{
    margin-top: 8px;
}
ul li input[type="checkbox"]:checked ~ .detail {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    transform: translate(0, 50%);
}

ul li input[type="checkbox"]:checked ~ h2 {
    background: #433C3C;

}

ul li input[type="checkbox"]:checked ~ i:before {
    margin-top: 9px;
    height: 9px;
    transform: translate(2px, 0) rotate(45deg);
}

ul li input[type="checkbox"]:checked ~ i:after {
    margin-top: 9px;
    height: 9px;
    transform: translate(-2px, 0) rotate(-45deg);
}

ul li:nth-of-type(1) {
    border-top: none;
    animation-delay: 0.5s;
}

ul li:nth-of-type(2) {
    animation-delay: 0.75s;
}

ul li:nth-of-type(3) {
    animation-delay: 1s;
}

ul li:last-of-type {
    padding-bottom: 0;
}

li {
    animation: bounceInUp 1s ease both;
}

@-webkit-keyframes bounceInUp {
    0% {
        opacity: 0;
        -webkit-transform: translateY(2000px);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateY(-30px);
    }
    80% {
        -webkit-transform: translateY(10px);
    }
    100% {
        -webkit-transform: translateY(0);
    }
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(2000px);
    }
    60% {
        opacity: 1;
        transform: translateY(-30px);
    }
    80% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}
