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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    font-size: 24px;
    line-height: 1.4;
}

.display-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.display-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.display-header h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}

.display-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.recipe-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.recipe-selector select,
.recipe-selector input {
    font-size: 1.2rem;
    padding: 0.75rem;
    border: 2px solid #333;
    background: #222;
    color: #fff;
    border-radius: 8px;
}

.home-btn {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.home-btn:hover {
    background: #45a049;
}

.display-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.welcome-screen {
    text-align: center;
}

.welcome-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.recipe-display {
    display: none;
}

.recipe-display.active {
    display: block;
}

.recipe-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #4CAF50;
}

.recipe-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ingredients-section,
.instructions-section {
    background: #111;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #333;
}

.ingredients-section h3,
.instructions-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4CAF50;
}

.ingredient-item {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #222;
    border-radius: 6px;
}

.instruction-step {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #222;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
    position: relative;
}

.current-step {
    background: #2a4d3a !important;
    border-left-color: #81C784 !important;
}

.step-controls {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-controls .control-btn {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100px;
}

.step-controls .control-btn:hover {
    background: #45a049;
}

.step-controls .control-btn:disabled {
    background: #333;
    cursor: not-allowed;
}

.step-counter-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

#stepCounter {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}

.display-header .version {
    font-size: 0.5rem;
    color: #999;
    font-weight: normal;
    vertical-align: super;
}

@media (max-width: 1024px) {
    .recipe-info {
        grid-template-columns: 1fr;
    }
    
    .display-header h1 {
        font-size: 2rem;
    }
    
    .recipe-title {
        font-size: 2rem;
    }
    
    body {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .display-container {
        padding: 1rem;
    }
    
    .display-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-btn {
        width: 100%;
    }
}