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

html {
    margin: 0;
    padding: 0;
}

body {
    background-color: #eeeeee;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.fullscreen {
    width: 100dvw;
    height: 100dvh;
}

.force-fullscreen{
    width: 100dvw;
    height: 100dvh;
}

.border {
    box-shadow: inset 0 0 0 4px #000;
}

.drop-in #logo {
    position: absolute;
    top: 2.5dvh;
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    width: 10dvw;
    filter: brightness(0);
}

.drop-in {
    padding: 0;
    overflow-y: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content:center ;
}

.drop-in-title {
    font-family: "HKGroteskWide", sans-serif;
    font-size: clamp(40px, 15vw, 250px);
    position: absolute;
    line-height: 55%;
    padding-left: 5dvw;
    max-width: 90dvw;
    -webkit-text-stroke: 2px #eeeeee;
    text-align: center;
}

.drop-in-title span {
    font-family: "XShow", sans-serif;
    font-weight: 100;
    background: linear-gradient(145deg, #ff512f, #dd2476, #61045f);
    -webkit-text-stroke: 2px transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 25px; 
    margin: 0 -25px; 
}

.about {
    max-width: 100dvw;
    margin: 0 auto;
    height: 100dvh;
    border: 4px solid #000;
    background: #eeeeee;
    position: relative;
}

.aboutusContent {
    background: #eeeeee;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 80dvh;
    padding-right: 280px;
}

.aboutusContent h2 {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.1;
    flex-shrink: 0;
    font-family: "HKGroteskWide", sans-serif;
    margin-bottom: 10dvh;
    max-width: 50dvw;
}

.aboutusContent .text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
}

.aboutusContent p {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    line-height: 1;
    color: #333;
    margin: 0 0 0.25em 0;
    display: block;
    font-family: "Montserrat", sans-serif;
    max-width: 50dvw;
}

.devCarousel {
    position: absolute;
    top: -4px;
    right: 17.5px;
    width: 35dvw;
    height: 50dvh;
    background: #eeeeee;
    border: 4px solid #000;
    overflow: hidden;
}

.funnyCircle {
    position: absolute;
    bottom: -4px;
    right: 17.5px;
    width: 35dvw;
    height: 50dvh;
    background: #eeeeee;
    border: 4px solid #000;
    overflow: hidden;
}

.carousel-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dev-card {
    position: absolute;
    background: #eeeeee;
    padding: 15px;
    text-align: center;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dev-card.active {
    transform: translateX(0);
    opacity: 1;
}

.dev-card.exit {
    transform: translateX(-100%);
    opacity: 0;
}

.dev-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #000;
    margin: 0 auto 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
    font-family: "HKGroteskWide", sans-serif;
    text-transform: uppercase;
}

.dev-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: "Montserrat", sans-serif;
}

.dev-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    padding: 4px 8px;
    background: #000;
    color: #eeeeee;
    text-decoration: none;
    border-radius: 12px;
    font-size: 10px;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.social-link:hover {
    background: #333;
    transform: scale(1.05);
}

.carousel-nav {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #000;
}

.nav-dot.active {
    background: #000;
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    padding: 6px 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrows:hover {
    background: #000;
    color: #eeeeee;
}

.prev-arrow {
    left: 5px;
}

.next-arrow {
    right: 5px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
    color: #666;
}

.games {
    max-width: 100dvw;
    margin: 0 auto;
    height: 100dvh;
    border: 4px solid #000;
    background: #eeeeee;
    position: relative;
}

.gamesContent {
    background: #eeeeee;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 80dvh;
    padding-right: 280px;
}

.gamesContent h2 {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.1;
    flex-shrink: 0;
    font-family: "HKGroteskWide", sans-serif;
    margin-bottom: 10dvh;
    max-width: 50dvw;
}

.gamesContent .text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
}

.gamesContent p {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    line-height: 1;
    color: #333;
    margin: 0 0 0.25em 0;
    display: block;
    font-family: "Montserrat", sans-serif;
    max-width: 50dvw;
}

#overheat {
    position: absolute;
    top: -4px;
    right: 17.5px;
    width: 35dvw;
    height: 50dvh;
    background: #eeeeee;
    border: 4px solid #000;
    overflow: hidden;
}

#ufg {
    position: absolute;
    bottom: -4px;
    right: 17.5px;
    width: 35dvw;
    height: 50dvh;
    background: #eeeeee;
    border: 4px solid #000;
    overflow: hidden;
}

#overheat, #ufg {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
}

#overheat > p, #ufg > p {
    font-family: 'HKGroteskWide', sans-serif;
    display: none;
} 

.games img {
    filter: brightness(0);
    max-width: 100%;
    max-height: 90%;
}


@media (max-width: 1200px){
    .border {
        box-shadow: none;
    }   
}


/* Tablets (768px and below) - This is where we switch to mobile layout */
@media (max-width: 768px) {
    .fullscreen{
        width: 100dvw;
        height: max-content;
        padding-top: 10dvh;
    }


    .border {
        box-shadow: none;
    } 
    
    .about, .games {
        border: none;
    }
    
    .devCarousel, .funnyCircle, #overheat, #ufg {
        border: none;
    }
    
    .dev-avatar {
        border: none;
    }
    
    .nav-dot {
        border: none;
    }
    
    .carousel-arrows {
        border: none;
    }
    
    .drop-in {
        width: 100vw;
    }

    .drop-in #logo {
        width: 20vw;
        top: 4vh;
    }
    
    .drop-in-title {
        padding-left: 2vw;
        line-height: 60%;
    }
    
    .about, .games {
        height: auto;
        min-height: 100vh;
    }

    .aboutusContent, .gamesContent {
        padding: 25px 20px;
        padding-right: 20px;
        height: auto;
        min-height: 60vh;
        flex-direction: column;
    }

    .aboutusContent h2, .gamesContent h2 {
        font-size: clamp(35px, 8vw, 70px);
        margin-bottom: 5vh;
        max-width: 100%;
    }
    
    .aboutusContent p, .gamesContent p {
        font-size: clamp(0.9rem, 3vw, 1.3rem);
        max-width: 100%;
        line-height: 1.4;
        margin-bottom: 0.5em;
    }

    .devCarousel, .funnyCircle {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 250px;
        margin-top: 20px;
        
    }
    
    #overheat, #ufg {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 200px;
        margin-top: 20px;
        
    }

    .dev-avatar {
        width: 50px;
        height: 50px;
    }
    
    .dev-name {
        font-size: 0.9rem;
    }
    
    .dev-description {
        font-size: 0.75rem;
    }
    
    .social-link {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* Small tablets and large phones (600px and below) */
@media (max-width: 600px) {

    .fullscreen{
        width: 100dvw;
        height: max-content;
        padding-top: 10dvh;
    }


    .border {
        box-shadow: none;
    } 
    
    .about, .games {
        border: none;
    }
    
    .devCarousel, .funnyCircle, #overheat, #ufg {
        border: none;
    }
    
    .dev-avatar {
        border: none;
    }
    
    .nav-dot {
        border: none;
    }
    
    .carousel-arrows {
        border: none;
    }
    
    .drop-in #logo {
        width: 25vw;
        top: 5vh;
    }
    
    .drop-in-title {
        padding-left: 1vw;
        line-height: 65%;
    }
    
    .drop-in-title span {
        padding: 0 15px;
        margin: 0 -15px;
    }

    .aboutusContent, .gamesContent {
        padding: 20px 15px;
        min-height: 50vh;
    }

    .aboutusContent h2, .gamesContent h2 {
        font-size: clamp(28px, 7vw, 55px);
        margin-bottom: 4vh;
        line-height: 1.2;
    }
    
    .aboutusContent p, .gamesContent p {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
        line-height: 1.5;
    }

    .devCarousel, .funnyCircle, #overheat, #ufg {
        height: 220px;
        margin-top: 15px;
    }
    
    .dev-card {
        padding: 10px;
    }
    
    .carousel-arrows {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .nav-dot {
        width: 6px;
        height: 6px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {

    .fullscreen{
        width: 100dvw;
        height: max-content;
        padding-top: 10dvh;
    }

    .border {
        box-shadow: none;  
    } 
    
    .about, .games {
        border: none;
    }
    
    .devCarousel, .funnyCircle, #overheat, #ufg {
        border: none;
    }
    
    .dev-avatar {
        border: none;
    }
    
    .nav-dot {
        border: none;
    }
    
    .carousel-arrows {
        border: none;
    }
    
    .drop-in #logo {
        width: 30vw;
    }
    
    .drop-in-title {
        padding-left: 0.5vw;
    }

    .aboutusContent, .gamesContent {
        padding: 15px 10px;
    }

    .aboutusContent h2, .gamesContent h2 {
        font-size: clamp(24px, 6vw, 45px);
        margin-bottom: 3vh;
    }
    
    .aboutusContent p, .gamesContent p {
        font-size: clamp(0.8rem, 4vw, 1rem);
        line-height: 1.6;
    }

    .devCarousel, .funnyCircle, #overheat, #ufg {
        height: 180px;
    }
    
    .dev-avatar {
        width: 40px;
        height: 40px;
    }
    
    .dev-name {
        font-size: 0.8rem;
    }
    
    .dev-description {
        font-size: 0.7rem;
    }
    
    .social-link {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .carousel-arrows {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .border {
        box-shadow: none;
    } 
    
    .about, .games {
        border: none;
    }
    
    .devCarousel, .funnyCircle, #overheat, #ufg {
        border: none;
    }
    
    .dev-avatar {
        border: none;
    }
    
    .nav-dot {
        border: none;
    }
    
    .carousel-arrows {
        border: none;
    }
    
    

    .aboutusContent h2, .gamesContent h2 {
        font-size: clamp(20px, 5.5vw, 35px);
        margin-bottom: 2vh;
    }
    
    .aboutusContent p, .gamesContent p {
        font-size: clamp(0.75rem, 4.5vw, 0.9rem);
    }

    .devCarousel, .funnyCircle, #overheat, #ufg {
        height: 160px;
        margin-top: 10px;
    }
    
    .dev-card {
        padding: 8px;
    }
}


.contact {
    max-width: 100dvw;
    margin: 0 auto;
    height: 100dvh;
    background: #eeeeee;
    position: relative;
    display: flex;
    flex-direction: row;
}

.contactContent {
    background: #eeeeee;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 80dvh;
    padding-right: 280px;
    
}

.contactContent h2 {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.1;
    flex-shrink: 0;
    font-family: "HKGroteskWide", sans-serif;
    margin-bottom: 10dvh;
    max-width: 50dvw;
}

.contactContent .text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
}

.contactContent p {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    line-height: 1;
    color: #333;
    margin: 0 0 0.25em 0;
    display: block;
    font-family: "Montserrat", sans-serif;
    max-width: 50dvw;
}


.form {
    width: 35dvw;
    right: 0;
    min-height: 300px;
    position: relative; /* was absolute */
    top: 0;
    padding-bottom: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* was flex-end */
    align-items: center;
    transition: min-height 0.2s;
    overflow: hidden;
    padding-top: 5dvh;
}

.textbubbles {
    padding-top: 10dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    z-index: 2;
}

.bubble {
    background: #f5f5f5;
    color: #333;
    border-radius: 16px;
    padding: 8px 18px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: relative;
    max-width: 80%;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    border: 1.5px solid #bbb;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px; /* space between text and input */
    flex-wrap: wrap;
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
}
.bubble[data-step] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
.bubble[data-step].visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Inline input: remove margin-top, set width auto */
.bubble-input.inline {
    display: inline-block;
    width: auto;
    min-width: 80px;
    max-width: 180px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1em;
    font-family: "Montserrat", sans-serif;
    color: #333;
    border-bottom: 2px solid #bbb;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0; /* Remove vertical offset */
    padding: 4px 4px 2px 4px;
    box-shadow: none;
    transition: border 0.2s;
    vertical-align: middle;
    border-radius: 0;
}

.bubble-input.inline:focus {
    border-bottom: 2px solid #888;
    background: transparent;
}

.bubble-input.textarea {
    width: 98%;           /* Make it a bit wider */
    min-width: 0;         /* Allow to shrink if needed */
    max-width: 100%;      /* Prevent overflow */
    min-height: 32px;
    max-height: 40vh;
    resize: none;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #bbb;
    font-size: 1em;
    font-family: "Montserrat", sans-serif;
    color: #333;
    background: transparent;
    margin-top: 10px;
    padding: 6px 4px 2px 4px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s;
    display: block;
    overflow-y: hidden;
}

.bubble-input.textarea:focus {
    border-bottom: 2px solid #888;
    background: transparent;
}

#textarea-bubble{
    width: 100%;
}

.bubble-send-btn {
    margin-top: 18px;
    padding: 10px 32px;
    border-radius: 18px;
    border: 2px solid #bbb;
    background: #f5f5f5;
    color: #333;
    font-family: "Montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: background 0.2s, border 0.2s, color 0.2s;
    outline: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.bubble-send-btn:hover, .bubble-send-btn:focus {
    background: #e0e0e0;
    border-color: #888;
    color: #222;
}

#bigTextBox{
    width: 100%;
}

.toggle-form-type {
    cursor: pointer;
    text-align: left; /* align left */
    margin: 8px 0 0 0;
    color: #444;
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    padding-left: 0;
}
.toggle-form-type:hover {
    color: #000;
}

#normal-form {
    font-family: "Montserrat", sans-serif;
    background: none;
    border: none;
    box-shadow: none;
    padding-bottom: 10px;
    margin: 32px auto 0 auto; /* centers horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    align-self: center;
    justify-self: center;
    margin-right: 7.5dvw;
}

.normal-form-row {
    width: 100%;
    padding-top: 1dvh;
}

.normal-form-group {
    width: 100%;
    padding-top: 1dvh;
}

#normal-form label {
    padding-top: 1dvh;
    font-size: 1em;
    color: #222;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

#normal-form input,
#normal-form textarea {
    width: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 1em;
    border: none;
    border-bottom: 2px solid #bbb;
    background: transparent;
    outline: none;
    padding: 6px 2px 4px 2px;
    margin-bottom: 0;
    border-radius: 0;
    transition: border-color 0.2s;
    resize: none;
}

#normal-form input:focus,
#normal-form textarea:focus {
    border-bottom: 2px solid #222;
    background: transparent;
}

.normal-send-btn {
    margin-top: 18px;
    padding: 10px 0;
    width: 100%;
    border-radius: 0;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    font-family: "Montserrat", sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, color 0.2s;
    outline: none;
    letter-spacing: 2px;
}
.normal-send-btn:hover, .normal-send-btn:focus {
    background: #f5f5f5;
    border-color: #888;
    color: #000;
}

@media (max-width: 900px) {
    .border{
        box-shadow: none;
    }
    .contact {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        min-height: 100vh;
    }
    .contactContent {
        width: 100%;
        max-width: 700px;
        padding: 32px 4vw 0 4vw;
        margin: 0 auto;
        padding-right: 4vw;
        height: auto;
    }
    .form,
    #normal-form {
        width: 100%;
        max-width: 500px;
        margin: 32px auto 0 auto;
        align-items: center;
        padding: 0 4vw 24px 4vw;
        box-sizing: border-box;
        margin-right: 0;
    }
    .textbubbles {
        max-width: 100vw;
        width: 100%;
        padding-top: 4dvh;
    }
}