/*--- ROOT ---*/
:root {
    --ot-green: #58B475;
    --tnt-tx-color: #39364B;
    --tnt-bg-color: #E7E7E7;
    --wr-tx-color: #DCF2EF;
    --wr-bg-color: #4B7C73;
}

html, body {
    overflow-x: hidden;
}

.olvera-title,
.tech-title {
    margin: 0;
}

.ot-tb {
    width: 368px;
    height: 182px;
    margin: 30px;
}

::selection {
    background-color: var(--wr-tx-color);
    color: var(--wr-bg-color);
}

/*--- BODIES BODIES BODIES ---*/

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
}

.wr-title {
    color: #DCF2EF;
    font-family: lores-9-wide-bold-alt-oaklan, sans-serif;
}

.wr-body {
    background-color: var(--wr-bg-color);
    color: var(--wr-tx-color);
}

/*--- NAVEGATION BAR ---*/

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar a {
    color: var(--wr-tx-color);
    text-decoration: none;
    padding: 15px;
    display: block;
    text-align: center;
}

.navbar a:hover {
    background-color: var(--wr-tx-color);
    color: var(--wr-bg-color);
}

.navbar li {
    float: left;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    border-radius: 10px;
    padding: 10px;
    display: inline;
    text-align: center;
    margin: 10px;
    color: #58b475;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: lores-9-wide-bold-alt-oaklan, sans-serif;
}

.wr-title {
    display: none;
}

.wr-tx {
    font-size: 2rem;
}

.listen-on-mobile {
    display: none;
}

.wr-socials a {
    color: var(--wr-tx-color);
}

.wr-socials a:hover {
    color: var(--wr-bg-color);
    background-color: var(--wr-tx-color);
}

.listen-on-mobile a {
    color: var(--wr-tx-color);
}

.listen-on a {
    color: var(--wr-tx-color);
}

.listen-on a:hover {
    color: var(--wr-bg-color);
    background-color: var(--wr-tx-color);
}

/* FOOTER */
.olvera-wr-footer {
    font-family: kari-display-pro, sans-serif;
    font-size: 12px;
}

.tech-wr-footer {
    font-family: lores-9-wide-bold-alt-oaklan, sans-serif;
}

/* PODCASTS STUFF */

main {
    padding: 20px;
}

.podcast-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.podcast-info img {
    width: 200px;
    margin-right: 20px;
}

.podcast-details h1 {
    margin: 0;
}

.listen-on {
    margin-top: 20px;
}

.platform-icons {
    display: flex;
}

.platform-icons img {
    width: 30px;
    margin-right: 10px;
}

.episodes {
    margin-top: 30px;
}

.episode {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--wr-tx-color);
    display: flex;
    flex-direction: column;
}


#episodes-container :hover {
    background-color: var(--wr-tx-color);
    color: var(--wr-bg-color);
}

.audio-container {
    margin-top: auto;
    /* El contenedor de audio se empuja hacia abajo */
}

.episode audio {
    width: 100%;
}

#episodes-container {
    display: grid;
    /* Activamos CSS Grid */
    grid-template-columns: repeat(2, 1fr);
    /* Creamos 2 columnas de igual ancho */
    gap: 10px;
    /* Añadimos un espacio entre las columnas y filas */
}

.episode h3 {
    margin-bottom: 5px;
    /* Reducimos el margen inferior del título */
}

.episode p {
    margin-bottom: 10px;
    /* Añadimos margen inferior a la descripción */
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    /* Separamos la fecha y la duración */
    align-items: center;
    /* Alineamos verticalmente */
    margin-top: 10px;
    /* Añadimos margen superior */
}

.button-container {
    display: flex;
    /* Usamos flexbox para alinear los botones */
    justify-content: center;
    /* Centramos los botones horizontalmente */
    margin-top: 10px;
    /* Añadimos margen superior */
}

#show-more,
#show-all {
    padding: 10px 20px;
    border: none;
    background-color: var(--wr-tx-color);
    color: var(--wr-bg-color);
    cursor: pointer;
    text-align: center;
    min-width: 120px;
}

#show-more {
    margin-right: 10px;
}

/* MEDIA QUERYS */

@media screen and (max-width: 767px) {
    body {
        padding-left: 10px;
        padding-right: 10px;
    }
    #episodes-container {
        display: flex !important;
        flex-direction: column !important;
    }
    /*
    header {
        position: relative;
        background-image: url('assets/wr-aw.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding-bottom: 60vh;
        display: flex;
        /* Añadimos flexbox para controlar la disposición *
        flex-direction: column;
        /* Apilamos los elementos verticalmente *
    }
    */

    .navbar {
        position: relative;
        /* Ajustamos la posición de la barra de navegación */
        z-index: 1;
        /* Aseguramos que la barra de navegación esté encima del contenido */
    }

    .wr-title {
        display: block;
        font-size: 2rem
    }

    .listen-on-mobile {
        display: block;
    }
    .listen-on {
        display: none;
    }
    main {
        background-image: url('assets/wr-aw.png');
        width: 400px;
        height: 400px;
        background-size: 400px 400px;
        background-repeat: no-repeat;
        background-position: center;
    }
    .wr-title {
        font-size: 3.4rem;
        text-align: center;
    }
    .podcast-info {
        display: none;
    }
    .podcast-info {
        display: none;
    }
}