/* Heldane Display Font Faces */
@font-face {
    font-family: 'Heldane Display';
    src: url('fonts/heldane-display-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Heldane Display';
    src: url('fonts/heldane-display-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Heldane Display';
    src: url('fonts/heldane-display-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Heldane Display';
    src: url('fonts/heldane-display-regular-italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Heldane Display';
    src: url('fonts/heldane-display-bold-italic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Heldane Display';
    src: url('fonts/heldane-display-medium-italic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* CSS Font Variables */
:root {
    --main-font: 'Heldane Display', Georgia, serif;
    --heading-font: 'Heldane Display', Georgia, serif;
    --italic-font: 'Heldane Display', Georgia, serif;
    --special-heading-font: 'Heldane Display', Georgia, serif;
    
    /* Default Palette (Guess 1) */
    --background-color: #c1e7c1;
    --feature-color: #132d22;
}

/* Guess 2 Palette - Slightly warmer */
.page.guess-2 { 
    --background-color: #e7d9c1;
    --feature-color: #2d2213;
}

/* Guess 3 Palette - Getting warmer */
.page.guess-3 {
    --background-color: #e7cac1;
    --feature-color: #2d1913;
}

/* Guess 4 Palette - Almost hot */
.page.guess-4 {
    --background-color: #e7b8c1;
    --feature-color: #2d1318;
}

/* Guess 5 (Wrong) Palette - Hot/Danger */
.page.guess-5 {
    --background-color: #ffc6d5;
    --feature-color: #700101;
}

/* Success Palette - Inverse of root (win on any guess) */
.page.success {
    --background-color: #132d22;
    --feature-color: #c1e7c1;
}

/* Global Body Styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--main-font);
    font-weight: 400;
}
.page {
    background-color: var(--background-color);
    color: var(--feature-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    height: 100svh;
    overflow: hidden;
}
/* Zill-dle Game Styles */

/* Logo Header */
.logo_outer_wrapper {
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    height: 60px;
    overflow: hidden;
    border-bottom: 1px solid var(--feature-color);
}
.logo-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 .5em;
    font-size: 2em;
    line-height: .8;
    position: relative;
    height:60px;
}
.logo-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 3px;
}
.logo-connector {
    width: .5em;
    background: var(--feature-color);
    height: 2px;
    transition: width 1s ease-out;
}
.logo-header:hover .logo-connector, .expand_Logo .logo-connector {
    width: 100lvw;    
    transition: width 1s ease;
}   
.running-total {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--feature-color);
    opacity: 0;
    transition: opacity 0.25s ease-out;
    position: absolute;
}
.game-instructions, .game-results {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: .5em;
    max-width: 400px;
    margin: 0 auto;
}
.logo-header:hover .running-total, .expand_Logo .running-total {
    opacity: 1;
    transition: opacity 0.5s ease-out .75s;
}
.intro_text {
    max-width: 50lvw;
    font-size: 36px;
}
.information-text {
    font-size: 1.25em;
    padding: 0 1em;
    text-align: center;
}
.instructions-list {    
    font-size: 1.25em;
    margin-top: 1em;
    padding-top: 1em;
    border-top: 1px dashed var(--feature-color);
}
.instructions-list ul {
    margin: 0;
}
.instructions-title {
    font-weight: 700;
}
.running-total .label {
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 0.9rem;
}

.running-total .value {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: bold;
}

.game-container {
    height: calc(100svh - 130px);
    overflow: auto;
    position: relative;
}
.previous_guess_wrapper  {
    position: absolute;
    bottom: 1em;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1em;
    z-index: 1000;
}
.previous_guess {
    padding-left: 1em;
    display: flex;
    align-items: center ;
    justify-content: space-between;
    width: 25ch;
    border-radius: 25px; 
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
}
.toggle-icon{
        height: 2rem;
    width: 2rem;
    border: 1px solid var(--feature-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    border-radius: 2em;
    cursor: pointer;
    background: var(--background-color);
}
span.guess-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    border-radius: 25px;
    padding: .25em;
    margin: 5px;
}
.previous_guess.guess-higher {
    background: rgba(220, 38, 38, 0.4);
    backdrop-filter: blur(10px);
    color: #700101;
}
.previous_guess.guess-lower {
    background: rgba(139, 148, 255, 0.4);
    backdrop-filter: blur(10px);
    color: #061e60;
}
.previous_guess_inner_wrapper {
    display: flex;
    flex-direction: column;
}
.previous_guess_inner_wrapper > .previous_guess:not(:last-child) {
    margin-bottom: -1.5em;
    transition: all .3s ease-in;
}
.previous_guess_inner_wrapper.expanded > .previous_guess:not(:last-child) {
    margin-bottom: 1em;
    transition: all .3s ease-in;
}
.previous_guess.guess-1 {
    transform: scale(0.8);
}

.previous_guess.guess-2 {
    transform: scale(0.85);
}

.previous_guess.guess-3 {
    transform: scale(0.9);
}

.previous_guess.guess-4 {
    transform: scale(.95);
}

/* When expanded, remove all transforms */
.previous_guess_inner_wrapper.expanded .previous_guess {
    transform: scale(1);
}
.previous_guess.most-recent {
    transform: scale(1);
    font-size: 1.25em;

}
.house-display {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.show_onHover {
    display: none;
}
.btn-submit:hover .show_onHover, .guess-stats:hover .show_onHover {
    display: block;
}

.image_display.polaroid.photo-1 {
    position: relative;
}

.game-container::-webkit-scrollbar-track {
    background: transparent;
}

.game-container::-webkit-scrollbar-thumb {
    background: var(--feature-color);
}

.game-container::-webkit-scrollbar-thumb:hover {
    background: var(--feature-color);
    opacity: 0.8;
}

.nav_menu {
    height: 69px;
}
.inner_nav_menu {
    display: flex;
    gap: 0.5em;
    flex-direction: column;
    padding-bottom: .5em;
}
.game-controls {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 1em;
}
.game-controls::before {
    content: "";
    width: 100%;
    height: 1px;
    background: var(--feature-color);
    position: absolute;
}


.form-group, .btn-submit, .guess-stats {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2em;
    backdrop-filter: blur(10px);
    border: 1px solid var(--feature-color);
    font-size: 1em;
    gap: .5em;
}
.btn-submit {
    cursor: pointer;
    color: var(--feature-color);
}
a.btn-submit {
    text-decoration: none;
    color: var(--feature-color);
}
.form-group {
    padding-right: 5px;
}
.form-group .btn-submit {
    background: var(--feature-color);
    color: var(--background-color);
    border: 1px solid var(--feature-color);
}
.form-group .btn-submit:hover {
    background: var(--background-color-color);
    color: var(--feature-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-submit, .guess-stats{
    font-family: var(--heading-font);
   padding: 0.75rem 1.5rem;
}
.guess-stats {
    font-size: 1.75em;
    padding: .25em .75em;
}
.info-row {
    display: flex;
    gap: .5em;
}
.info-row .info-field {
    flex-grow: 1;
}
.form-group label {
    padding: 3px 1em;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    border: 1px solid var(--feature-color);
    border-top: 0;  
}
.btn-submit:hover {
    background: var(--feature-color);
    color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Countdown Timer Styles */
.countdown-timer {
    font-family: var(--heading-font);
    padding: 0.75rem 1.5rem;
    background: var(--background-color);
    color: var(--feature-color);
    border: 1px solid var(--feature-color);
    border-radius: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    z-index: 1;
}

.timer-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Social Share Styles */
.social-share {
    margin-top: 1rem;
    text-align: center;
}

.share-label {
    font-family: var(--heading-font);
    color: var(--feature-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--feature-color);
    background: transparent;
    color: var(--feature-color);
    font-family: var(--main-font);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn.twitter:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.social-btn.threads:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.social-btn.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.social-btn svg {
    flex-shrink: 0;
}

.form-control {
    background: transparent;
    border: none;
    min-width: 15ch;
    font-size: 1.75em;
    font-family: var(--heading-font);
    font-weight: 700;
    border-radius: 5px;
    padding: 0.5rem;
    text-align: center;
}
.form-control:focus {
    outline: none;
    box-shadow: none;
    border:none;
}

/* Polaroid Stack Styles */
.polaroid-stack {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 2em;
}

.polaroid {
    position: absolute;
    width: 100%;
    background: var(--background-color);
    border: 1px solid var(--feature-color);
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

/* Stack positioning - bottom to top */
.polaroid.photo-4 {
    transform: rotate(-3deg) translateY(-5px) translateX(-5px);
    z-index: 1;
}

.polaroid.photo-3 {
    transform: rotate(2deg) translateY(-7px) translateX(5px);
    z-index: 2;
}

.polaroid.photo-2 {
    transform: rotate(-1deg) translateY(-5px) translateX(-3px);
    z-index: 3;
}

.polaroid.photo-1 {
    transform: rotate(0deg);
    z-index: 4;
}

/* When photos are revealed, bring them to top */
.polaroid.revealed.photo-4 {
    z-index: 16;
    transition: filter 0.3s ease;
}

.polaroid.revealed.photo-3 {
    z-index: 14;
    transition: filter 0.3s ease;
}

.polaroid.revealed.photo-2 {
    z-index: 12;
    transition: filter 0.3s ease;
}

.polaroid.revealed.photo-1 {
    z-index: 10;
}

/* Placeholder state */

.polaroid.placeholder img {
    background: var(--feature-color);
}

.image_display {
    width: 100%;
    position: absolute;
}
.image_title {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 8px 12px;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    z-index: 10;
    background: var(--background-color );
    border: 1px solid var(--feature-color);
}
.image_display img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
    border: none;
    display: block;
     border: 1px solid var(--feature-color);
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background:var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--feature-color);
    font-family: var(--main-font);
    font-size: 1.5rem;
}

.property-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-field {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2em;
    backdrop-filter: blur(10px);
    border: 1px solid var(--feature-color);
    justify-content: center;
    flex-direction: column;
    padding: 0.5rem 1rem;
    padding-top: 0;
}


.info-field label {
    font-family: var(--heading-font);
    color: var(--feature-color);
    font-size: .8em;
}

.info-field span {
    font-family: var(--main-font);
    font-size: 1.5em;
    color: var(--feature-color);
}

.info-field .hidden {
    color: var(--feature-color);
    font-family: var(--italic-font);
    opacity: 0.5;
}

.info-field .revealed {
    color: var(--feature-color);
    font-weight: 600;
}


.feedback {
    font-family: var(--main-font);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.feedback.higher {
    background: #fef3c7;
    color: var(--feature-color);
    border: 2px solid #fbbf24;
}

.feedback.lower {
    background: #dbeafe;
    color: var(--feature-color);
    border: 2px solid #3b82f6;
}

.feedback.error {
    background: #fee2e2;
    color: var(--feature-color);
    border: 2px solid #ef4444;
}

.feedback.success {
    background: #d1fae5;
    color: var(--feature-color);
    border: 2px solid #10b981;
}

.game-won {
    text-align: center;
    padding: 2rem;
    background: #d1fae5;
    border-radius: 8px;
    margin-top: 2rem;
}

.game-won.game-over {
    background: #fee2e2;
}

.game-won h2 {
    font-family: var(--special-heading-font);
    color: var(--feature-color);
    margin-bottom: 1rem;
}

.game-won p {
    font-family: var(--main-font);
    color: var(--feature-color);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.game-won .penalty {
    font-weight: bold;
    color: #dc2626;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.recent-guess {
    font-family: var(--main-font);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.recent-guess:hover {
    opacity: 0.8;
}

.recent-guess.guess-higher {
    color: var(--feature-color);
}

.recent-guess.guess-lower {
    color: var(--feature-color);
}

.recent-guess .guess-value {
    font-size: 1.2rem;
}

.recent-guess .toggle-icon {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.all-guesses {
    margin-top: 1rem;
    padding: 1rem;
}

.all-guesses h4 {
    font-family: var(--heading-font);
    color: var(--feature-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.all-guesses ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.all-guesses li {
    font-family: var(--main-font);
    padding: 0.5rem;
    margin: 0.25rem 0;
    color: var(--feature-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.all-guesses li.guess-higher {
    color: var(--feature-color);
}

.all-guesses li.guess-lower {
    color: var(--feature-color);
}
