.tape-container {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 15px auto;
    width: 362px;
    height: 110px;
    overflow: hidden;
    border: 1px solid #000;
}

.tapes {
    display: flex;
    flex-direction: column;
}

.tape-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 70%, rgba(16, 0, 40, 1) 100%);
    pointer-events: none;
}

.tape-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: linear-gradient(to left, rgba(255, 255, 255, 0) 70%, rgba(16, 0, 40, 1) 100%);
    pointer-events: none;
}

.circle {
    width: 25px;
    height: 25px;
    background-color: green;
    border-radius: 50%;
}

.command-description {
    padding: 20px;
    h4 {
        margin-top: 10px;
    }
}

.tape {
	color: white;
    display: flex;
	width: 100%;
	flex-direction: row;
    transition: transform 0.35s ease;
	white-space: nowrap;
}

.cell {
    width: 40px;
	min-width: 40px;
	max-width: 40px;
    height: 50px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cell-num {
    width: 40px;
	min-width: 40px;
	max-width: 40px;
    height: 50px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.caret {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 100px;
    background-color: rgba(255, 0, 0, 0.25);
    border: solid 2px red;
}

.error-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.error-popup p {
    margin: 0;
    padding: 0;
}

.close-btn {
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
}

.close-btn:hover {
    text-decoration: underline;
}

.rules-section  {
    margin-bottom: 20px;
    .content-container-rules {
        max-width: 1200px;
        width: 100%;
		margin: auto;
    }
}

.rules-content {
    display: flex;
    flex-direction: row;
    margin: 10px;
}

.editor-content {
    height: 100%;
    display: flex;
    flex-direction: row;
}

.glady {
    overflow: auto;
}

.states-buttons {
    max-width: 90px;
    flex-direction: column;
    background-color: #1f083a;
    border-radius: 15px;
    margin-right: 10px;

    .state-button {
        height: 70px;
        width: 70px;
        display: flex;
        margin: 10px;
        justify-content: center;
        align-items: center;
        text-align: center;
        justify-items: center;
        background-color: #2a0d63;
        border-radius: 10px;
        transition: background-color 0.3s ease;
        font-size: 16px;
    }
    .selected {
        background-color: #8321f8;
    }
    .deleting {
        animation: blink-animation 1s steps(15, start) infinite;
    }
    .state-button:hover {
        background-color: #3a1289;
    }

    .symbol-field {
        height: 70px;
        width: 70px;
        display: flex;
        margin: 10px;
        justify-content: center;
        align-items: center;
        text-align: center;
        justify-items: center;
        background-color: #2a0d63;
        border-radius: 10px;
        transition: background-color 0.3s ease;
        border: none;
    }
    .symbol-field:hover {
        background-color: #3a1289;
    }

    .symbol-field:focus {
        color: white;
    }

    .symbol-field-1 {
        height: 70px;
        width: 70px;
        display: flex;
        margin: 10px;
        justify-content: center;
        align-items: center;
        text-align: center;
        justify-items: center;
        background-color: #0d4263;
        border-radius: 10px;
        transition: background-color 0.3s ease;
        border: none;
    }
    .symbol-field-1:hover {
        background-color: #3a1289;
    }

    .symbol-field-1:focus {
        color: white;
    }

    option {
        color: #fff;
    }
}

@keyframes blink-animation {
    0%, 100% {
        background-color: #2a0d63;
    }
    50% {
        background-color: rgb(255, 100, 100);
    }
}

.programm-section {
	margin-bottom: 20px;
	div {
		margin: auto;
		width: 100%;
	}
}

.programms-div {
    margin: 20px auto;
	width: 100%;
}

.CodeMirror {
    width: 100%;
    height: auto;
    padding: 10px;
    border: 2px solid #797185;
    border-radius: 5px;
    background-color: #1f083a;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.CodeMirror-focused {
    border-color: #998aa2;
    background-color: #e2cbef;
    color: #100028;
}

.cm-s-abbott.CodeMirror {
    background: #1f083a;
    color: #d8ff84
}

.cm-s-abbott .CodeMirror-gutters {
    background: #1f083a;
    border: none
}

.cm-s-abbott .CodeMirror-linenumber {
    color: #a4a4a4
}

.cm-s-abbott .CodeMirror-guttermarker {
    color: #f63f05
}

.cm-s-abbott .CodeMirror-guttermarker-subtle {
    color: #fbb32f
}

.cm-s-abbott .CodeMirror-ruler {
    border-color: #745d42
}

.cm-s-abbott .CodeMirror-cursor {
    border-color: #a0ea00
}

.cm-s-abbott .cm-animate-fat-cursor,.cm-s-abbott.cm-fat-cursor .CodeMirror-cursor {
    background: rgba(160,234,0,.5)
}

.cm-s-abbott.cm-fat-cursor .CodeMirror-cursors {
    z-index: 3
}

.cm-s-abbott .CodeMirror-overwrite .CodeMirror-cursor {
    border-bottom: 1px solid #a0ea00;
    border-left: none;
    width: auto
}

.cm-s-abbott .CodeMirror-secondarycursor {
    border-color: #00ff7f
}

.cm-s-abbott .CodeMirror-selected,.cm-s-abbott.CodeMirror-focused .CodeMirror-selected {
    background: #273900
}

.cm-s-abbott .CodeMirror-line::selection,.cm-s-abbott .CodeMirror-line>span::selection,.cm-s-abbott .CodeMirror-line>span>span::selection {
    background: #273900
}

.cm-s-abbott .CodeMirror-line::-moz-selection,.cm-s-abbott .CodeMirror-line>span::-moz-selection,.cm-s-abbott .CodeMirror-line>span>span::-moz-selection {
    background: #273900
}

.cm-s-abbott .cm-tab {
    color: #00ff7f
}

.cm-s-abbott .cm-searching {
    background: #fef3b4!important;
    color: #1f083a!important
}

.cm-s-abbott span.cm-comment {
    color: #fbb32f;
    font-style: italic
}

.cm-s-abbott span.cm-string,.cm-s-abbott span.cm-string-2 {
    color: #e6a2f3
}

.cm-s-abbott span.cm-number,.cm-s-abbott span.cm-string.cm-url {
    color: #f63f05
}

.cm-s-abbott span.cm-invalidchar {
    color: #00ff7f
}

.cm-s-abbott span.cm-atom {
    color: #fef3b4
}

.cm-s-abbott span.cm-bracket,.cm-s-abbott span.cm-punctuation {
    color: #fef3b4
}

.cm-s-abbott span.cm-operator {
    font-weight: 700
}

.cm-s-abbott span.cm-def,.cm-s-abbott span.cm-variable,.cm-s-abbott span.cm-variable-2,.cm-s-abbott span.cm-variable-3 {
    color: #8ccdf0
}

.cm-s-abbott span.cm-builtin,.cm-s-abbott span.cm-property,.cm-s-abbott span.cm-qualifier {
    color: #3f91f1
}

.cm-s-abbott span.cm-type {
    color: #24a507
}

.cm-s-abbott span.cm-keyword {
    color: #d80450;
    font-weight: 700
}

.cm-s-abbott span.cm-meta {
    color: #ec6c99
}

.cm-s-abbott span.cm-tag {
    color: #d80450;
    font-weight: 700
}

.cm-s-abbott span.cm-attribute {
    color: #24a507
}

.cm-s-abbott span.cm-header {
    color: #d80450;
    font-weight: 700
}

.cm-s-abbott span.cm-hr {
    color: #ec6c99
}

.cm-s-abbott span.cm-link {
    color: #e6a2f3
}

.cm-s-abbott span.cm-negative {
    background: #d80450;
    color: #1f083a
}

.cm-s-abbott span.cm-positive {
    background: #a0ea00;
    color: #1f083a;
    font-weight: 700
}

.cm-s-abbott span.cm-error {
    background: #d80450;
    color: #1f083a
}

.cm-s-abbott span.CodeMirror-matchingbracket {
    background: #745d42!important;
    color: #1f083a!important;
    font-weight: 700
}

.cm-s-abbott span.CodeMirror-nonmatchingbracket {
    background: #d80450!important;
    color: #1f083a!important
}

.cm-s-abbott .CodeMirror-matchingtag,.cm-s-abbott .cm-matchhighlight {
    outline: 1px solid #39a78d
}

.cm-s-abbott .CodeMirror-activeline-background,.cm-s-abbott .CodeMirror-activeline-gutter {
    background: #3c3022
}

.cm-s-abbott .CodeMirror-activeline-gutter .CodeMirror-linenumber {
    color: #d8ff84;
    font-weight: 700;
}

.cm-s-abbott .CodeMirror-foldmarker {
    color: #f63f05;
    text-shadow: none
}


.program {
    display: flex;
	flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 2px solid #005466;
}

.program:last-child {
    border-bottom: none;
}

.programm-buttons {
	display: flex;
	flex-direction: column;
    gap: 10px;
	flex: 1;
}

.program-name {
    color: #ffffff;
    font-size: 18px;
	flex: 2;
	margin-bottom: 15px;
	margin-top: 15px;
}

.btn {
    background-color: #4a02b6;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
	height: 100%;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #7921fd;
}

.btn.delete {
    background-color: #c0392b;
}

.btn.delete:hover {
    background-color: #e74c3c;
}

.btn.save {
    background-color: #27ae60;
}

.btn.save:hover {
    background-color: #2ecc71;
}

.list-con {
	background-color: #2e104d;
	padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	color: white;
	font-size: 20px;
	.lab {
		margin-bottom: 25px;
	}
}

.readme-section {
    max-width: 800px;
    padding: 20px;
    background-color: #2e104d;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: white;

    margin: auto;
    margin-bottom: 25px;
}

.readme h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
    margin-top: 40px;
}

.readme p {
    margin-bottom: 1em;
}

.readme ul {
    list-style-type: disc;
    padding-left: 20px;
}

@media (min-width: 768px) {
    .nav-list {
		margin-top: 10px;
		display: flex;
        flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 30px;
    }

    .banner {
        .slogan {
            max-width: 350px;
        }
    }

    .navbar {
	    border-bottom: solid #2e3060 2px;
    }

    .nav-list.active {
	    border-bottom: none;
    }

    .burger {
        display: none;
    }

    footer {
        .social-links {
            flex-direction: row;
        }
    }

	.program {
		flex-direction: row;
	}

	.programm-buttons {
		flex-direction: row;
	}

	.program-name {
		margin-top: 0px;
		margin-bottom: 0px;
	}

	.input-form {
		max-width: 500px;
		width: 500px;
	}

	.input-section {
		flex-direction: row;
	}
    .tape-container {
        width: 922px;
    }
}