.lateral{
    transform: rotate(270deg);
    width: auto;
    height: auto;
    background: #b38e5d;
    border-radius: 0.5rem;
    position: fixed;
    top: 50%;
    right: -26px;
    font-family: sans-serif;
    font-size: 0.8rem;
    padding: 10px;
    color: #fff;
    text-align: center;
    transition: 0.7s;
    display: block;
    cursor: pointer;
    z-index: 50;
}
.checkbox:checked ~ .lateral{
    right: 17.2%;
    border-radius: 0.5rem 0.5rem 0 0;
}
.checkbox {
    display: none;
}
.right-panel{
    width: 19%;
    height: 100%;
    background: #DDDDDD;
    position: fixed;
    top: 0;
    right: -40%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.6s;
    z-index: 50;
}
.checkbox:checked ~ .right-panel{
    right: 0;
}
.testbox{
    width: 85%;
    height: 83%;
    position: relative;
    padding: 0.5%;
    font-size: 70%;
}
h5{
    color: #b38e5d;
    font-size: 1em;
}
.input{
    display: none;
}
.img{
    cursor: pointer;
    text-align: center;
}
.texto{
    display: block;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    position: relative;
    left: 7%;
}
.img img{
    width: 60%;
}
.img1{
    background-color: red;
    border-radius: 50%;
}
.img2{
    background-color: orangered;
    border-radius: 50%;
}
.img3{
    background-color: yellow;
    border-radius: 50%;
}
.img4{
    background-color: greenyellow;
    border-radius: 50%;
}
.img5{
    background-color: green;
    border-radius: 50%;
}
.img:hover{
    opacity: 50%;
}

.texto:hover{
    /*opacity: 70%;*/
    color: #b38e5d;
}
.comentarios{
    position: relative;
    left: 5%;
    width: 100%;
}
.alinear{
    float: left;
    width: 20%;
    text-align: center;
}
.caritas{
    font-weight: normal;
    font-size: 75%;
}
textarea{
    resize: none;
}

/*input[type="radio"]:checked */
/*Pregunta 1*/
#p1op1:checked ~ #preg1op1{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
#p1op2:checked ~ #preg1op2{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
#p1op3:checked ~ #preg1op3{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
#p1op4:checked ~ #preg1op4{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}

/*Pregunta 2*/
#p2op1:checked ~ #preg2op1{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
#p2op2:checked ~ #preg2op2{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
#p2op3:checked ~ #preg2op3{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
#p2op4otro:checked ~ #preg2op4otro{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}

/*Pregunta 3*/
#p3op1:checked ~ #preg3op1{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
#p3op2:checked ~ #preg3op2{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
#p3op3:checked ~ #preg3op3{
    color: #9d2449;
    font-weight: bold;
    text-decoration: underline;
}
@media only screen and (max-width:1000px) {
    .lateral, .right-panel{
        display: none;
    }
}
@media (min-width: 1000px) {
    .right-panel{
        overflow: auto;
    }
}
#p2otro{
    display: none;
}

.btnEnviar{
    color: white;
    background-color: #741a36;
    border-color: #561428;
}
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    font-family: 'Montserrat';
    font-size: 18px;
    background-color: white;
    padding: 20px;
    border: 2px solid #b38e5d;;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#close-btn {
    background-color: #10312B;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Montserrat';
}
#close-btn:hover{
    opacity: 0.5;
    text-decoration: underline;
}