html,
body {
    font-family: fantasy;
    display: grid;
    height: 100%;
    place-items: center;
    text-align: center;
    background: linear-gradient(135deg, #e6e6e6, #cfcfcf);
}

.wrapper {
    position: relative;
    width: 400px;
    background: #111;
    padding: 50px 90px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: popUp 0.7s ease;
}

@keyframes popUp {
    0% {
        transform: scale(.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.post {
    display: none;
}

.text {
    font-size: 25px;
    color: #ddd;
    font-weight: 500;
    animation: fadeIn .6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit,
.btn button {
    display: inline-block;
    background: linear-gradient(45deg, #4285f4, #1a73e8);
    color: white;
    padding: 10px 25px;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    margin-top: 15px;
    font-size: 16px;
    transition: all .3s ease;
}

.edit:hover,
.btn button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.6);
}

.star-widget input {
    display: none;
}

.star-widget label {
    font-size: 45px;
    color: #444;
    padding: 10px;
    float: right;
    cursor: pointer;
    transition: all .3s ease;
}

input:not(:checked)~label:hover,
input:not(:checked)~label:hover~label {
    color: #fd4;
    transform: scale(1.2);
    text-shadow: 0 0 10px #ffd700,
        0 0 20px #ffd700;
}

input:checked~label {
    color: #fd4;
    text-shadow: 0 0 10px #ffd700,
        0 0 25px #ffd700;
}

input:checked~label {
    animation: starPop .4s ease;
}

@keyframes starPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

#rate-1:checked~form header:before {
    content: "I hate it";
}

#rate-2:checked~form header:before {
    content: "I don't like it";
}

#rate-3:checked~form header:before {
    content: "It's an average";
}

#rate-4:checked~form header:before {
    content: "I like it";
}

#rate-5:checked~form header:before {
    content: "I love it";
}

.wrapper form {
    display: none;
}

input:checked~form {
    display: block;
    animation: fadeIn .5s ease;
}

form header {
    width: 100%;
    font-size: 26px;
    color: #f3df48;
    font-weight: 500;
    margin: 5px 0 20px 0;
    text-align: center;
}

form .btn button {
    padding: 12px 45px;
    text-transform: uppercase;
}