/* Code By Webdevtrick ( https://webdevtrick.com ) */

input,
label {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.stars input {
    display: none;
}

.stars input:checked~label:not(.reset) {
    -webkit-animation: wobble 0.8s ease-out;
    animation: wobble 0.8s ease-out;
    color: rgb(255, 133, 1);
}

.stars input:hover~label:not(.reset) {
    -webkit-animation: wobble 0.8s ease-out;
    animation: wobble 0.8s ease-out;
    color: rgb(255, 133, 1);
}

.stars label:not(.reset) {
    float: right;
    width: 30px;
    height: 40px;
    font-size: 20px;
    padding: 2px;
    cursor: pointer;
    color: #5a5a5a;
    transition: color 0.1s ease-out;
    z-index: 10;
}

@media screen and (min-width: 290px) {
    .stars label:not(.reset) {
        font-size: 30px;
        width: 40px;
    }
}

@media screen and (min-width: 400px) {
    .stars label:not(.reset) {
        font-size: 40px;
        width: 60px;
    }
}

@-webkit-keyframes wobble {
    0% {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
    }

    20% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    40% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

    60% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }

    80% {
        -webkit-transform: scale(0.96);
        transform: scale(0.96);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes wobble {
    0% {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
    }

    20% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    40% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

    60% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }

    80% {
        -webkit-transform: scale(0.96);
        transform: scale(0.96);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@media(max-width: 480px) {
  .main tbody {
    display: grid; 
  }
  .main tr {
    display: contents;
  }
  .main td {
    display: block;
  }
  .main tr td + td {
    order: 1;
  }
}