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

body {
    display: flex;
    background-image: url(danbi/img/bgimg4.jpg);
    width: 100vw;
    height: 100vh;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    flex-direction: column;
    padding: 50px;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

title {
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.mainTitle {
  animation: floating 2s ease-in-out infinite; /* 애니메이션 적용 */
}
.subTitle {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    animation: sparkle 2s infinite alternate; /* 반짝이는 애니메이션 추가 */
}

.content {
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.taskBox {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}
.task-box {
    display: flex;
    width: 200px;
    height: 200px;
    background-color: aqua;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.task1-Box {
    background-position: center;
    background-size: contain;
    padding: 8px 0 8px 44px;
}
.task2-Box {
    background-position: center;
    background-size: contain;
    padding: 10px 0 10px 5px;
}
.task2-Box > img {
    background-position: center;
    background-size: cover;
    padding: 7px 5px 7px 5px;
}
.task3-Box {
    background-position: center;
    background-size: contain;
    padding: 10px 0 10px 5px;
}
.task3-Box > img {
    background-position: center;
    background-size: cover;
    padding: 7px 5px 7px 5px;
}
.task4-Box {
    background-position: center;
    background-size: contain;
    padding: 10px 0 10px 5px;
}
.task4-Box > img {
    background-position: center;
    background-size: cover;
    padding: 0px 5px 0px 5px;
}
.task5-Box {
    background-position: center;
    background-size: contain;
    padding: 10px 0 10px 5px;
}
.task5-Box > img {
    background-position: center;
    background-size: cover;
    width: 100%;
    padding: 0px 5px 0px 5px;
}

.teamBox {
    display: flex;
    width: 90vw;
    height: 30vh;
    justify-content: space-between;
    flex-direction: row;
    padding-left: 30px;
    gap: 20px;
}

.char-box {
    display: flex;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


/*
.chat {
    display: flex;
    margin: 0;
    padding: 0;
}
.qBox{
    display: flex;
    border: 3px solid white;
}
*/

@keyframes floating {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* 위로 살짝 올라가게 */
  }
  100% {
    transform: translateY(0);
  }
}

/* 반짝이는 애니메이션 */
@keyframes sparkle {
    0% {
        filter: brightness(1); /* 기본 밝기 */
    }
    50% {
        filter: brightness(1.7); /* 밝기가 약간 증가 */
    }
    100% {
        filter: brightness(1); /* 기본 밝기로 돌아옴 */
    }
}

.task-box:hover {
    background-color: rgb(54, 24, 129);  /* 호버 시 색상 */
    transform: translate(10px, 10px);  /* 오른쪽 아래로 살짝 이동 */
}







.neon-text {
    font-size: 50px;
    font-weight: bold;
    color: white;
    text-align: center;
    animation: neonGlow 1.5s ease-in-out infinite alternate, textBlink 2s infinite alternate;
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 0 80px #ff00ff, 0 0 100px #ff00ff;
}

/* 네온사인 글씨 반짝이는 효과 */
@keyframes neonGlow {
    0% {
        text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff, 0 0 20px #ff00ff, 0 0 25px #ff00ff, 0 0 50px #ff00ff;
        opacity: 0.8;
    }
    50% {
        text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff, 0 0 40px #ff00ff, 0 0 80px #ff00ff, 0 0 160px #ff00ff;
        opacity: 1;
    }
    100% {
        text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff, 0 0 20px #ff00ff, 0 0 25px #ff00ff, 0 0 50px #ff00ff;
        opacity: 0.8;
    }
}

/* 텍스트 반짝이는 효과 (빈번한 깜빡임) */
@keyframes textBlink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
