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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.category {
    background: #f8f9fa;
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.category-header {
    background: #495057;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
}

.category-header::-webkit-details-marker {
    display: none;
}

.category-header::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

details[open] .category-header::after {
    transform: translateY(-50%) rotate(180deg);
}

details {
    border-radius: 10px;
    overflow: hidden;
}

.trick {
    background: white;
    margin: 10px;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.trick.completed {
    background: rgb(171, 208, 171);
}

.trick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.trick-name {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.base-points {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.base-points.negative {
    background: #f8d7da;
    color: #721c24;
}

.trick-explanation {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
    font-style: italic;
}

.explanation-details {
    margin-bottom: 10px;
}

.explanation-details summary {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    cursor: pointer;
    padding: 5px 0;
}

.explanation-details[open] .explanation-content {
    padding-top: 8px;
    font-size: 13px;
    color: #6c757d;
}

.category-progress {
    color: #a6bed4;
    font-size: 14px;
    font-weight: normal;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-group label {
    font-size: 14px;
    color: #495057;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
}

.score-display {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border: 2px solid #dee2e6;
}

.total-score {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    text-align: center;
    margin: 20px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.multiplier-controls {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.multiplier-controls .checkbox-group {
    font-size: 12px;
}

.multiplier-controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .multiplier-controls {
        justify-content: space-around;
    }
}

img {
 max-width: 100%;
 border-radius: 8px;
}

iframe {
 width: 100%;
 height: 100vh;
 border-radius: 8px;
}

video {
 max-width: 100%;
 border-radius: 8px;
}