/* style.css */

/* Galveņā ķermeņa stils */
body {
    background-image: url('images/background7.jpg'); /* Fona attēls */
    background-size: cover; /* Aizpilda visu ekrānu */
    background-position: center; /* Centrē attēlu */
    background-repeat: no-repeat; /* Neatkārto tekstu */
    background-color: transparent;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-family: 'URW Chancery L', cursive;
    /* Noņemam centēšanu, lai ļautu saturam augt un scrollot */
    display: block;
}

/* Galvenais saturs ar maksimālo platumu un centrētu izkārtojumu */
.container {
    background-color: #cad7fc;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center; /* ← Centrē tekstu un inline elementus */
  padding-top: 100px;
    min-height: 100vh; /* Vismaz pilna augstuma ekrāns */
     box-sizing: border-box; 
}

/* Attēlu pogas konteiners/izvietojums vienā rindā */
.image-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    
}

/* Attēlu pogas */
.image-button {
    width: 160px; /* nedaudz lielāks */
    height: 140px;
    object-fit: cover;
    border-radius: 10px; /* noapaļotāki stūri */
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

/* Kad virs pogas, rāda zilu apmali */
.image-button:hover {
    border-color: #1976D2;
}

/* Pogu ar nosaukumiem konteiners */
.image-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 160px;
}

.image-button-wrapper p {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

/* Vērtēšanas pogas (1-10) ar gaiši zilu fona krāsu un noapaļotiem stūriem */
button.rating {
    background-color: #328dee; /* gaiši zils */
    color: #e9ebee; /* tumšāks zils tekstam */
    margin: 6px;
    padding: 14px 22px; /* lielāks izmērs */
    border-radius: 12px; /* noapaļotāki stūri */
    border: none;
    cursor: pointer;
    font-size: 16px; /* lielāks fonts */
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Kad virs pogas, maina krāsu */
button.rating:hover {
    background-color: #64b5f6; /* tumšāks gaiši zils hover efekts */
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.6);
}

/* Poga kas aizved uz iepriekšējo lapu dizains*/
button.logout {
    background-color: #3679cf;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

button.logout:hover {
    background-color: #64c5d6;
}

/* Sarkanā izrakstīšanās poga */
button.izrakstities {
    background-color: #da5757;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 30px;
    transition: background-color 0.3s ease;
    
}

button.izrakstities:hover {
    background-color: #ec8686;
}

/* Citāta formāts */
blockquote {
    font-style: italic;
    color: #555;
    margin: 10px 0 20px 0;
}

blockquote footer {
    margin-top: 5px;
    font-weight: bold;
    color: #333;
}

/* Čata logs – konteineris */
#chat-window {
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 12px;
    background-color: #f0f7ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sarakstes logs */
#messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
}

/* Ievadlauks + poga vienā rindā */
#chat-window form {
    display: flex;
    gap: 10px;
}

/* Ievadlauks */
#chat-window input[type="text"] {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Sūtīt poga */
#chat-window button[type="submit"] {
    padding: 14px 24px;
    font-size: 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chat-window button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Katrs ziņojums */
.chat-message {
    text-align: left;      /* teksta izlīdzināšana pa kreisi */
    font-size: 18px;       /* lielāks fonts */
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background-color: #e0e0e0; /* piemērs fonam */
    max-width: 80%;
}

/* Rozā poga - Pievienot kolekcijai*/
.pink-button {
    background-color: #e91e63;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pink-button:hover {
    background-color: #c2185b;
}


/* Citāta bloks ar atstarpi starp citātiem */
.quote-block {
    margin-bottom: 30px; /* atstarpe starp citātiem */
}

/* Footer, kur autors pa kreisi, poga pa labi, vienā rindā */
.quote-block blockquote footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-style: italic;
}

/* Lejupielādes pogas stils */
.download-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.download-button:hover {
    background-color: #0056b3;
}

/* Tumšāka, biezāka līnija zem katra citāta */
.quote-block hr {
    border: none;
    border-top: 2px solid #171435;
    margin-top: 15px;
}

/* LOGIN FORMA - kastītes stils */
.login-box {
     width: 400px;  /* platums */
    max-width: 50vw; /* ne vairāk par 90% no skatloga platuma */
    margin: 60px auto;
    padding: 30px;
    border: 1px solid #a9aacc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #e3f2fd;
    font-family: 'URW Chancery L', cursive;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;  /* lai teksts būtu izteiksmīgāks */
    color: #333;
    text-align: left; /* pilnīga pārliecība, ka kreisajā pusē */
}

/* Input lauki aizņem visu platumu */
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px; /* nedaudz lielāks attālums no label */
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    border-color: #007BFF;
    outline: none;
}

/* Poga labajā pusē zem paroles */
.login-box form > div.button-container {
    text-align: right;
}

/* Zaļā pieslēgšanās poga */
.login-box button[type="submit"] {
    background-color: #28a745; /* Zaļa */
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-box button[type="submit"]:hover {
    background-color: #218838;
}

/* Kļūdu ziņojums */
.error-message {
    color: red;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

/* Saite uz reģistrāciju */
.register-link {
    text-align: center;
    margin-top: 18px;
}

.register-link a {
    color: #007BFF;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Reģistrācijas kaste */
.register-box {
    width: 400px;  /* tāds pats platums kā login-box */
    max-width: 50vw;
    margin: 60px auto;
    padding: 30px;
    border: 1px solid #a9aacc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #e3f2fd; /* login lapas zilgani gaišā krāsa */
    font-family: 'URW Chancery L', cursive;
    text-align: left;
}

.register-box h1 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
}

.register-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

/* Ievadlauki visi vienādi */
.register-box input[type="text"],
.register-box input[type="email"],
.register-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.register-box input[type="text"]:focus,
.register-box input[type="email"]:focus,
.register-box input[type="password"]:focus {
    border-color: #007BFF;
    outline: none;
}

/* Poga reģistrēties labajā pusē, zilā krāsā */
.register-box form > div.button-container {
    text-align: right; /* lai poga būtu kreisajā pusē */
    margin-top: 10px;
    width: 100%;
}

/* Zaļā reģistrēties poga */
.register-box button[type="submit"] {
    background-color: #28a745; /* zila */
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    
}

.register-box button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Kļūdu ziņojums */
.register-box .error-message {
    color: red;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.register-box p {
    text-align: center;
    margin-top: 22px;
}

.register-box p a {
    color: #007bff;
    text-decoration: none;
}

.register-box p a:hover {
    text-decoration: underline;
}

/* Saite uz reģistrāciju */
.login-link {
    text-align: center;
    margin-top: 18px;
    clear: both;
}

.login-link a {
    color: #007BFF;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.login-box p,
.register-box p {
    font-size: 20px; /* vai cita vēlamā vērtība */
} 

/* Meditācijas lapas: attēlu pogu konteineris tiek attēlots kā 5 kolonnu režģis */
.meditation-page .image-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
}

/* Meditācijas lapas: katras pogas apvalks vertikāli centrēts */
.meditation-page .image-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Meditācijas lapas: attēlu poga ar noteiktiem izmēriem un stilu */
.meditation-page .image-button {
    width: 160px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

/* Hover efekts meditācijas attēla pogai */
.meditation-page .image-button:hover {
    border-color: #1976D2;
}

/* Apraksts zem attēla meditācijas lapā */
.meditation-page .image-button-wrapper p {
    margin-top: 10px;
    font-weight: bold;
}

/* Citātu lapas: attēlu pogu konteineris ar identisku režģa izkārtojumu */
.quotes-page .image-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
}

/* Citātu lapas: katras pogas apvalks ar tādu pašu centrēšanu */
.quotes-page .image-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Citātu lapas: attēlu poga ar tādu pašu stilu kā meditācijā */
.quotes-page .image-button {
    width: 160px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

/* Hover efekts citātu pogām */
.quotes-page .image-button:hover {
    border-color: #1976D2;
}

/* Apraksts zem attēla citātu lapā */
.quotes-page .image-button-wrapper p {
    margin-top: 10px;
    font-weight: bold;
}

/* Horizontāla līnija meditācijas sadaļas sadalīšanai */
.meditation-divider {
    border: 0;
    height: 4px;
    background-color: #1976D2;
    margin: 20px 0;
}


