body {
    padding: 0;
    margin: 0;
    font-family: MainFont;
    color: #e7c8ff;
    animation: colorChange 3s ease-in-out infinite;
    background: linear-gradient(315deg, #2D2727 3%, #413144 38%, #2b2235 68%, #302b3a 98%);
    animation: background-gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes background-gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@font-face {
    font-family: MainFont;
    src: url(../assets/font/variable/JetBrainsMono[wght].ttf);
  }

.base-div img {
    max-width: -webkit-fill-available;
}

h1 {
    font-weight: 700;
    font-size: 60px;
    margin: 0 1rem;
    word-break: break-word;
}
h2 {
    font-weight: 700;
    font-size: 50px;
    margin: 0 1rem;
    word-break: break-word;
}
h3 {
    font-weight: 700;
    font-size: 40px;
    margin: 0 1rem;
    word-break: break-word;
}
h4 {
    font-weight: 700;
    font-size: 30px;
    margin: 0 1rem;
    word-break: break-word;
}
h5 {
    font-weight: 700;
    font-size: 20px;
    margin: 0 1rem;
    word-break: break-word;
}

.container {
    background-color: #230049;
    min-height: 100vh;
    max-width: 50rem;
    min-width: 50rem;
    padding: 1rem;
    animation: shadowChange 3s ease-in-out infinite;
}

.center {
    display: flex;
    justify-content: center;
    align-content: center;
}

.flex {
    display: flex;
    
}

.separator {
    justify-content: space-between;
    align-items: center;
    margin: 0 1rem;
}

.welcome-div {
    width:auto;
    height: fit-content;
    padding: 1rem;
    background-color: #47246D;
    border-radius: 30px 30px 0px 30px;
}

div.base-div {
    background-color: #47246D;
    padding: 1rem;
    margin: 0.5rem 0;
    min-height: fit-content;
}

div.base-div.odd {
    border-radius: 30px 0px 30px 0px !important;
}

div.base-div.even {
    border-radius: 0px 30px 0px 30px !important;
}

.animated-line {
    width: 100%;
    height: 3px;
    animation: shadowChange 3s ease-in-out infinite, colorChange 3s ease-in-out infinite;
    border-radius: 16px;
    margin: 0.5rem 0;
}

@keyframes colorChange {
    0% {
        background-color: #bd7fff;
    }
    50% {
        background-color: #eedfff;
    }
    100% {
        background-color: #bd7fff;    
    }
}

@keyframes shadowChange {
    0% {
        box-shadow: 0px 0px 10px 3px #9f45ff;
    }
    50% {
        box-shadow: 0px 0px 10px 3px #d6afff;
    }
    100% {
        box-shadow: 0px 0px 10px 3px #9f45ff;
    }
}

a.button {
    border-style: solid;
    border-radius: 8px;
    border-color: #7e4ca7;
    padding: 6px 12px;
    color: #e7c8ff;
}

form.lang-select button img {
    max-width: 50px;
}
form.lang-select button img:hover {
    animation: niceShadow 0.1s ease-in-out forwards;
    cursor: pointer;
}

@keyframes niceShadow {
    100% {filter: drop-shadow(0 0 0.75rem rgb(23, 18, 26));}
}

form.lang-select button {
    background-color: #0000;
    border: none;
}

button.b.active {
    background-color: #9E72C3;
}
button.b.active:hover {
    background-color: #7e4ca7;
}

button.b {
    width: 75px;
    height: 75px;
    background-color: #230049;
    border-width: 0;
}

button.b:hover {
    cursor: pointer;
}

button.b.s1 {
    border-radius: 40px 0 40px 0;
}

button.b.s2 {
    border-radius: 0 40px 0 40px;
}

img.icon {
    filter: brightness(0) saturate(100%) invert(49%) sepia(16%) saturate(1397%) hue-rotate(230deg) brightness(100%) contrast(82%);
    width: 40px;
    margin: 0;
    padding: 16px;
    padding-left: 12px;
}

button.b.active img.icon {
    filter: brightness(0) saturate(100%) invert(13%) sepia(71%) saturate(3318%) hue-rotate(263deg) brightness(56%) contrast(117%);
}

.scrollable {
    overflow-y: auto;
    display: flex;
    padding: 1rem;
    box-shadow: inset 0px 0px 10px 2px rgba(50,21,81,1);
    margin-top: 0.5rem;
    border-radius: 16px;
}

.anti.scrollable {
    overflow:hidden !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.skill {
    display: flex;
    width: 40%;
    background-color: #321551;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 0.5rem 0.25rem;
    align-items: center;
}

.skill h5.scale {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-in-out, visibility 0.3s ease-in-out;
    word-break: normal;
}

b {
    font-weight: 900;
    color: #af8acf;
}

@keyframes shade {
    0% {
        box-shadow: inset 0px 0px 0px 0px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: inset 0px 0px 10px 2px rgb(0 0 0 / 33%);
    }
}

@keyframes unshade {
    0% {
        box-shadow: inset 0px 0px 10px 2px rgb(0 0 0 / 33%);
    }
    100% {
        box-shadow: inset 0px 0px 0px 0px rgba(0, 0, 0, 0);
    }
}

.skill:hover {
    animation: shade 0.1s ease-in-out forwards;
    cursor:default;
}

.skill:not(:hover) {
    animation: unshade 0.2s ease-in-out forwards;
}


.skill:hover h5.scale {
    opacity: 1;
    visibility: visible;
}


@keyframes appear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.skill p {
    margin: 0 1rem;
}

.skill img {
    filter: brightness(0) saturate(100%) invert(49%) sepia(16%) saturate(1397%) hue-rotate(230deg) brightness(100%) contrast(82%);
    max-width: 2rem;
}

.project {
    display: flex;
    flex-wrap: wrap;
    max-width: 30%;
    background-color: #321551;
    padding: 1rem;
    border-radius: 16px;
    margin: 0 0.5rem;
}

a {
    text-decoration: none;
    color: #7e4ca7;
    transition: color 0.1s ease-in-out;
}

a:hover {
    color: #9E72C3;
}


.project img {
    width: -webkit-fill-available;
    margin-bottom: 1rem;
    border-radius: 8px;
    max-height: 7rem;
}

.project div.languages {
    max-width: 32px;
    height: 32px;
    background-color: #230049;
    margin: 0.25rem;
    padding: 0.1rem;
    border-radius: 6px;
}

.project .languages img {
    filter: brightness(0) saturate(100%) invert(49%) sepia(16%) saturate(1397%) hue-rotate(230deg) brightness(100%) contrast(82%);
    max-width: 32px;
    height: 32px;
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #9e72c3 #321551;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 16px;
  }

  *::-webkit-scrollbar-track {
    background: #321551;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #9e72c3;
    border-radius: 10px;
    border: 3px solid #ffffff;
  }

.animated-texts-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
    box-shadow: inset 0px 0px 10px 2px rgba(50,21,81,1);
    border-radius: 16px;
}

.animated-texts {
    display: flex;
    gap: 5rem; /* Távolság az elemek között */
    animation: textAnimation 20s linear infinite;
    
}

.animated-texts span {
    font-size: 1.5rem;
    font-weight: bold;
    color:#9E72C3;
}

/* Folyamatos gördülő animáció */
@keyframes textAnimation {
    0% {
        transform: translateX(105%);
    }
    100% {
        transform: translateX(-275%);
    }
}

.slide-content {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.3s ease;
}

.slide-content.show {
    height: auto;
    opacity: 1;
    /* Ez önmagában nem animálja az auto-t, de megoldjuk JS-ből! */
}

.interest-size {
        height: 45px;
    }

@media (max-width: 768px) {
    .base-div {
        max-width: -webkit-fill-available;
        margin: 1rem 2rem!important;
    }
    .welcome-div {
        max-width: -webkit-fill-available;
        margin: 1rem 2rem;
    }
    .container {
        min-width: -webkit-fill-available;
    }
}

@media only screen and (max-width: 425px) {
    .base-div {
        margin: 0.5rem 0 !important;
    }
    .welcome-div {
        max-width: -webkit-fill-available;
        margin: 0.5rem 0 !important;
    }
    .container {
        min-width: -webkit-fill-available;
    }
    h1 {
        font-size: 32px;
    }

    button.b.s1 {
        border-radius: 8px 0 8px 0;
    }
    button.b.s2 {
        border-radius: 0 8px 0 8px;
    }
    button.b {
        width: 50px;
        height: 50px;
        margin: 0.3rem;
    }

    img.icon {
        padding: 0.1rem
    }

    .holder {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: flex-end;
        align-items: center;
        flex-direction: row;
    }

    .skill {
        width: 90%;
    }

    .project {
        max-width: fit-content;
    }

    .interest-size {
        height: 45px;
    }

}