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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: url('/photo-1621457177583-51e225668297 (1).avif') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}



.container {
    background: transparent;
    padding: 25px;
    max-width: 900px;
    width: 90%;
    position: relative;
}

.instruction-header {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #2C2C2C;
    background: linear-gradient(135deg, #E8E8E0 0%, #F5F5ED 100%);
    border: 3px solid #8B6914;
    padding: 20px 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}

.signpost-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    min-height: 500px;
}

.post {
    position: absolute;
    width: 20px;
    height: 550px;
    background: linear-gradient(90deg, #5A5A5A 0%, #808080 50%, #5A5A5A 100%);
    border: 2px solid #404040;
    border-radius: 10px;
    box-shadow: 
        0 0 0 2px rgba(0,0,0,0.3),
        inset 0 0 20px rgba(0,0,0,0.4),
        inset 2px 0 8px rgba(255,255,255,0.3),
        8px 0 15px rgba(0,0,0,0.3);
    z-index: 1;
    transition: height 0.4s ease-out;
}

.signs-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 2;
    margin-top: 50px;
}

.signpost-pair {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.direct-sign {
    opacity: 0;
    transform: translateX(-100vw);
    transition: all 1s ease-out;
}

.indirect-sign {
    opacity: 0;
    transform: translateX(100vw);
    transition: all 1s ease-out;
}



.sign-panel {
    position: relative;
    width: 750px;
    background: linear-gradient(135deg, #E8E8E0 0%, #F5F5ED 50%, #E0E0D8 100%);
    border: 4px solid #8B6914;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.4),
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(139,105,20,0.4),
        inset 0 0 60px rgba(139,105,20,0.15);
    border-radius: 8px;
    overflow: visible;
    position: relative;
}

.sign-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139,105,20,0.3) 0%, transparent 2%),
        radial-gradient(circle at 80% 70%, rgba(160,82,45,0.25) 0%, transparent 3%),
        radial-gradient(circle at 50% 50%, rgba(139,105,20,0.2) 0%, transparent 4%),
        radial-gradient(circle at 30% 80%, rgba(160,82,45,0.3) 0%, transparent 2%),
        radial-gradient(circle at 70% 20%, rgba(139,105,20,0.25) 0%, transparent 3%);
    pointer-events: none;
    border-radius: 8px;
}

.sign-panel::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 8px;
    background: linear-gradient(90deg, #5A5A5A 0%, #808080 50%, #5A5A5A 100%);
    border: 1px solid #404040;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: -1;
    transform: translateY(-50%);
}

.direct-sign::before {
    right: -30px;
}

.indirect-sign::before {
    left: -30px;
}

.sign-panel.direct-sign {
    align-self: flex-end;
    clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
}

.sign-panel.indirect-sign {
    align-self: flex-start;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 5% 100%, 0 50%);
}

.sign-header {
    background: transparent;
    color: #2C2C2C;
    padding: 18px 35px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 
        1px 1px 2px rgba(255,255,255,0.5),
        0 0 1px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.note-container {
    position: relative;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 25px 35px;
}

.command-text {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.3rem;
    color: #222222;
}

.speaker {
    font-size: 1rem;
    color: #666666;
    margin-top: 5px;
    font-style: italic;
}

.controls {
    text-align: center;
}

button {
    background: linear-gradient(135deg, #E8E8E0 0%, #F5F5ED 100%);
    color: #2C2C2C;
    border: 2px solid #8B6914;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 10px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 2px 0 rgba(255,255,255,0.3);
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

button:hover {
    background: linear-gradient(135deg, #F5F5ED 0%, #E8E8E0 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.4),
        inset 0 2px 0 rgba(255,255,255,0.3);
}

button:active {
    background: linear-gradient(135deg, #D8D8D0 0%, #E0E0D8 100%);
    transform: translateY(0);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .signs-container {
        gap: 30px;
    }
    
    .sign-panel {
        width: 90vw;
        max-width: 500px;
    }
    
    .post {
        height: 450px;
    }
    
    .note {
        min-width: 85%;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 20px;
        width: 95%;
    }
    
    .sign-header {
        font-size: 1.1rem;
        padding: 12px 20px;
    }
}