/* Global Styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #000;
    font-family: 'Lora', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Age Verification Screen */
.under-18-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* App Container */
.app-container {
    position: relative;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.7);
}

/* Background Image */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image-1.jpg');
    background-size: cover;
    background-position: center;
    transform: rotate(0deg);
    opacity: 0.7;
    z-index: -1;
    background-repeat: no-repeat;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0);
    border-bottom: 2px solid #dc3545;
    position: relative;
    z-index: 1;
}

.app-title {
    text-align: center;
    padding: 30px 20px;
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: #dc3545;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.app-title h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.app-title .subtitle {
    font-size: 1.2rem;
    color: rgba(220, 53, 69, 0.8);
    font-style: italic;
    margin-top: 8px;
    font-family: 'Cormorant Garamond', serif;
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Card Styles */
.card-container {
    perspective: 1000px;
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.card-container.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.card-container.revealed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 1000;
    width: 300px;
    margin: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

.card {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 140%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-front {
    background: #1a1a1a;
    border: 3px solid #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back {
    background: #fff;
    transform: rotateY(180deg);
    padding: 20px;
    border: 3px solid #dc3545;
}

/* Card Pattern */
.card-pattern {
    width: 90%;
    height: 90%;
    border: 3px solid #dc3545;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.2), transparent);
}

/* Card Value Display */
.card-value {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card Corners */
.card-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.corner-value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.corner-symbol {
    font-size: 1.6rem;
    line-height: 1;
}

.top-left {
    top: 10px;
    left: 10px;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}

/* Card Content */
.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #000;
    font-family: 'Lora', serif;
}

.card-header {
    border-bottom: 2px solid #dc3545;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    color: #dc3545;
    font-size: 2rem;
    margin: 0;
    text-align: center;
    font-weight: 700;
}

.content-section {
    margin-bottom: 15px;
}

.content-label {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.task-text, .message-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding: 10px 0;
    color: #333;
}

/* Close Button for Revealed Card */
.close-card {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: #dc3545;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: none;
}

.card-container.revealed .close-card {
    display: flex;
}

.close-card:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Card Container */
.card-container {
    margin-bottom: 20px;
    perspective: 1000px;
}

/* Card */
.card {
    position: relative;
    width: 100%;
    aspect-ratio: 2.5/3.5;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.6s;
}

/* Card Back Content */
.card-back .content {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 53, 69, 0.6) rgba(255, 255, 255, 0.1);
}

.card-back .content::-webkit-scrollbar {
    width: 6px;
}

.card-back .content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.card-back .content::-webkit-scrollbar-thumb {
    background-color: rgba(220, 53, 69, 0.6);
    border-radius: 3px;
}

/* Card Grid Layout */
@media (min-width: 768px) {
    .col-md-3 {
        padding: 10px;
    }
}

/* Card Hover Effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card.flipped:hover {
    transform: rotateY(180deg) translateY(-5px);
}

/* Animation Classes */
.animate-flip {
    animation: flipIn 0.8s ease-out;
}

.animate-reveal {
    animation: revealIn 0.5s ease-out;
}

@keyframes flipIn {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(180deg);
    }
}

@keyframes revealIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.nav-tabs .nav-link {
    color: #dc3545;
    border: none;
    padding: 15px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
    color: #fff;
    background: #dc3545;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding-bottom: 120%;
    }
    
    .card-number {
        font-size: 1rem;
    }
    
    .card-symbol {
        font-size: 1.5rem;
    }
}

/* Button Styles */
.btn {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Card Grid Animation */
.card-grid-enter {
    opacity: 0;
    transform: translateY(20px);
}

.card-grid-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-out;
}

/* Completion Animation */
.completion-animation {
    animation: celebrate 1s ease-in-out;
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
} 

/* Progress Text */
.progress-text {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
}

/* Card Back Content */
.card-back .content {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.task-section, .message-section {
    position: relative;
    padding-left: 12px;
    margin-bottom: 12px;
}

.section-title {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
}

.task-text, .message-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    padding: 6px 0;
    color: #333;
}

/* Age Verification Modal */
.modal-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.modal-body {
    font-family: 'Lora', serif;
}

/* Responsive Text */
@media (max-width: 768px) {
    .app-title {
        padding: 20px 15px;
    }

    .app-title h1 {
        font-size: 2.5rem;
    }

    .app-title .subtitle {
        font-size: 1rem;
    }
    
    .card-value {
        font-size: 3rem;
    }
    
    .corner-value {
        font-size: 1.2rem;
    }
    
    .corner-symbol {
        font-size: 1.4rem;
    }
    
    .task-text, .message-text {
        font-size: 0.9rem;
    }
} 

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-grid {
        gap: 15px;
        padding: 15px;
    }

    .card {
        aspect-ratio: 2.5/3.5;
        min-height: 300px;
    }
    
    .card-value {
        font-size: 2.5rem;
    }
    
    .corner-value {
        font-size: 1rem;
    }
    
    .corner-symbol {
        font-size: 1.2rem;
    }

    .card-corner {
        padding: 6px;
    }
    
    .task-text, .message-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .section-title {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .card-grid {
        gap: 8px;
        padding: 8px;
    }

    .card {
        min-height: 180px;
    }

    .card-value {
        font-size: 2rem;
    }

    .corner-value {
        font-size: 0.9rem;
    }

    .corner-symbol {
        font-size: 1rem;
    }

    .task-text, .message-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Card Container when Revealed */
.card-container.revealed .card-back .content {
    padding: 15px;
}

.card-container.revealed .section-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.card-container.revealed .task-text,
.card-container.revealed .message-text {
    font-size: 1.1rem;
    line-height: 1.6;
} 

/* Overlay for revealed card */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Close button */
.close-card {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #dc3545;
}

.card-container.revealed .close-card {
    display: flex;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card {
        cursor: default;
    }

    .close-card {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .card-container.revealed .card-back .content {
        padding: 20px;
        padding-top: 40px;
    }
} 

/* Controls Section */
.controls-section {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(4px);
}

/* Cards Counter */
.cards-counter {
    font-family: 'Playfair Display', serif;
}

.counter-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.count-number {
    color: #dc3545;
    font-size: 1.8rem;
    font-weight: 700;
    min-width: 1.8rem;
    text-align: center;
}

.count-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
}

.count-total {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    font-weight: 400;
}

.count-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 12px;
    font-weight: 400;
}

/* Buttons */
.btn {
    padding: 8px 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.4);
}

.btn-outline-light {
    border-width: 2px;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .controls-section {
        padding: 15px;
    }

    .counter-display {
        padding: 8px 15px;
    }

    .count-number,
    .count-separator,
    .count-total {
        font-size: 1.5rem;
    }

    .count-label {
        font-size: 0.8rem;
    }

    .row.align-items-center > div {
        margin-bottom: 15px;
    }

    .row.align-items-center > div:last-child {
        margin-bottom: 0;
    }

    .btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }

    .cards-counter {
        text-align: center;
    }
} 