<?php if(isset($bol_redirect)):
 $redirect = base_url('').'moduloVotacion';
  ?>

<?php else: 
  $redirect = base_url('/');
  ?>

<?php endif; ?>



<?php
$correcto1      = 'uploads/correct.svg';
$registrado1      = 'uploads/registrado.jpg';
?>


<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/style.css">
    <title>Voto registrado</title>
</head>

<body style=" background: #F3F2F2;">
    <main class="exito">
        <figure>
            <img src="<?= base_url() . '' . $registrado1 ?>" alt="">
        </figure>
        <section style=" background: #F3F2F2;">
            <div>
                <img src="<?= base_url() . '' . $correcto1 ?>" alt="">
                <?php $mensajes = explode(",", $mensaje);
              $valor1= $mensajes[0]; 
              $valor2= $mensajes[1]; 
              ?>
                <p><?= $valor1 ?><br><span><?= $valor2 ?></span></p>

                <button class="btn btn-default boton-salir" style=" font-weight: 900;
                padding: 10px 35px;
                background: var(--principal);
                color: #fff;
                border: none;
                text-transform: uppercase;
                transition: all 0.3s ease-out;">
                    <a href="<?= $redirect ?>" style="color: white;">Salir</a>
                </button>

            </div>
            <footer>
                <p>
                    Copyright ©2022 Cyberia Tech S.A.S. Derechos Reservados <a href="https://cyberiatech.com.co/"
                        target="_blanck" rel="noopener noreferrer">www.cyberiatech.com.co</a>
                </p>
            </footer>
        </section>
    </main>

</body>

</html>
<style>
:root {
    --principal: #FF7F50;
    --naranja-oscuro: #c45b35;
    --gris-oscuro: #292D3E;
}

* {
    box-sizing: border-box;
}


html {
    overflow-x: hidden;
}

body {
    color: #444444;
    height: 100vh;
    padding: 0;
    margin: 0;
    background: #F3F2F2;
    font-family: 'Roboto', sans-serif;
}

a {
    color: var(--principal);
    text-decoration: none;
    transition: all 0.3s ease-out;
}

a:hover {
    color: var(--naranja-oscuro);
}

p {
    line-height: 1.5em;
}

strong {
    font-weight: 900;
}

h1,
h2,
h3 {
    font-weight: 900;
}

h1 {
    color: #959595;
    border-bottom: 1px dotted var(--principal);
    padding-bottom: 10px;
    text-transform: uppercase;
    font-weight: 300;
}

h3 {
    font-size: 1.2em;
}

figure {
    margin: 0;
    padding: 0;
}

img {
    width: 100%;
    height: auto;
    display: block;
}


/*Exito*/

.exito {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.exito figure {
    height: 100vh;
}

.exito figure img {
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.exito section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.exito div {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.exito div p {
    font-size: 36px;
    line-height: 36px;
    font-weight: 900;
    color: var(--gris-oscuro);
    text-align: center;
}

.exito div p span {
    color: var(--principal);
}

.exito div img {
    max-width: 150px;
}

@media(max-width:1000px) {
    .exito {
        grid-template-columns: 1fr;
        grid-template-rows: 30% 70%;
        min-height: 100vh;
    }

    .exito figure {
        height: 30vh;
    }

    .exito div p {
        font-size: 30px;
        line-height: 34px;
    }
}

/*Footer*/
footer {
    padding: 10px;
    background: var(--gris-oscuro);
    color: #F0F0F0;
    text-align: center;
}

@media(max-width:767px) {
    footer p {
        font-size: 14px;
    }
}

/*Animación*/

@keyframes aparece {
    0% {
        transform: scale(200%);
        opacity: 0;
    }

    100% {
        transform: scale(100%);
        opacity: 1;
    }
}
</style>