* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* body background settings */
body {
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* nav stays at top */
nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* main nav bar layout */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 50px;
    padding-right: 50px;
    gap: 8px;
    margin-bottom: 0px;
}

/* color wheel icon and theme dropdown */
.nav-color {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* theme icon image */
.nav-color img {
    width: 20px;
    height: 20px;
}

/* row of zodiac signs buttons in nav */
.zodiac-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

/* fun facts,js sets the color */
.fun-container {
    color: white;
    font-family: "Playwrite NZ Basic", cursive;
    font-weight: 400;
}

/* app title */
.h1-header {
    text-align: center;
    color: white;
    font-size: 45px;
    font-family: "Petit Formal Script", cursive;
    /* font-family: "Shadows Into Light", cursive; */
}

/* today's date */
#today-date {
    color: white;
    font-family: "Oregano", cursive;
    font-size: 30px;

    font-weight: 400;
}

/* pick your sign heading */
.h1-container {
    text-align: center;
    color: white;
    font-size: 35px;
    font-family: "Shadows Into Light", cursive;
}

/* center paragraphs */
p {
    text-align: center;
}

/* grid layout for sign cards */
.sign-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;

}

/* sign images only  */
.image-container img {
    width: 170px;
    height: 170px;
    object-fit: contain;

}

/* each sign card stacks content up */
.date-name-container {
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
    gap: 10px;
}

/* sign name above the image */
.sign-name {
    font-size: 35px;
    font-weight: 800;
    display: block;
    font-family: "Sedgwick Ave", cursive;
}

/* get horoscope button */
.sign-card {
    height: 40px;
    padding: 5px;
    width: 80px;
}

/* date range text */
.sign-dates {
    text-align: center;
    font-family: "Playwrite NZ Basic", cursive;
    font-weight: 800;
    color: white;
}

/* base styles for all buttons */
button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    align-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: "Shadows Into Light", cursive;
}

/* glow on hover */
button:hover {
    transform: scale(1.08);
    filter: brightness(1.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* shrinks on click */
button:active {
    transform: scale(0.96);
    filter: brightness(0.9);
}

/* theme picker dropdown */
select {
    height: 30px;
    width: 130px;
    padding-left: 4px;
    padding-right: 4px;
    cursor: pointer;
    font-family: "Playwrite NZ Basic", cursive;
}

/* loading gif inside modal */
#loading-video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* horoscope text starts hidden - js swaps after 5 seconds */
#horoscope-result {
    display: none;
}

/* backdrop covering screen when modal is open */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* js adds this class to show modal */
.modal.active {
    display: flex;
}

/* modal box */
.modal-content {
    background-color: black;
    color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    font-family: "Playwrite NZ Basic", cursive;
}

/* modal sign name heading */
.modal-content h2 {
    font-family: "Rum Raisin", sans-serif;
    font-size: 40px;
}

#yesterday-btn {
    background: none;
    border: 1px solid white;
    border-radius: 6px;
    padding: 8px 18px;
    margin-top: 15px;
    cursor: pointer;
    font-family: "Playwrite NZ Basic", cursive;
    font-size: 14px;
}
/* X close button in modal */
#modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    background: transparent;
    border: none;
    padding: 8px;
}

/* sign info overlay */
#sign-info {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    color: white;
    overflow-y: auto;
    padding: 40px;
    z-index: 200;
    text-align: center;
    font-weight: 400;
    font-family: "Mystery Quest", system-ui;
}

/* centers sign info content */
.sign-info-content {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 13px;
}

/* loading gif*/
#sign-info-loading {
    display: none;
    width: 300px;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 150px;
}

/* sign name headings */
#name {
    font-size: 40px;
    /* font-family: "Petit Formal Script", cursive; */
    font-family: "Mystery Quest", system-ui;

}

/* dates below sign name */
#dates {
    font-size: 20px;
    font-family: "Playwrite NZ Basic", cursive;
    font-weight: 800;
}

/* section headings inside overlay */
#sign-info h2 {
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-items: center;
    text-align: center;
    font-weight: 400;
    font-size: xx-large;
    font-family: "Mystery Quest", system-ui;

}

/* row of element, symbol, modality */
.about-sign {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-evenly;
    font-size: large;
    gap: 10px;
}

.about-sign span {
    font-size: medium;
    font-weight: 500;
}

/* list layout for traits, strengths, weaknesses */
ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
    list-style-type: none;
    padding-left: 0px;
}

/* the list items */
#traits,
#strengths,
#weaknesses {
    font-size: larger;
    font-weight: 500;
}

/* all other info paragraphs */
#keywords,
#lucky_colors,
#lucky_numbers,
#lucky_day,
#lucky_gemstone,
#love_style,
#friendship_style,
#career_strengths,
#shadow_side,
#spiritual_lesson,
#famous_examples,
#description {
    font-size: larger;
    font-weight: 500;
}

#compatibility,
#least_compatible {
    font-size: larger;
    font-weight: 600;
}

/* close button on the overlay */
#sign-info-close {
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    padding: 8px;
}


/* footer layout */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 40px;
    padding-right: 40px;
    margin-top: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.9em;
    font-family: "Playwrite NZ Basic", cursive;
}

.footer-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
    object-fit: contain;
}

.footer-copy {
    text-align: left;
    margin: 0px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

/* fades on hover */
.footer-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .nav-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* tablet - 2 columns */
@media (max-width: 768px) {
    .sign-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #sign-info {
        padding: 20px;
    }

    .h1-header,
    .h1-container {
        font-size: 26px;
    }
}

/* mobile single column */
@media (max-width: 480px) {
    .nav-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sign-grid {
        grid-template-columns: 1fr;
    }

    /* wider buttons on mobile  */
    .sign-card {
        width: 120px;
    }

    .h1-header,
    .h1-container {
        font-size: 22px;
    }
}