@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', cursive;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    width: 90vw;
}

.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    flex: 0.6;
    margin: 10px;
    position: relative;
    transition: all 700ms ease-in;
}

.panel h1 {
    font-size: 35px;
    position: absolute;
    bottom: 65px;
    left: 20px;
    margin: 0;
    opacity: 1;
}



.panel .btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #fdb917;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.panel .btn:hover {
    background-color: #333;
    color: #fff;
}



.panel.active h1 {
    opacity: 1;
    transition: opacity 0.3s ease-in 0.4s;
}

@media (max-width: 768px) {
    
    body {
           height: 90vh;
    }
    
    .container {
        flex-direction: column;
        align-items: center;
        width: 100vw;
        
    }

    .panel {
        width: 90%; /* Optional: Leave some margin around the panel */
        height: 40vh; /* Adjust height for better visibility */
        flex: none; /* Reset flex property */
    }

    .panel h1 {
        font-size: 24px;
        bottom: 30px;
    }

    .panel .btn {
        padding: 8px 16px;
        font-size: 14px;
        bottom: 40px;
    }
}

@media (max-width: 480px) {
    
     body {
           height: 85vh;
    }
    
    .container {
        flex-direction: column;
        align-items: center;
        width: 100vw;

    }

    .panel {
        width: 90%; /* Full width on very small devices */
        height: 38vh;
     
    }

    .panel h1 {
        font-size: 20px;
        bottom: 30px;
    }

    .panel .btn {
        padding: 6px 12px;
        font-size: 12px;
        bottom: 40px;
    }
}