/* Import fonts */
@font-face {
    font-family: 'AvantGardeGothicITCW01Bd';
    src: url('../fonts/AvantGardeGothicITCW01Bd.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'aktiv-grotesk';
    src: url('../fonts/aktiv-grotesk.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/Aeonik-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/Aeonik-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* 90's Mode Toggle */
.nineties-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #fdc115;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Aeonik', sans-serif;
    font-weight: 300;
    color: #fff;
    text-transform: lowercase;
    margin-top: 30px;
}

.nineties-toggle:hover {
    background: #e6b010;
}

/* 90's Mode Styles */
body.nineties-mode, 
body.nineties-mode * {
    font-family: 'Times New Roman', Times, serif !important;
}

body {
    background-image: url('../images/3FO_STAR.gif');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 120px 120px;
}

body.nineties-mode {
    background-image: url('../images/3FO_STAR.gif'), url('../images/1galaxystarsbkg.gif');
    background-repeat: no-repeat, repeat;
    background-position: 0 0, 0 0;
    background-size: 120px 120px, 320px 320px;
    font-family: 'Times New Roman', Times, serif;
    color: #fff;
    cursor: url('../images/Cursor-Transparent-File-Clip-Art.png'), auto;
}

body.nineties-mode .gold-star-board,
body.nineties-mode .user-card,
body.nineties-mode .value-btn,
body.nineties-mode .message,
body.nineties-mode .modal-content,
body.nineties-mode .rules-content,
body.nineties-mode button[type="submit"],
body.nineties-mode .nineties-toggle,
body.nineties-mode .form-group textarea,
body.nineties-mode .form-group input[type="file"] {
    border-radius: 0;
    box-shadow: none;
}

body.nineties-mode .gold-star-board {
    background: rgba(253, 193, 21, 0.9);
    border: 3px solid #fff;
    padding: 15px;
}

body.nineties-mode .user-card {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #fff;
    padding: 15px;
    margin: 10px;
}

body.nineties-mode .value-btn {
    background: rgba(253, 193, 21, 0.9);
    border: 3px solid #fff;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    padding: 10px 15px;
    margin: 5px;
    text-transform: uppercase;
}

body.nineties-mode .value-btn:hover {
    background: #fff;
    color: #000;
}

body.nineties-mode .message {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #fff;
    border-left: none;
    margin: 10px 0;
    padding: 15px;
}

body.nineties-mode .modal-content {
    background: rgba(253, 193, 21, 0.9);
    border: 3px solid #fff;
    padding: 20px;
}

body.nineties-mode .rules-content {
    background: rgba(253, 193, 21, 0.9);
    border: 3px solid #fff;
    padding: 20px;
}

body.nineties-mode button[type="submit"] {
    background: rgba(253, 193, 21, 0.9);
    border: 3px solid #fff;
    color: #000;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    padding: 12px 24px;
    text-transform: uppercase;
}

body.nineties-mode button[type="submit"]:hover {
    background: #fff;
    color: #000;
}

body.nineties-mode h2,
body.nineties-mode h3 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

body.nineties-mode .nineties-toggle {
    background: rgba(253, 193, 21, 0.9);
    border: 3px solid #fff;
    color: #000;
}

body.nineties-mode .nineties-toggle:hover {
    background: #fff;
}

/* 90s mode board header */
body.nineties-mode .board-header {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 90s mode rules link */
body.nineties-mode .rules-link {
    border-radius: 0 !important;
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    font-family: 'Times New Roman', Times, serif !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: none !important;
}

body.nineties-mode .rules-link:hover {
    background: rgba(253, 193, 21, 0.9) !important;
    color: #000 !important;
}

/* Regular Styles */
.gold-star-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    font-family: 'Aeonik', sans-serif;
    font-weight: 300;
    text-transform: lowercase;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
    position: relative;
}

/* Board Header */
.board-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fdc115, #e6b000);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(253, 193, 21, 0.3);
}

.board-header h1 {
    font-family: 'Aeonik', sans-serif;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: lowercase;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.rules-link {
    background: #fff;
    color: #fdc115;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: lowercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.rules-link:hover {
    background: #f8f8f8;
    color: #e6b000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #e6b000;
}

/* Remove the intro animation */
.gold-star-board::before {
    content: none;
}

@keyframes gameStart {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
        visibility: hidden;
    }
}

/* Add responsive breakpoints */
@media (max-width: 1200px) {
    .gold-star-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gold-star-board {
        grid-template-columns: 1fr;
    }
    
    .board-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .board-header h1 {
        font-size: 2em;
    }
}

/* Rules Popup Styles */
.rules-popup {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rules-popup.active {
    display: flex;
}

.rules-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
    margin: 0;
    transform: translateY(0);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rules-popup.active .rules-content {
    opacity: 1;
    transform: translateY(0);
}

.close-rules {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

.close-rules:hover {
    color: #fdc115;
}

.rules-text {
    margin-top: 20px;
}

.rules-text h2 {
    font-family: 'Aeonik', sans-serif;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fdc115;
    text-transform: lowercase;
}

.rules-text h3 {
    font-family: 'Aeonik', sans-serif;
    font-weight: 900;
    color: #000;
    margin: 25px 0 15px 0;
    text-transform: lowercase;
}

.rules-text p {
    line-height: 1.6;
    color: #000;
    margin-bottom: 15px;
}

.rules-text ul {
    margin: 0 0 20px 20px;
    padding: 0;
}

.rules-text li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #000;
}

.rules-text ul ul {
    margin: 10px 0 10px 20px;
}

.rules-text strong {
    color: #000;
}

/* User Card Styles */
.user-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 1.5px 6px rgba(0,0,0,0.12);
    padding: 20px;
    transition: all 0.3s ease;
    animation: starPop 0.5s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.user-card::after {
    content: '⭐';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 40px;
    opacity: 0.1;
    transform: rotate(15deg);
    transition: all 0.3s ease;
}

.user-card:hover::after {
    transform: rotate(0deg) scale(1.2);
    opacity: 0.2;
}

.user-card:nth-child(2) {
    animation-delay: 0.1s;
}

.user-card:nth-child(3) {
    animation-delay: 0.2s;
}

.user-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(253, 193, 21, 0.2);
}

.user-card h3 {
    font-family: 'Aeonik', sans-serif;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #000;
    text-transform: lowercase;
}

.score {
    font-family: 'Aeonik', sans-serif;
    font-weight: 900;
    font-size: 1.2em;
    color: #fdc115;
    margin-bottom: 15px;
    position: relative;
}

.score.increasing {
    animation: scoreIncrease 0.5s ease-out;
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.value-btn {
    background: #fff;
    border: 1px solid #fdc115;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: url('../images/Cursor-Transparent-File-Clip-Art (1).png') 0 0, auto !important;
    transition: all 0.3s ease;
    color: #000;
    font-family: 'Aeonik', sans-serif;
    font-weight: 300;
    text-transform: lowercase;
    position: relative;
    overflow: hidden;
}

.value-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(253, 193, 21, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.value-btn:hover::before {
    width: 150%;
    height: 150%;
}

.value-btn:active {
    transform: scale(0.95);
}

.messages {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar for messages */
.messages::-webkit-scrollbar {
    width: 6px;
}

.messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb {
    background: #fdc115;
    border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: #e6b000;
}

.message {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 2px solid #fdc115;
    animation: starPop 0.3s ease-out;
    transition: all 0.3s ease;
    position: relative;
}

.message::before {
    content: '✨';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.message:hover::before {
    left: 0;
    opacity: 1;
}

.message img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.message p {
    margin: 0 0 5px 0;
    color: #000;
}

.message small {
    color: #000;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
    margin: 0;
    transform: translateY(0);
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.active .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal-content h2 {
    font-family: 'Aeonik', sans-serif;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fdc115;
    text-transform: lowercase;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

.close:hover {
    color: #fdc115;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000;
}

.form-group textarea {
    width: 80%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 0;
    display: block;
}

.form-group textarea:focus {
    border-color: #fdc115;
    outline: none;
}

.form-group input[type="file"] {
    width: 80%;
    padding: 8px;
    border: 1px dashed #fdc115;
    border-radius: 4px;
    box-sizing: border-box;
    margin-left: 0;
    display: block;
}

button[type="submit"] {
    background: #fdc115;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: url('../images/Cursor-Transparent-File-Clip-Art (1).png') 0 0, auto !important;
    font-family: 'Aeonik', sans-serif;
    font-weight: 900;
    text-transform: lowercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button[type="submit"]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

button[type="submit"]:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #fdc115;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6b010;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Game-like animations */
@keyframes starPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes starSpin {
    0% {
        transform: rotate(0deg) scale(0);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes scoreIncrease {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
        color: #fff;
    }
    100% {
        transform: scale(1);
    }
}

/* 90's mode game effects */
body.nineties-mode .user-card::after {
    content: '★';
    font-family: 'Times New Roman', Times, serif;
}

body.nineties-mode .message::before {
    content: '★';
    font-family: 'Times New Roman', Times, serif;
}

/* Modal animations */
.rules-content {
    animation: fadeIn 0.3s ease-out;
}

/* Message animations */
.message:hover {
    transform: translateX(5px);
}

/* Submit button animation */
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 193, 21, 0.3);
}

body.nineties-mode .score,
body.nineties-mode .message,
body.nineties-mode .user-card,
body.nineties-mode .values,
body.nineties-mode .value-btn,
body.nineties-mode .messages,
body.nineties-mode .modal-content,
body.nineties-mode .modal-content *,
body.nineties-mode .rules-content,
body.nineties-mode .rules-content * {
    font-family: 'Times New Roman', Times, serif !important;
}

body {
    cursor: auto;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
select,
textarea,
.value-btn {
    cursor: pointer;
} 