/* FILEPATH: /Applications/XAMPP/xamppfiles/htdocs/kevin-portofolio/style.css */

/* Reset default styles */

/* need to do :
1. make animation for typing
2. make animation reveal for terminal
*/
*, body, h1, p {
    margin: 0;
    padding: 0;
}
*{
    box-sizing: border-box;
    font-family: Fira Code,sans-serif;
}
:root {
    --text-color: #a9b1d6;
    --primary: #bb9af7;
    --secondary: #2ac3de;
    --background-color: #1a1b26;
}

.btn-close-custom {
    --bs-close-color: #bb9af7;
    --bs-close-hover-color: #bb9af7;
}

/* Set font and background color */
body {
    box-sizing: border-box;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.all-terminal{
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    max-height: 50vh;
    overflow-y: auto;
}

.all-terminal::-webkit-scrollbar {
    display: none;
}

.home{
    line-height: 1.6;
    margin: 0;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    max-width: 600px;
}

input{
    color: #AAB1D6;
    background-color: #1A1B26;
    border: none;
    cursor: text;
}

input:focus{
    outline: none;
}

output{
    white-space: pre-wrap;
    color: #AAB1D6;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 50%; /* Atur ini sesuai kebutuhan Anda */
}

/* saya ingin span ada di samping kiri input */
span.terminal{
    display: inline-block;
    width: 100px;
    text-align: left;
    margin-right: -50px;
    color: var(--primary)
}
home-terminal{
    max-height: calc(100vh - 160px);
    margin-bottom: 20px;
    overflow-y: scroll;
}
/* Style the heading */
h1 {
    font-size: 50px;
    margin-bottom: 20px;
}
.span-hello{
    animation:gradientIn 0.5s ease-in-out, gradientInfinite 6s ease-in-out;
    background-image: linear-gradient(74deg, #bb9af7 30%, #1A1B26);
    background-size: 200% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
@keyframes slideIn {
    0% {
        transform: translateY(-10%);
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}
@keyframes gradientIn {
    0% {
        -webkit-background-clip: text;
        color: transparent;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes gradientInfinite {
    0% {
        background-position: 0 0;
    }
    25% {
        background-position: 100% 0;
    }
    0% {
        background-position: 100% 10%0;
    }
    75% {
        background-position: 0 100%;
    }
    100% {
        background-position: 0 0;
    }
}

.animate {
    animation: slideIn 0.5s ease-in-out;
}
span.type{
    color: var(--text-color);
}

/* Style the paragraph */
p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

body.swal2-shown > [aria-hidden='true'] {
    transition: 0.1s filter;
    filter: blur(3px);
  }