#uvod {
    display: block;
    margin: 0;
    padding: 80px 0 0 0;
    height: auto;

    background: #1F46C1;
    background: radial-gradient(circle, rgba(31, 70, 193, 1) 0%, rgba(19, 26, 58, 1) 100%);

    background-position: top;
    /*background-image: url('../../imgs/img2.jpg');*/
    background-size: cover;
    clear: both;
    overflow: hidden;
}

#uvod .yellow-stars {
    position: absolute;
    bottom: 0;
    right: -20%;
    width: 55%;
    height: 55%;
    background: url('../../imgs/yellow-stars.png') repeat;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-45deg);
    animation: moveStars 60s linear infinite;
}

#uvod .flex {
    min-height: 100vh;
    height: auto;
}

#uvod .console-layout {
    padding: var(--size-large);
    background: black;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--size-small);
}

#uvod .text-intro {
    font-size: 3.6rem;
    line-height: 4rem !important;
    color: var(--color-white);
    font-weight: 800;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #uvod .text-intro {
        font-size: 4.6rem;
        line-height: 5rem !important;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #uvod .text-intro {
        font-size: 5.6rem;
        line-height: 6rem !important;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}

#uvod #typewrite-intro-text {
    display: inline;
}

#intro-console {
    background: #1e1e1e;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-white);
    font-family: var(--font-family-monospace);
    text-align: left;
    min-height: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    overflow: hidden;
}

.console-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.console-controls {
    display: flex;
    gap: 8px;
}

.console-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.console-dot.red {
    background: #ff5f57;
}

.console-dot.yellow {
    background: #ffbd2e;
}

.console-dot.green {
    background: #28ca42;
}

.console-title {
    color: #a0a0a0;
    font-size: 12px;
    font-weight: 500;
}

.console-body {
    display: flex;
    min-height: 250px;
    max-height: 500px;
    height: auto;
}

.line-numbers {
    background: #252526;
    color: #858585;
    padding: 15px 10px;
    text-align: right;
    font-family: var(--font-family-monospace);
    font-size: 14px;
    line-height: 1.5;
    border-right: 1px solid #333;
    user-select: none;
    min-width: 50px;
}

.line-numbers span {
    display: block;
    height: 21px;
    line-height: 21px;
}

.console-content {
    flex: 1;
    padding: 15px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: var(--font-family-monospace);
    font-size: 14px;
    line-height: 1.5;
    overflow-y: auto;
    outline: none;
}

.console-line {
    min-height: 21px;
    height: 21px;
    line-height: 21px;
    white-space: pre-wrap;
    position: relative;
}

.console-content:focus {
    background: #1e1e1e;
}

/* Syntax highlighting colors */
.console-content .keyword {
    color: #569cd6;
}

.console-content .string {
    color: #ce9178;
}

.console-content .comment {
    color: #6a9955;
    font-style: italic;
}

.console-content .number {
    color: #b5cea8;
}

.console-content .function {
    color: #dcdcaa;
}

/* Typing cursor animation */
.typing-cursor::after {
    content: '|';
    color: #ffffff;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* VS Code like improvements */
#intro-console {
    transition: height 0.3s ease;
}

.console-body {
    transition: height 0.3s ease;
}

.line-numbers {
    transition: all 0.2s ease;
}

.console-content {
    position: relative;
}

/* Current line highlighting (like in VS Code) */
.console-line.current-line {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Empty line styling */
.console-line.empty-line {
    height: 21px;
}

.console-line.empty-line::before {
    content: '';
    display: inline-block;
    width: 1px;
}

/* Mobile responsiveness */
@media only screen and (max-width: 768px) {
    #intro-console {
        font-size: 12px;
        min-height: 200px;
        border-radius: 6px;
        margin: 0 10px;
    }

    .console-header {
        padding: 8px 12px;
    }

    .console-dot {
        width: 10px;
        height: 10px;
    }

    .console-title {
        font-size: 11px;
    }

    .console-body {
        min-height: 200px;
        max-height: 400px;
    }

    .line-numbers {
        padding: 10px 6px;
        font-size: 12px;
        min-width: 35px;
    }

    .line-numbers span {
        height: 18px;
        line-height: 18px;
    }

    .console-content {
        padding: 10px 8px;
        font-size: 12px;
    }

    .console-line {
        min-height: 18px;
        height: 18px;
        line-height: 18px;
    }
}

@media only screen and (max-width: 480px) {
    #intro-console {
        font-size: 11px;
        min-height: 180px;
        margin: 0 5px;
    }

    .console-header {
        padding: 6px 10px;
    }

    .console-controls {
        gap: 6px;
    }

    .console-dot {
        width: 8px;
        height: 8px;
    }

    .console-title {
        font-size: 10px;
    }

    .console-body {
        min-height: 180px;
        max-height: 320px;
    }

    .line-numbers {
        padding: 8px 4px;
        font-size: 10px;
        min-width: 30px;
    }

    .line-numbers span {
        height: 16px;
        line-height: 16px;
    }

    .console-content {
        padding: 8px 6px;
        font-size: 10px;
        word-break: break-word;
    }

    .console-line {
        min-height: 16px;
        height: auto;
        line-height: 16px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* Adjust typing cursor for mobile */
    .typing-cursor::after {
        margin-left: 1px;
    }
}