/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Roboto+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
  }

body {
    font-family: 'Roboto Mono', monospace;
    background: #FFB0D8;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    width: 90%;
    flex-direction: column;
    padding: 5%;
}

.container {
    height: fit-content;
    width: 100%;
    max-width: 1000px;
    max-height: 1000px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    padding: 60px 30px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
    text-align: center;
}

#randomSaintBtn {
    background-color: #ffb700;
    color: #fff;
    padding: 20px 40px;
    font-weight: 600;
    box-shadow: 0 6px 20px 0px #00000021;
}

p {
    font-family: 'EB Garamond', sans-serif;
    font-size: 22px;
}

.saint_vector {
    height: 50%;
    max-height: 285px;
    position: relative;
}

.saint_vector img {
    height: 100%;
}

h1 {
    position: absolute;
    bottom: 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

h1 b {
    background: #fff;
    width: fit-content;
    display: block;
    font-size: 30px;
    padding: 0 5px;
    color: #ffb700;
}

h1 span {
    background: #fff;
    font-size: 20px;
    width: fit-content;
    padding: 0 5px;
}

/* Styles pour le modal (pop-up) */
.modal {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place */
    z-index: 1; /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%; /* Largeur totale */
    height: 100%; /* Hauteur totale */
    overflow: auto; /* Scroll si nécessaire */
    background-color: rgba(0,0,0,0.5); /* Fond semi-transparent */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; /* 10% du haut et centré */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.5s;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

#saintInfoModal img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.feast-day {
    font-weight: bold;
    margin-top: 10px;
}

.description {
    margin-top: 10px;
    text-align: left;
}