/* The Modal (background) */
.sr-modal.sr-modal--show {
    display: flex;
}
.sr-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    font-family: helvetica, arial, sans-serif;
    font-size: 14px;
}

/* Modal Content/Box */
.sr-modal-content {
    position: relative;
    background-color: #FAFAFB;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.sr-modal-content p {
    text-align: center;
}

/* The Close Button */
.sr-close {
    color: #aaa;
    float: right;
    font-size: 12px;
    margin-top: 7px;
    margin-right: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sr-close:hover,
.sr-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Header */
.sr-modal-header {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

/* Modal Body */
.sr-modal-body {
    padding: 50px 16px 16px;
    background: #FAFAFB;
    height: 100%;
}
.sr-modal-body h1 {
    text-align: center;
    font-family: "Helvetica", arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-top: -5px;
    margin-bottom: 0px;
    color: #6E787C;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Modal Footer */
.sr-modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}

/* Modal Content */
.sr-modal-content.sr-modal--finished {
    min-height: 112px;
}
.sr-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 420px;
    min-height: 222px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    /* -webkit-animation-name: animatetop; */
    /* -webkit-animation-duration: 0.4s; */
    /* animation-name: animatetop; */
    /* animation-duration: 0.4s */
}

.sr-ratings {
    margin: 20px 0 0 0;
    padding: 0;
}

.sr-ratings:after,
.sr-ratings:before {
    content: ' ';
    display: table;
    clear: both;
}

.sr-rating {
    font-size: 0;
    float: left;
    width: 20%;
    margin: 0;
    padding: 0;
}

.sr-rating-icon {
    width: 40px;
    display: block;
    height: 40px;
    margin: 0 auto;
    cursor: pointer;
    -webkit-transition: ease-in-out .1s all;
    -o-transition: ease-in-out .1s all;
    transition: ease-in-out .1s all;
}
.sr-rating.sr-rating--current .sr-rating-label {
    font-size: 14px;
    font-weight: bold;
    color: rgb(49, 59, 63);
}
.sr-rating:hover .sr-rating-icon path.base {
    fill: rgb(49, 59, 63);
}
.sr-rating:hover .sr-rating-label {
    color: rgb(49, 59, 63);
}
.sr-rating.sr-rating--current .sr-rating-icon {
    width: 50px;
    height: 50px;
}
.sr-rating.sr-rating--current .sr-rating-icon-1 path.base {
    fill: rgb(255, 169, 141);
}
.sr-rating.sr-rating--current .sr-rating-icon-2 path.base {
    fill: rgb(255, 195, 133);
}
.sr-rating.sr-rating--current .sr-rating-icon-3 path.base,
.sr-rating.sr-rating--current .sr-rating-icon-4 path.base,
.sr-rating.sr-rating--current .sr-rating-icon-5 path.base {
    fill: rgb(255, 216, 133);
}
.sr-rating.sr-rating--current .sr-rating-icon path.mouth,
.sr-rating.sr-rating--current .sr-rating-icon path.right-eye,
.sr-rating.sr-rating--current .sr-rating-icon path.left-eye {
    fill: rgb(101, 95, 82);
}

.sr-question--has-selected .sr-rating-feedback {
    display: block;
    margin-bottom: 40px;
}

.sr-question-rating-5 .sr-rating-feedback:before {
    right: auto;
    left: 55px;
}
.sr-question-rating-5 .sr-rating-feedback:after {
    right: auto;
    left: 55px;
}


.sr-question-rating-4 .sr-rating-feedback:before {
    right: auto;
    left: 181px;
}
.sr-question-rating-4 .sr-rating-feedback:after {
    right: auto;
    left: 180px;
}

.sr-question-rating-3 .sr-rating-feedback:before {
    right: auto;
    left: 303px;
}
.sr-question-rating-3 .sr-rating-feedback:after {
    right: auto;
    left: 303px;
}

.sr-question-rating-2 .sr-rating-feedback:before {
    right: auto;
    left: 262px;
}
.sr-question-rating-2 .sr-rating-feedback:after {
    right: auto;
    left: 262px;
}

.sr-question-rating-1 .sr-rating-feedback:before {
    right: auto;
    left: 339px;
}
.sr-question-rating-1 .sr-rating-feedback:after {
    right: auto;
    left: 339px;
}

.sr-rating-feedback:after,
.sr-rating-feedback:before {
    content: ' ';
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: #ffffff;
    top: -13px;
    -webkit-transition: all ease-in-out .1s;
    -o-transition: all ease-in-out .1s;
    transition: all ease-in-out .1s;
}
.sr-rating-feedback:before {
    z-index: 1;
}
.sr-rating-feedback:after {
    border-bottom-color: #e6e6e6;
    z-index: 0;
    top: -15px;
}
.sr-rating-feedback {
    position: relative;
    display: none;
}
.sr-rating-feedback textarea {
    width: 100%;
    border: 0;
    box-shadow: 0px 0px 1px 1px #e6e6e6 inset;
    height: 110px;
    padding: 10px;
}
.sr-rating-feedback textarea:focus,
.sr-rating-feedback textarea:active {
    outline: 0;
}
.sr-question--has-selected .sr-rating-buttons {
    display: block;
}
.sr-rating-buttons {
    display: none;
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    padding: 16px;
    text-align: right;
}
.sr-rating-label {
    -webkit-transition: ease-in-out .1s all;
    -o-transition: ease-in-out .1s all;
    transition: ease-in-out .1s all;
    font-size: 12px;
    font-weight: 500;
    color: #ABB2B6;
    text-align: center;
    margin-top: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}
.sr-rating-button {
    background: none;
    color: rgb(198, 204, 208);
    border: 2px solid rgb(198, 204, 208);
    font-size: 14px;
}
.sr-rating-button:focus,
.sr-rating-button:active {
    outline: 0;
}
.sr-rating-button:disabled,
.sr-rating-button:disabled:hover {
    background: lightgray;
    color: #fff;
    border-color: lightgray;
    cursor: disabled;
}
.sr-rating-button:hover {
    background: rgb(198, 204, 208);
    color: #fff;
}
.sr-rating-button--submit {
    color: #2ecc71;
    border-color: #2ecc71;
}
.sr-rating-button--submit:hover {
    background: #2ecc71;
}
.sr-rating-button--cancel {
    
}
.sr-question:before {
    -webkit-transition: all ease-in-out .2s;
    -o-transition: all ease-in-out .2s;
    transition: all ease-in-out .2s;
}
.sr-question.sr-question--disabled:before {
    display: block;
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(132, 132, 132, 0.42);
}
.sr-question p {
    font-size: 11px;
    margin: 5px 0 10px;
    color: #6E787C;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top: -300px; opacity: 0} 
    to {top: 0; opacity: 1}
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}