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

body {
    font-family: Verdana, Arial, Helvetica, Sans Serif;
    line-height: 1.4;
    color: #000;
    background: #97acc8;
}

/* Container */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.container h1{
    font-size: 1rem;
}
.container p{
    font-size: .8rem;
}

/* Grid of boxes */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* Box component - flat, bordered */
.box {
    background: #f99d1b;
    border: 3px solid #000;
    border-left: 10px solid #000;
    padding-left: 1rem;
    padding-bottom: 0rem;  /* Add bottom padding for the p tag */
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Changed from center */
    align-items: flex-start;
    text-align: left;
    position: relative;
}

/* Clickable box hover - just background change, no animation */
a.box:hover,
.box.interactive:hover {
    background: #fad8a9;
    cursor: pointer;
}

/* Interactive box */
.box.interactive {
    cursor: pointer;
}

.box h2 {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 600;
    margin-top: -15px;
}
.box.energy{
    height: auto;
    padding: .3rem 1rem;
}
.box.energy h3 {
    font-size: .8rem;
    padding: .4rem 0;
    font-weight: 300;
}
.box.energy input[type="text"]{
            width: 100%;
            padding: 0.2rem;
            border: 2px solid #000;
            font-family: inherit;
            font-size: .8rem;
            background: white;
}

.box p {
    color: #000;
    font-size: .65rem;
    font-weight: bold;
    position: absolute;  /* Take it out of flow */
    bottom: 0.1rem;     /* Pin to bottom */
    left: 1rem;          /* Match the left padding */
}

/* Link boxes */
a.box {
    color: inherit;
    text-decoration: none;
}

/* Hidden content */
.hidden {
    display: none;
}

/* Video iframe */
iframe {
    margin-top: 1rem;
    border: 2px solid #000;
}

/* Responsive - single column on mobile */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
/* Remove hover states on touch devices */
@media (hover: none) and (pointer: coarse) {
    /* For boxes - return to default box color */
    body a.box:hover,
    body .box.interactive:hover {
        background: #f99d1b !important;
    }
    
    /* For buttons - return to button default */
    body button:hover {
        background: #000 !important;
    }
    
    body button.remove-btn:hover {
        background: #8b0000 !important;
    }
    
    /* For links - return to normal state */
    body .back-link a:hover {
        background: transparent !important;
        color: #000 !important;
    }
}

/* Use active state for touch instead */
@media (hover: none) and (pointer: coarse) {
    a.box:active,
    .box.interactive:active {
        background: #fad8a9;
    }
    
    button:active {
        background: #333;
    }
    
    button.remove-btn:active {
        background: #a52a2a;
    }
}

/* ========== THEMES ========== */

/* Pastel theme */
body.pastel {
    background: #fbe6a0;
}

body.pastel .form-section,
body.pastel .attendee-box {
    background: #f27291;
}

body.pastel button {
    background: #f27291;
    border-color: #f27291;
}

body.pastel button:hover {
    background: #e05070;
}

/* Crimson-grey theme */
body.crimson-grey {
    background: #a2b0ad;
}

body.crimson-grey .form-section,
body.crimson-grey .attendee-box {
    background: #ab2439;
    color: #fff;
}

body.crimson-grey button {
    background: #111;
    border-color: #111;
}

body.crimson-grey button:hover {
    background: #8a1d2e;
}

body.crimson-grey label,
body.crimson-grey .event-header {
    color: #111;
}

/* Sulphur-black theme */

body.sulphur-black {
    background: #111314;
    color: #f5ecc2;
}

body.sulphur-black .event-header{
    background: #f5ecc2;
    color:#000;
    
}

body.sulphur-black .form-section,
body.sulphur-black .attendee-box {
    background: #f5ecc2;
    color: #111314;
    border-color: #111314;
}

body.sulphur-black button {
    background: #b09f36;
    border-color: #b09f36;
    color: #111314;
    
}

body.sulphur-black button:hover {
    background: #756a24;
}

body.sulphur-black input {
    background: #222;
    color: #f5ecc2;
    border-color: #111314;
}

body.sulphur-black .back-link a {
    color: #f5ecc2;
    border-bottom: 2px solid #f5ecc2;
}

body.sulphur-black .back-link a:hover {
    background: #f5ecc2;
    color: #111314;
    border-bottom: 2px solid #f5ecc2;
}

@media (hover: none) and (pointer: coarse) {
    body.sulphur-black button:hover {
        background: #b09f36 !important;
    }
    
    body.sulphur-black button.remove-btn:hover {
        background: #b09f36 !important;
    }
}

/* Purple-orange theme */
body.purple-orange {
    background: #b73f74;
}

body.purple-orange .form-section,
body.purple-orange .attendee-box {
    background: #f37420;
}

body.purple-orange button {
    background: #b73f74;
    border-color: #b73f74;
}

body.purple-orange button:hover {
    background: #9a3361;
}

/* Winter theme */

body.winter {
    background: #111;
    color: #a5c8d1;
}

body.winter .event-header{
    background: #a5c8d1;
    color:#000;
    
}

body.winter .form-section,
body.winter .attendee-box {
    background: #a5c8d1;
    color: #111;
    border-color: #111;
}

body.winter button {
    background: #00978d;
    border-color: #00978d;
    color: #111;
    
}

body.winter button:hover {
    background: #005853;
}

body.winter input {
    background: #fff;
    color: #111;
    border-color: #111;
}

body.winter .attendee-section {
    color: #111;
}

body.winter .back-link a {
    color: #111;
    border-bottom: 2px solid #111;
}

body.winter .back-link a:hover {
    background: #111;
    color: #a5c8d1;
    border-bottom: 2px solid #111;
}

@media (hover: none) and (pointer: coarse) {
    body.winter button:hover {
        background: #00978d !important;
    }
    
    body.winter button.remove-btn:hover {
        background: #00978d !important;
    }
}

/* Black & White */

body.blackandwhite {
    background: #111314;
    color: #ebd3a2;
}

body.blackandwhite .event-header{
    background: #ebd3a2;
    color:#000;
    
}

body.blackandwhite .form-section,
body.blackandwhite .attendee-box {
    background: #ebd3a2;
    color: #111314;
    border-color: #111314;
}

body.blackandwhite button {
    background: #004f46;
    border-color: #004f46;
    color: #eee;
    
}

body.blackandwhite button:hover {
    background: #008f7e;
}

body.blackandwhite input {
    background: #333;
    color: #ebd3a2;
    border-color: #111314;
}

body.blackandwhite .attendee-section {
    color: #ebd3a2;
}

body.blackandwhite .back-link a {
    color: #ebd3a2;
    border-bottom: 2px solid #ebd3a2;
}

body.blackandwhite .back-link a:hover {
    background: #ebd3a2;
    color: #111314;
    border-bottom: 2px solid #ebd3a2;
}

@media (hover: none) and (pointer: coarse) {
    body.blackandwhite button:hover {
        background: #004f46 !important;
    }
    
    body.blackandwhite button.remove-btn:hover {
        background: #004f46 !important;
    }
}