/* General Body Styles */
body {
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

/* Wrapper and Inner Container */
#wrapper {
    display: flex;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#main {
    flex: 1;
    padding: 2em;
}

#sidebar {
    width: 650px;
    padding: 0.2em;
    background: #383838;
    border-left: 1px solid #ddd;
}


/* Headings */
h1,
h2,
h3 {
    line-height: 1.2;
    color: #1263A0;

}

h2 {
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 10px;
}

/* Content */
.content h3 {
    font-size: 1.2em;
    margin-top: 1.5em;
    color: #7C7C7C;
}

.content p,
.content h3,
.content ul {
    text-align: justify;
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}

/* Links and Buttons */
a {
    color: #1263A0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.verse-link {
    color: #1263A0;
    text-decoration: underline;
    cursor: pointer;
}

.button {
    display: inline-block;
    background: #1263A0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.button:hover {
    background: #0e4f80;
    color: white;
    text-decoration: none;
}

/* Menu */
#menu ul {
    list-style: none;
    padding: 0;
}

#menu ul li a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

#menu ul li a:hover {
    background: #1263A0;
    color: white;
}

/* Visitor Counter */
#visitor-counter {
    margin-top: 2rem;
    text-align: center;
    font-size: 1.2em;
    color: #555;
}

#visitor-counter .count {
    font-weight: bold;
    color: #1263A0;
}

/* Modals */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
    padding-top: 60px;
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px 35px;
    border: 1px solid #888;
    width: 80%;
    max-width: 95%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.titulo-iluminado {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #ff00de, 0 0 35px #ff00de, 0 0 40px #ff00de, 0 0 50px #ff00de, 0 0 75px #ff00de;
}

/* --- Preformatted Text for Analysis --- */
pre {
    background-color: #e8eaf6;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    /* Wraps the text */
    word-wrap: break-word;
    font-size: 14px;

    color: #1c1c1c;
    text-align: left;
    /* Ensures left-to-right alignment */
}

/* --- Hebrew Word Colors --- */
.hw {
    font-size: 18px;
    font-weight: bold;
    font-weight: bold;
}

.hw1 {
    font-size: 18px;
    font-weight: bold;
    color: #9B2226;
}

.hw2 {
    font-size: 18px;
    font-weight: bold;
    color: #005F73;
}

.hw3 {
    font-size: 18px;
    font-weight: bold;
    color: #CA6702;
}

.hw4 {
    font-size: 18px;
    font-weight: bold;
    color: #0A9396;
}

.hw5 {
    font-size: 18px;
    font-weight: bold;
    color: #5E548E;
}

.hw6 {
    font-size: 18px;
    font-weight: bold;
    color: #AE2012;
}

.hw7 {
    font-size: 18px;
    font-weight: bold;
    color: #0077B6;
}

.hw8 {
    font-size: 18px;
    font-weight: bold;
    color: #480CA8;
}

.justified-paragraph {
    text-align: justify;
    /* Justifica el texto */
    margin-left: 40px;
	margin-top: 0px;
	margin-bottom: 0px;

    color: #333;
    /* Color de texto oscuro para contraste */
}

.justified-paragraph_80 {
    text-align: justify;
    /* Justifica el texto */
    margin-left: 80px;
	margin-top: 0px;
	margin-bottom: 0px;
    color: #333;
    /* Color de texto oscuro para contraste */
}

.justified-paragraph_120 {
    text-align: justify;
    /* Justifica el texto */
    margin-left: 120px;

    color: #333;
    /* Color de texto oscuro para contraste */
}

.resumen-negrillas {
    font-weight: bold;
    font-size: 14px;
}

.versiculo_hebreo {
    font-size: 20px;
    color: #005F73;
    font-weight: bold;
    margin-left: 40px;
}

/* Estilo del cuadrado */
.cuadrado {
    width: 600px;
    /* Ancho del cuadrado */
    height: 160px;
    /* Alto del cuadrado */

    /* Fondo con imagen, centrado y cubriendo todo el contenedor, con color de respaldo */
    background: #83C1FB url('images/mountain_hero.png') no-repeat center center / cover !important;

    border: 2px solid #ffffff;
    /* Borde blanco */
    border-radius: 20px;
    /* Esquinas redondeadas */
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff00ff, 0 0 40px #ff00ff;
    /* Efecto de brillo inicial */
    animation: brillar 2s infinite alternate;
    /* Animación continua */
    margin: 50px auto;
    /* Centrado en la página */
    position: relative;
}

/* Animación para el brillo */
@keyframes brillar {
    0% {
        box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #04B8FF, 0 0 40px #04B8FF;
    }

    100% {
        box-shadow: 0 0 20px #fff, 0 0 30px #fff, 0 0 50px #04B8FF, 0 0 70px #04B8FF;
    }
}

/* Contenedor de corazones */
.corazones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Evita que interfiera con clics */
}

/* Creación de corazones usando SVG */
.corazon {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: mover-corazon 2s infinite ease-out;
    opacity: 1;
    filter: drop-shadow(0 0 5px red) drop-shadow(0 0 10px red);
    /* Brillo */
}

.corazon svg {
    width: 100%;
    height: 100%;
    fill: red;
    /* Color del corazón */
}

/* Posicionamiento de los corazones fuera del marco */
.corazon:nth-child(1) {
    top: -10%;
    left: 10%;
    animation-delay: 0s;
}

.corazon:nth-child(2) {
    top: -10%;
    right: 10%;
    animation-delay: 0.5s;
}

.corazon:nth-child(3) {
    bottom: -10%;
    left: 10%;
    animation-delay: 1s;
}

.corazon:nth-child(4) {
    bottom: -10%;
    right: 10%;
    animation-delay: 1.5s;
}

.corazon:nth-child(5) {
    top: 50%;
    left: -5%;
    animation-delay: 2s;
}

.corazon:nth-child(6) {
    top: 50%;
    right: -5%;
    animation-delay: 2.5s;
}

.corazon:nth-child(7) {
    left: 50%;
    top: -10%;
    animation-delay: 3s;
}

.corazon:nth-child(8) {
    right: 50%;
    top: -10%;
    animation-delay: 3.5s;
}

/* Animación de los corazones */
@keyframes mover-corazon {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Responsive adjustments for .cuadrado */
@media screen and (max-width: 980px) {
    .cuadrado {
        width: 80%;
        max-width: 600px;
    }
}

@media screen and (max-width: 736px) {
    .cuadrado {
        width: 95%;
        height: auto;
        min-height: 80px;
        background-size: cover !important;
        /* Ensure background covers the area */
    }

    .cuadrado h1 {
        font-size: 20pt !important;
        margin-top: 25px !important;
    }
}

@media screen and (max-width: 480px) {
    .cuadrado {
        width: 100%;
    }

    .cuadrado h1 {
        font-size: 18pt !important;
    }
}

/* Tablet (max-width: 980px) */
@media screen and (max-width: 980px) {
    .cuadrado {
        width: 80%;
        max-width: 600px;
    }
}

/* Mobile (max-width: 736px) */
@media screen and (max-width: 736px) {
    .cuadrado {
        width: 95%;
        height: auto;
        min-height: 80px;
        background-size: cover !important;
    }
    
    .cuadrado h1 {
        font-size: 20pt !important;
        margin-top: 25px !important;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .cuadrado {
        width: 100%;
    }
    .cuadrado h1 {
        font-size: 18pt !important;
    }
}
