@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Chakra+Petch:wght@400;600;700&display=swap');

body {
    font-family: 'Chakra Petch', sans-serif;
    background-color: #1c1917;
    color: #d6d3d1;
    overflow-x: hidden
}

.font-factory {
    font-family: 'Black Ops One', cursive
}

.factory-bg {
    background: repeating-linear-gradient(45deg, #1c1917, #1c1917 10px, #292524 10px, #292524 20px);
    min-height: 100vh;
    position: relative
}

.hazard-stripe {
    height: 20px;
    background: repeating-linear-gradient(45deg, #eab308, #eab308 20px, #000 20px, #000 40px);
    width: 100%
}

.conveyor-belt {
    height: 150px;
    background: #44403c;
    position: relative;
    margin-top: 20px;
    border-top: 5px solid #78716c;
    border-bottom: 5px solid #78716c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.gear {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%2378716c"><path d="M90,50 L90,40 L78,40 C77,36 75,33 73,30 L80,21 L73,14 L64,21 C61,19 57,17 54,16 L54,4 L44,4 L44,16 C41,17 37,19 34,21 L25,14 L18,21 L25,30 C23,33 21,36 20,40 L8,40 L8,50 L20,50 C21,54 23,57 25,60 L18,69 L25,76 L34,69 C37,71 41,73 44,74 L44,86 L54,86 L54,74 C57,73 61,71 64,69 L73,76 L80,69 L73,60 C75,57 77,54 78,50 L90,50 Z" /><circle cx="49" cy="45" r="15" fill="%231c1917"/></svg>') no-repeat center/contain;
    animation: spin 4s linear infinite
}

.gear.g1 {
    bottom: -30px;
    left: 10%
}

.gear.g2 {
    bottom: -30px;
    left: 50%
}

.gear.g3 {
    bottom: -30px;
    left: 90%
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.crate {
    width: 120px;
    height: 120px;
    background: #d97706;
    border: 4px solid #78350f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Black Ops One';
    font-size: 3rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    position: relative
}

.crate:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px dashed #92400e
}

.control-panel {
    background: #292524;
    border: 4px solid #57534e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8)
}

.screen {
    background: #000;
    border: 4px solid #44403c;
    border-radius: 5px;
    padding: 15px;
    color: #22c55e;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px #22c55e;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center
}

.btn-factory {
    background: linear-gradient(to bottom, #57534e, #292524);
    border: 2px solid #78716c;
    color: #fff;
    padding: 10px 20px;
    font-family: 'Chakra Petch';
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 4px 0 #1c1917
}

.btn-factory:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 transparent
}

.btn-factory:hover {
    background: #78716c
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s
}

.toggle-input:checked+.slider {
    background-color: #22c55e
}

.toggle-input:checked+.slider:before {
    transform: translateX(26px)
}

.slider.round {
    border-radius: 34px
}

.slider.round:before {
    border-radius: 50%
}