@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Karla:ital,wght@0,200..800;1,200..800&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Lobster&family=Roboto:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:  "Karla", sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100vh;
    background: #d6d6d6;
}
.container{
    margin: 0 40px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.container h1{
    color: #313131;
}
.container .tab{
    position: relative;
    background: #ededed;
    padding: 0 20px 20px;
    box-shadow: 0 15px 25px rgba(0,0,0, 0.077);
    border-radius: 5px;
    overflow: hidden-;
}
.container .tab input{
    appearance: none;
}
.container .tab label{
    display: flex;
    align-items: center;
    cursor: pointer;
}
.container .tab label::after{
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 2em;
    color: rgba(0,0,0, 0.133);
    transition: transform 1s;
}
.container .tab:hover label::after{
    color: #313131;
}
.container .tab input:checked ~ label::after{
    transform: rotate(135deg);
    color: #fff;
}
.container .tab label h2 {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.25em;
    border-radius: 5px;
    margin-right: 10px;
}
.container .tab input:checked ~ label h2{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgna(255,255,255,0.248);
    font-size: 8em;
    justify-content: flex-end;
    padding: 20px;
}
.container .tab:nth-child(2) label h2 {
    background: linear-gradient(135deg, #3bb2bb 10%, #42e695 100%);
}
.container .tab:nth-child(3) label h2 {
    background: linear-gradient(135deg, #1bcedf 10%, #5b247a 100%);
}
.container .tab:nth-child(4) label h2 {
    background: linear-gradient(135deg, #ea6060 10%, #7117ea 100%);
}
.container .tab:nth-child(5) label h2 {
    background: linear-gradient(135deg, #184e68 10%, #57ca85 100%);
}
.container .tab label h3{
    position: relative;
    font-weight: 500;
    color: #313131;
    z-index: 10;
}
.container .tab input:checked ~ label h3{
    background: #fff;
    padding: 2px 10px;
    color: #313131;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0,0,0.062);
}
.container .tab .content{
    max-height: 0;
    transition: 1s;
    overflow: hidden;
}
.container .tab input:checked ~ .content{
    max-height: 100vh;
    transition: 1s;
}
.container .tab .content p{
position: relative;
padding: 10px 0;
color: #313131;
z-index: 10;
}
.container .tab input:checked ~ .content p{
    color: #fff;
}

