@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --color1: #000000;
    --color2: #95b8e2;
    --color3: #2D2D2D;
    --color4: #686868;
    --color5: #38435c;
    --color6: #FFFFFF;
    --font-text: "Exo 2";
    --font-color1: #FFFFFF;
    --font-color2: #000000;
    --font-color3: #1E332E;
    --clr-1: #ebebeb;
    --clr-2: #95b8e2;
    --clr-3: #38435c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-text);
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--color1);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    /* overflow-y: auto; */
}

.main-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 50px 80px;
    overflow-y: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: white;
    border-bottom: 1px solid var(--font-color1);
    margin-bottom: 20px;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-row,
.bottom-row {
    display: flex;
    gap: 20px;
    flex: 1;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 30%;
}

.box {
    border-radius: 30px;
    padding: 30px;
    color: var(--clr-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.box-stats {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.sliding-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

@keyframes slideOver {
    0%, 33.33% {
        transform: translateX(100%);
    }
    33.33%, 66.66% {
        transform: translateX(0%);
    }
    66.66%, 100% {
        transform: translateX(100%);
    }
}

.slide:nth-child(1) {
    z-index: 1;
}

.slide:nth-child(2) {
    z-index: 2;
    animation: slideOver 15s infinite;
}

.slide:nth-child(3) {
    z-index: 3;
    animation: slideOver 15s infinite 7s;
}

.stat-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item .xp-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-item .number {
    font-size: 4em;
    font-weight: bold;
}

.stat-item .unit {
    font-size: 2em;
    margin-left: 5px;
}

.stat-item p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    margin-top: 5px;
}

.box-working {
    color: white;
    background-color: var(--color3);
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    overflow: hidden;
    position: relative;
    min-height: 150px;
    padding: 40px;
}

.box-working strong {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    padding: 0 20px;
}

.box-working p {
    font-size: 1em;
    margin: 0;
    line-height: 1.4;
}

.box-progression {
    background-color: var(--color4);
    flex: 2;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.box-skills {
    background-color: var(--color2);
    width: 40%;
}

.box-projects {
    background-color: var(--color6);
    flex: 1;
    font-size: 1.5em;
    font-weight: bold;
}

.skills-graph {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px;
    margin-top: 20px;
}

.Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 125px;
    height: 45px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: .3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    background-color: var(--color3);
}

.sign {
    width: 28%;
    transition-duration: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

.sign svg {
    width: 17px;
}

.sign svg path {
    fill: white;
}

.text {
    width: 70%;
    opacity: 1;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    transition-duration: .3s;
    padding-right: 10px;
}

.Btn:active {
    transform: translate(2px, 2px);
}

.welcome-message strong {
    font-size: 1em;
}

.welcome-message {
    font-size: 1.2em;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}

.form {
    --bg-light: var(--color1);
    --bg-dark: var(--color6);
    --clr: white;
    --clr-alpha: var(--color3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    background-color: var(--color1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form .input-span {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form input[type="text"],
.form input[type="password"] {
    border-radius: 0.5rem;
    padding: 1rem 0.75rem;
    width: 100%;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1em;
    background-color: var(--clr-alpha);
    color: white;
    outline: 2px solid var(--bg-dark);
}

.form input[type="text"]:focus,
.form input[type="password"]:focus {
    outline: 2px solid var(--clr);
}

.label {
    align-self: flex-start;
    color: var(--clr);
    font-weight: 600;
}

.form .submit {
    padding: 1rem 0.75rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 3rem;
    background-color: var(--bg-dark);
    color: var(--bg-light);
    border: none;
    cursor: pointer;
    transition: all 300ms;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 20px;
}

.span {
    text-decoration: none;
    color: var(--bg-dark);
}

.span a {
    color: var(--clr);
}

.error {
    color: var(--clr-1);
}


@media (max-width: 1200px) {
    .main-container {
        padding: 30px 40px;
    }

    .top-row, .bottom-row {
        flex-direction: column;
    }

    .left-column {
        width: 100%;
    }

    .box-skills {
        width: 100%;
    }

    body, .main-container {
        height: auto;
        min-height: 100vh;
    }

    .container {
        flex: none;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px;
        overflow-y: auto;
    }

    header {
        flex-direction: column;
        gap: 10px;
    }

    .box {
        padding: 20px;
    }

    .top-row, .bottom-row {
        flex: none;
    }

    .login-container {
        padding: 20px;
    }

    .form {
        padding: 30px;
    }
}