* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', cursive;
    /* Remove this if you want full transparency: background-color: #341a00; */
}

header {
    width: 90%;
    max-width: 80%;
    height: 50px;
    background-color: #1b1b32;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 50%; /* Position the header halfway across the viewport */
    transform: translateX(-50%); /* Center the header fully */
  }

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    background-image: linear-gradient(to bottom right, rgb(77, 35, 9), rgb(222, 168, 147)); /* Background for the body */
}

.container {
    display: flex;
    width: 90vw;
}

.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    flex: 0.5;
    margin: 10px;
    position: relative;
    transition: all 700ms ease-in;
}

.panel h1 {
    font-size: 35px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    opacity: 0;
    background: none; /* Ensure the h1 has no background */
}

/* Expand on hover */
.panel:hover {
    flex: 5;
}

/* Show text on hover */
.panel:hover h1 {
    opacity: 1;
    transition: opacity 0.8s ease-in 0.4s;
}

/* Adjust for small screens */
@media (max-width: 480px) {
    .container {
        width: 100vw;
        transition: opacity 1s ease-in 0.4s;
    }

    .panel:nth-of-type(4),
    .panel:nth-of-type(5) {
        display: none;
    }
}

.panel h1 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Optional shadow */
}
