@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    user-select: none;
}

body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dad3f8;
}

.container {
    max-width: 950px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    margin: 0 20px;
    padding: 40px 50px 40px 40px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.container .main-title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 20px;
}

.container .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container .content .list {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 20%;
    margin-right: 50px;
    gap: 10px;
}

.content .list label {
    height: 60px;
    font-size: 22px;
    font-weight: 500;
    border-radius: 12px;
    line-height: 60px;
    cursor: pointer;
    padding-left: 25px;
    color: #333;
    z-index: 12;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.content .list label:hover {
    color: #6d50e2;
}

#home:checked~.list .home,
#blog:checked~.list .blog,
#help:checked~.list .help,
#code:checked~.list .code,
#about:checked~.list .about {
    color: #fff;
}

.content .indicator {
    position: absolute;
    height: 60px;
    width: 100%;
    left: 0;
    top: 0;
    background: #6d50e2;
    border-radius: 12px;
    transition: all 0.4s ease;
}

#home:checked~.list .indicator {
    top: 0;
}

#blog:checked~.list .indicator {
    top: 70px;
}

#help:checked~.list .indicator {
    top: 140px;
}

#code:checked~.list .indicator {
    top: 210px;
}

#about:checked~.list .indicator {
    top: 280px;
}

.container input[type="radio"] {
    display: none;
}

.container .content .text-content {
    width: 80%;
    height: 100%;
}

.content .text-content .text {
    display: none;
}

.content .text-content .home {
    display: block;
}

#home:checked~.text-content .home,
#blog:checked~.text-content .blog,
#help:checked~.text-content .help,
#code:checked~.text-content .code,
#about:checked~.text-content .about {
    display: block;
}

#blog:checked~.text-content .home,
#help:checked~.text-content .home,
#code:checked~.text-content .home,
#about:checked~.text-content .home {
    display: none;
}

.content .text-content .title {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.content .text-content p {
    text-align: justify;
}

/* Responsiveness */

@media (max-width: 1024px) {

    .container {
        padding: 30px;
    }

    .container .content {
        flex-direction: column;
        align-items: center;
    }

    .container .content .list {
        width: 100%;
        margin-right: 0;
        display: flex;
        justify-content: space-around;
    }

    .content .list label {
        font-size: 18px;
        padding: 0 20px 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .content .indicator {
        height: 50px;
    }

    .container .content .text-content {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .container {
        padding: 20px;
    }

    .container .main-title {
        font-size: 24px;
    }

    .content .list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .content .list label {
        font-size: 16px;
        height: auto;
        padding: 8px 12px;
        line-height: normal;
    }

    .content .indicator {
        height: 40px;
    }

    .content .text-content {
        margin-top: 30px;
    }

    .content .text-content .title {
        font-size: 20px;
    }

    .content .text-content p {
        font-size: 14px;
    }

    #home:checked~.list .indicator {
        top: 0;
    }

    #blog:checked~.list .indicator {
        top: 50px;
    }

    #help:checked~.list .indicator {
        top: 100px;
    }

    #code:checked~.list .indicator {
        top: 150px;
    }

    #about:checked~.list .indicator {
        top: 200px;
    }
}

@media (max-width: 480px) {

    .container {
        margin: 0 10px;
        padding: 15px;
    }

    .container .main-title {
        font-size: 20px;
    }

    .content .list label {
        font-size: 14px;
        padding: 6px 10px;
    }

    .content .text-content {
        margin-top: 60px;
    }

    .content .indicator {
        height: 35px;
    }

    .container .content .text-content p {
        font-size: 12px;
    }

    #home:checked~.list .indicator {
        top: 0;
    }

    #blog:checked~.list .indicator {
        top: 40px;
    }

    #help:checked~.list .indicator {
        top: 85px;
    }

    #code:checked~.list .indicator {
        top: 128px;
    }

    #about:checked~.list .indicator {
        top: 170px;
    }
}