/* 
  Project: Daily Uplift
  Description: Styling for Daily Uplift, a web app offering daily affirmations.
  Author: Dominique Thomas (github.com/dominique-thomas)
  License: MIT
*/
body.light-mode {
    background-color: #f8f9fa;
    color: #212529;
    font-family: 'Quicksand', sans-serif;
    height: 100vh; 
    overflow: hidden;    
}

body.dark-mode {
    background-color: #212529;
    color: #f8f9fa;
    font-family: 'Quicksand', sans-serif;
}

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

/* App Main Content */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #212529;
    opacity: 1;
    animation: fadeOutSplash 1s ease-in-out 4.5s forwards; 
    z-index: 1000;
}

.splash-hidden {
    opacity: 0;
    pointer-events: none; 
}

#main-content {
    text-align: center;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 0;
    overflow-y: auto;
}

#app-icon {
    margin-bottom: 10px;
    width: 100px;
    height: 100px;
    opacity: 0;
    animation: iconFadeIn 1.5s ease-in-out forwards 0.5s;
}

#app-name {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, #4769ff, #11abff);
    -webkit-background-clip: text;
    color: transparent;
    opacity: 0;
    margin-bottom: 0;
    animation: fadeInText 2s ease-in-out 1s forwards;
}

#tagline {
    font-size: 1rem;
    margin-top: 5px;
    opacity: 0;
    animation: fadeInTagline 2s ease-in-out 1.5s forwards;
}

.greeting-text {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 0; 
}

.tagline-text {
    font-size: 1.5rem; 
    opacity: 0.8;
    margin-top: 0; 
}

.affirmation-text {
    font-size: 2.8rem; 
    font-weight: bold;   
    background: linear-gradient(to right, #4769ff, #11abff);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;

    padding-left: 10px;
    padding-right: 10px;
}

.encouragement-text {
    font-size: 1rem;
    opacity: 0.8;
}

#themeToggle {
    position: fixed;
    color: #11abff;
    top: 20px; 
    right: 20px; 
    z-index: 999;
}

#installSection {
    display: flex;
    justify-content: center; 
    align-items: center;
}

#installBtn {
    margin-right: 10px; 
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer
}

  #dismissButton {
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#dismissButton:hover {
    background-color: #c82333;
}

/* Media Queries */
@media (max-width: 600px) {
    .affirmation-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 400px) {
    .affirmation-text {
        font-size: 2rem; 
    }
}

/* Animations */
@keyframes fadeInAffirmation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOutSplash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes iconFadeIn {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInTagline {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
