@import url('https://fonts.googleapis.com/css2?family=Kalnia+Glaze:wght@100..700&family=New+Amsterdam&family=Orbitron:wght@400..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Saira:ital,wght@0,600;1,600&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: "Source Code Pro", monospace;
    line-height: 1.5;
    color: #1c1403;
    padding: 0;
    margin: 0;
    background-color: #fdf8ed;
}

.typewriter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fdf8ed;
    z-index: 1000;
    animation: hide 1s 3s forwards;
    /* Automatically hides after animation */
}

.typewriter p {
    font-family: monospace;
    font-size: 4rem;
    margin-inline: auto;
    overflow: hidden;
    white-space: nowrap;
    border-right: 1px solid;
    animation: typing 1s steps(10) forwards, blink 1s step-end infinite;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 2.3rem 0 0.75rem;
    z-index: 1;
    background-color: #fdf8ed;
    outline: 1px dotted silver;
}

.main {
    position: relative;
    top: 0;
    left: 0;
    font-size: 2vw;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.braces {
    font-size: 3vw;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes hide {
    to {
        opacity: 0;
        visibility: hidden;
        z-index: -1;
    }
}


.text-transition {
    font-weight: bold;
}

.strike-through {
    position: relative;
}

.strike-through::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background-color: #f60808;
    transition: width 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.strike-through.active::after {
    width: 100%;
}

.strike-through.fade-out::after {
    opacity: 0;
}

.rotate-text {
    display: inline-block;
    transition: transform 0.5s ease-in-out;
}

.rotate-text.active {
    transform: rotateX(360deg);
}

.grid-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(150px, auto));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    grid-template-areas:
        "box1 box2 box2 box3"
        "box1 box2 box2 box3"
        "box4 box5 box5 box3"
        "box4 box5 box5 box3"
        "box4 box6 box6 box7";
}

.grid-item {
    background-color: #1a1a1a;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.grid-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.grid-item-1 {
    grid-area: box1;
    background-color: #f3b61b;
}

.grid-item-2 {
    grid-area: box2;
    background-color: #fdfdfd;
}

.grid-item-3 {
    grid-area: box3;
    background-color: #1c1403;
    color: #fdf8ed;
}

.grid-item-4 {
    grid-area: box4;
    background-color: #1c1403;
    color: #fdf8ed;
}

.grid-item-5 {
    grid-area: box5;
    background-color: #76ed5e;
}

.grid-item-6 {
    grid-area: box6;
    background-color: #bef28c;
}

.grid-item-7 {
    grid-area: box7;
    background-color: #f3b61b;
}

.grid-item h1,
.grid-item h2 {
    margin-bottom: 1rem;
}

.grid-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.img-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.img-container img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f3b61b;
    color: #fdf8ed;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #666;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "box1 box2"
            "box3 box4"
            "box5 box7"
            "box6 box6";
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "box1" "box2" "box3"
            "box4" "box5" "box6"
            "box7";
    }
    .strike-through::after {
        height: 1px;
    }
}

.chat {
    grid-column: span 2;
    grid-row: span 1;
}

.chat-container {
    display: flex;
    flex-direction: column;
}

.chat-message {
    background-color: #39ff5a;
    border-radius: 15px;
    padding: 10px;
    margin: 5px 0;
    max-width: 80%;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #0e0e0e;
}

.chat-message.right {
    align-self: flex-end;
    background-color: #218aff;
    color: #151616
}



.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

#content{
    display: flex;
    justify-content: center;
    align-items: center;
}