@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap";:root{color-scheme:light dark}html{scroll-behavior:smooth;font-family:Arial,sans-serif}*{box-sizing:border-box;margin:0;font-family:Lexend,sans-serif;text-align:center;transition:background-color .6s ease-out,color .1s ease-out,all .5s ease}*:before{box-sizing:border-box}*:after{box-sizing:border-box}* a{text-decoration:none}body{color:var(--text-color);background-color:var(--bg-color)}main{min-height:calc(100dvh - 120px);padding:30px 0}.container{max-width:1280px;margin:0 auto;padding:0 40px}body{--delete: #ff5f57;--cancel: #febc2e;--add: #219d31;--bg-color: #273434;--text-color: #f5f5f7;--border: #091b1a;--backdrop: rgb(0 0 0 / 40%);--car-color: #000;--black: #000}body.light{--bg-color: #f1f1f1;--text-color: #333;--logo-color: #231b17;--text-color-inverted: #fff;--footer-color: #ffa500;--options-bg-color: #e63946;--track-bcakground: #9b9182}body.dark{--bg-color: #1d1d1d;--text-color: #fff;--logo-color: #ba3224;--text-color-inverted: #333;--footer-color: #ffa500;--options-bg-color: #e63946;--track-bcakground: #42403d}body.fixed{overflow:hidden}a{color:var(--text-color);text-decoration:none}a span{display:none}.link{cursor:pointer}.link:hover{scale:1.1}.hidden{display:none!important}.button{cursor:pointer;display:block;padding:5px;border:none;border-radius:5px;font-size:20px;color:var(--text-color-inverted);text-transform:uppercase;background:var(--footer-color);transition:.6s all}.button:hover{scale:1.1}.button.disabled{pointer-events:none;opacity:.5}.button.disabled:hover{scale:unset}.footer{background:var(--footer-color)}.footer__wrapper{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 60px;color:var(--text-color-inverted)}.footer__wrapper-item{height:35px;font-size:18px}.footer__wrapper p{height:30px;line-height:30px}.main__wrapper{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;margin:0 auto}.main__wrapper-item__top{display:flex;flex-wrap:nowrap;gap:8px;align-items:center}.main__wrapper-item__form{display:flex;flex-wrap:nowrap;gap:8px;align-items:center;height:30px}.main__wrapper-item__form-input{cursor:pointer;display:block;height:100%;border:3px double var(--logo-color);border-radius:8px;background:var(--footer-color)}.main__wrapper-item__form-button{height:100%;font-size:16px;line-height:100%}.main__wrapper-item__title{font-size:18px;font-weight:300;text-align:center}.main__wrapper-item__cars{position:relative;width:100%}.main__wrapper-item__cars:before{content:"🏁";position:absolute;top:20px;right:45px;border-left:2px var(--border) solid;font-size:40px}.main__wrapper-item__cars:after{content:"";position:absolute;top:45px;right:85px;width:1px;height:calc(100% - 47px);border:1px var(--border) solid}.main__wrapper-item__table{font-size:20px}.main__wrapper-item__table-thead{font-weight:400}.main__wrapper-item__table-th{padding:10px}.main__wrapper-item__table-tbody{font-weight:200}.main__wrapper-item__table-tr{margin-bottom:10px}.main__wrapper-item__table-car{width:90px;height:40px;margin:0 auto;border-radius:5px;background:var(--track-bcakground);box-shadow:0 2px 8px var(--backdrop)}.main__wrapper-item__table-car svg{width:80px;height:40px}.main__wrapper-item__table-car svg g g path{fill:var(--car-color)}.main__wrapper-item__table-car svg g #rearwheel,.main__wrapper-item__table-car svg g #frontwheel{fill:var(--car-color);stroke:var(--black)}.main__wrapper-item__pagination{display:flex;gap:8px;align-items:center;justify-content:center}.header__wrapper{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:70px}.header__wrapper-item{display:block}.header__wrapper-item-nav{display:flex;flex-wrap:wrap;gap:8px;padding:0}.header__wrapper-item-logo{display:flex;flex-direction:column;align-items:center;justify-content:center}.header__wrapper img{display:block;height:50px;margin:0 auto}.header__wrapper h1{font-size:18px;line-height:20px;color:var(--logo-color)}.header__wrapper button{justify-self:end}.cars__counter{font-size:20px;font-weight:400;text-align:center}.cars__wrapper{display:flex;flex-flow:column nowrap;row-gap:8px}.cars__wrapper-item{display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start}.cars__wrapper-item-position{float:right;width:80px;padding:0 10px 0 0;font-size:26px;font-weight:400}.cars__wrapper-item-wrapper{display:flex;flex-direction:column;align-items:flex-start;width:100%}.cars__wrapper-item-wrapper__bb{display:flex;gap:16px;justify-content:flex-start}.cars__wrapper-item-wrapper__bb-brand{font-size:22px;font-weight:200;line-height:22px;text-transform:capitalize}.cars__wrapper-item-wrapper__bb-buttons{display:flex;gap:8px;align-items:center;justify-content:center}.cars__wrapper-item-wrapper__bb-buttons-item{padding:1px 3px;font-size:16px}.cars__wrapper-item-wrapper__bb-buttons .select{background-color:var(--logo-color)}.cars__wrapper-item-wrapper__bb-buttons .remove{background-color:var(--delete)}.cars__wrapper-item-wrapper__bb-buttons .start{background-color:var(--add)}.cars__wrapper-item-wrapper__bb-buttons .stop{background-color:var(--cancel)}.cars__wrapper-item-wrapper__track{position:relative;display:flex;justify-content:flex-start;width:100%;height:45px;padding-top:4px;border-bottom:2px dashed var(--border);background:var(--track-bcakground);box-shadow:0 2px 8px var(--backdrop)}.cars__wrapper-item-wrapper__track-img{position:absolute;bottom:0;transform:translate(0);width:80px;height:40px;transition:transform linear;transition-duration:0ms}.cars__wrapper-item-wrapper__track-img svg{width:80px;height:40px}.cars__wrapper-item-wrapper__track-img svg g g path{fill:var(--car-color)}.cars__wrapper-item-wrapper__track-img svg #rearwheel,.cars__wrapper-item-wrapper__track-img svg #frontwheel{fill:var(--car-color);stroke:var(--black)}.cars__wrapper-item-wrapper__track-img.initial{transform:translate(0);transition:none}.cars__wrapper-item-wrapper__track-img.animate{transform:translate(var(--target-x))}.cars__wrapper-item-wrapper__track-img.broken{transform:translate(var(--broken-x));border:1px dashed var(--delete);transition:none!important}.modal{position:absolute;z-index:1000;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;padding:0;border:0;background:none}.modal::backdrop{background:var(--backdrop)}.modal-window{position:relative;display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:center;padding:20px 30px 20px 20px;border-radius:8px;font-size:16px;color:var(--text-color-inverted);text-align:center;background:var(--footer-color)}.modal-close{cursor:pointer;position:absolute;top:10px;right:10px;font-size:24px;font-weight:700}@media (width <= 768px){.button{font-size:16px}main{min-height:calc(100vh - 120px);padding:0}.header__wrapper{height:60px}.header__wrapper-item-logo{font-size:18px;line-height:20px}.header__wrapper-item-logo img{height:40px}.main__wrapper{padding:10px 0}.cars__wrapper-item-wrapper__bb-buttons{flex-wrap:wrap;gap:4px;justify-content:flex-start;width:144px;font-size:14px}.footer__wrapper{height:60px;padding:0}.footer__wrapper-item{height:40px}}@media (width <= 560px){.container{padding:0 10px}.header__wrapper .button{font-size:12px}.header__wrapper-item-nav{flex-wrap:wrap}.main__wrapper-item__table{font-size:14px}.main__wrapper-item__table-car{width:60px;height:25px}.main__wrapper-item__table-car svg{width:50px;height:25px}.cars__wrapper-item-position{width:35px;padding:0 10px 0 0;font-size:16px}}@media (width <= 430px){main{min-height:calc(100vh - 110px);padding:0}.main__wrapper-item__table{font-size:12px}.main__wrapper-item__table-car{width:40px;height:15px}.main__wrapper-item__table-car svg{width:30px;height:15px}.main__wrapper-item__cars:before{top:25px;right:30px;font-size:25px}.main__wrapper-item__cars:after{top:45px;right:55px}.cars__wrapper-item-wrapper__bb-buttons{font-size:12px}.cars__wrapper-item-wrapper__track{height:30px}.cars__wrapper-item-wrapper__track-img{width:50px;height:25px}.cars__wrapper-item-wrapper__track-img svg{width:50px;height:25px}.footer__wrapper{height:50px;padding:0}.footer__wrapper-item{height:30px}}
