@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400..700&display=swap');

[x-cloak] { display: none !important; }

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

body {
    font-family: 'Cabin', sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

/* Card styling */
.card {
    background-color: #FFF9E6;
    color: #000000;
    border-radius: 0.25rem;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid #000000;
    text-align: center;
}

.card-content {
    margin-bottom: 2.5rem;
}

/* Typography */
.heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
}

.body-text {
    font-size: 1.125rem;
    font-weight: 300;
    color: #333333;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* Link styling */
a:not(.pill-button) {
    color: #F39C12;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:not(.pill-button):hover,
a:not(.pill-button):active {
    color: #000000;
}

/* Button stack */
.button-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Pill buttons */
.pill-button {
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border: 3px solid;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000000;
}

.pill-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pill-button:active {
    transform: translateY(0);
}

/* Button variants */
.pill-button.primary {
    background-color: #F39C12;
    border-color: #F39C12;
    color: #000000;
    font-weight: 500;
}

.pill-button.primary:hover {
    background-color: #E67E22;
    border-color: #E67E22;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.pill-button.secondary {
    background-color: transparent;
    border-color: #000000;
    color: #000000;
    font-weight: 500;
}

.pill-button.secondary:hover {
    background-color: #F39C12;
    border-color: #F39C12;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.pill-button.tertiary {
    background-color: transparent;
    border-color: #F39C12;
    color: #000000;
    font-weight: 500;
}

.pill-button.tertiary:hover {
    border-color: #E67E22;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

/* Tab navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 3px solid #000000;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: transparent;
    color: #000000;
}

.tab-button:hover {
    transform: translateY(-2px);
    background-color: #F39C12;
    border-color: #F39C12;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.tab-button:active {
    transform: translateY(0);
}

.tab-button.active {
    background-color: #F39C12;
    border-color: #F39C12;
    color: #000000;
    font-weight: 500;
}

.tab-button.active:hover {
    background-color: #E67E22;
    border-color: #E67E22;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Message display */
.message-display {
    font-size: 1.125rem;
    font-weight: 400;
    color: #F39C12;
    padding: 1rem;
    background-color: rgba(243, 156, 18, 0.1);
    border-radius: 0.25rem;
    border: 2px solid rgba(243, 156, 18, 0.3);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre-wrap;
    outline: none;
}

.message-display:focus {
    outline: none;
    border: 2px solid rgba(243, 156, 18, 0.3);
}

/* Square Clicker Game Styles */
.clicker-game {
    text-align: center;
    padding: 1rem 0;
}

.square-display {
    font-size: 2rem;
    font-weight: 700;
    color: #F39C12;
    margin-bottom: 1rem;
}

.clickable-square {
    width: 120px;
    height: 120px;
    background-color: #F39C12;
    border: 3px solid #000000;
    border-radius: 0.25rem;
    margin: 1rem auto;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    user-select: none;
}

.clickable-square:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.clickable-square:active {
    transform: scale(0.95);
}

.upgrades-section {
    margin-top: 2rem;
}

.upgrades-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: rgba(243, 156, 18, 0.1);
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 0.25rem;
}

.upgrade-info {
    flex: 1;
    text-align: left;
}

.upgrade-name {
    font-weight: 600;
    color: #000000;
}

.upgrade-description {
    font-size: 0.875rem;
    color: #333333;
}

.upgrade-cost {
    font-weight: 600;
    color: #F39C12;
    margin-right: 1rem;
}

.upgrade-button {
    font-family: 'Cabin', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 2px solid #F39C12;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #000000;
}

.upgrade-button:hover:not(:disabled) {
    background-color: #F39C12;
    transform: translateY(-1px);
}

.upgrade-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 2rem;
        border-radius: 0.25rem;
    }
    
    .heading {
        font-size: 2rem;
    }
    
    .body-text {
        font-size: 1rem;
    }
    
    .pill-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        min-height: 50px;
    }
    
    .clickable-square {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
    
    .upgrade-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .upgrade-info {
        text-align: center;
    }
}