/* ###################### 기본값 ###################### */

p {
    font-family: "IBM Plex Sans KR", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body{
    background-color: rgb(215, 223, 219);
    font-size: 20px;
}

h1{
    color: rgb(24, 66, 41);
    font-size: 70px;
    text-align: center;
}

h4 {
    color: rgb(39, 24, 66);
    text-align: center;
    font-size: 18px;
    margin-top: -50px;
    margin-bottom: 70px;
}

footer {
    margin-top: 100px;
    margin-bottom: 40px;
    height: 80px;
    text-align: center;
    font-size: 18px;
}

html {
    scroll-behavior: smooth;
}

/* ###################### 로고 및 메뉴 ###################### */


.navbar {
    background-color: rgb(11, 73, 64);
    color:white;
    height: 80px;
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    z-index: 1000; 
}

.navbar .container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 45px;
}

.navbar .content{
    margin-top: 50px;
    padding: 0 45px;
}

.navbar ul{
    display: flex;
    flex-direction: row;
    list-style-type: none;
}

.navbar ul li{
    margin-left: 40px;
}

.logo{
    display: flex;
    align-items: center;
}

.logo_text{
    margin-left: 17px;
    font-size: 40px !important;
    font-weight: bold;
}

.logo_img{
    width: 45px;
    height: auto;
    border-radius: 50px;
}

.navbar a {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
}

@keyframes shake2 {
    0% { transform: translate(0, 0);}
    20% { transform: translate(-1px, 1px);}
    40% { transform: translate(1px, -1px);}
    60% { transform: translate(-1px, 1px);}
    80% { transform: translate(1px, -1px);}
    100% { transform: translate(0, 0);}
}

.navbar a:hover {
    color: rgb(204, 0, 255);
    animation: shake2 0.4s;
}

@media screen and (min-width: 0px) and (max-width: 770px){
    .logo_text{
        font-size: 20px !important;
    }
    .logo_img{
        width: 30px;
    }
    .navbar a {
        font-size: 13px;
    }
    .navbar ul li{
        margin-left: 10px;
    }
}

/* ###################### About Me 본문 ###################### */

#about{
    padding: 90px;
    background-color: rgb(205, 221, 213);
}

#project{
    padding: 90px;
    background-color: rgb(205, 230, 218);
}

#team{
    padding: 90px;
    background-color: rgb(193, 227, 211);
}

#code{
    padding: 90px;
    background-color: #abdfc1;
}

#guestbook{
    padding: 90px;
    background-color: rgb(215, 223, 219);
}

#list_wrap {
    width: 100%;
    text-align: center;
    margin: 50px auto;
}

.guestbook-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#guestbookinput {
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    font-size: 1rem;
    width: 900px;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

#guestbookinput:focus {
    border-color: #5fd994;
    outline: none;
}

#add {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    color: white;
    transition: 0.2s ease;
}

.delete {
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    color: white;
    transition: 0.2s ease;
}

#add {
    background-color: #64ce92;
}

#add:hover {
    background-color: #16502f;
}

#guestbooklist {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 1000px;
}

#guestbooklist li {
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.delete {
    background-color: #c791e6;
}

.delete:hover {
    background-color: #821bd1;
}

.gif-wrap {
    width: 250px;
    aspect-ratio: 1/1;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: white;
}

.kkachili-container {
    position: relative;
    text-align: center;
}

.kkachili-face {
    width: 80%;
    transition: filter 0.25s, transform 0.2s;
    cursor: pointer;
}

.kkachili-face:hover {
    filter: brightness(0.95) contrast(1.05) drop-shadow(0 4px 24px #956);
    transform: scale(1.06) rotate(-2deg);
}

@font-face {
    font-family: 'ROKABold';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2104@1.1/ROKABold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.speech-bubble {
    white-space: nowrap;
    font-family: 'ROKABold', sans-serif;
    font-size: 40px;
    display: none;
    position: absolute;
    left: 55%; top: 10%;
    width: 15%; padding: 9px 13px;
    color: rgb(143, 85, 153);
    z-index: 2;
    transition: opacity 0.23s;
    text-shadow: -1px 0px yellow, 0px 1px yellow, 1px 0px yellow, 0px -1px yellow;
}

.kkachili-face.active + .speech-bubble {
    display: block;
    opacity: 1;
}

@keyframes shake {
  0% { transform: translate(0, 0) scale(1.06) rotate(-2deg);}
  20% { transform: translate(-4px, 2px) scale(1.06) rotate(-2deg);}
  40% { transform: translate(4px, -2px) scale(1.06) rotate(-2deg);}
  60% { transform: translate(-2px, 2px) scale(1.06) rotate(-2deg);}
  80% { transform: translate(2px, -2px) scale(1.06) rotate(-2deg);}
  100% { transform: translate(0, 0) scale(1.06) rotate(-2deg);}
}

.kkachili-face.shake {
    animation: shake 0.4s;
}

.keyword{
    text-align: center;
    list-style-type: none;
    padding: 0 45px;
}

.keyword li{
    margin: 0 20px;
    display: inline-block;
    padding: 13px;
    color: white;
    background-color: rgb(99, 30, 93);
    border-radius: 10px;
    width: 200px;
    font-size: 20px;
    white-space:nowrap;
}

.my{
    display: flex;
}

.my img{
    padding: 0px 0px 0px 40px;
    width: auto;
    height: 230px;
}

.card-container {
    width: 90%;
    max-width: 800px;
    margin: auto;
    background-color: rgb(222, 202, 225);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    min-height: 400px;
    box-shadow: 0 6px 24px 0 #0002;
}

.card-slide {
    display: none;
}

.card-slide.active {
    display: block;
}

.card-buttons {
    text-align: center;
    margin-top: 20px;
}

.card-buttons button {
    background-color: #63205d;
    color: white;
    font-size: 16px;
    padding: 10px 25px;
    border: none;
    margin: 25px 0 10px;
    border-radius: 8px;
    cursor: pointer;
}

.card-buttons button:hover {
    background-color: #4e1545;
}


.card-slide h3{
    font-size: 35px;
    margin: 25px 25px;
}

.card-slide p {
    margin: 0px 25px;
    font-size: 25px;
    line-height: 40px;
}

@media screen and (min-width: 910px) and (max-width: 1580px){
    h1 {
      font-size: 70px;
      text-align: center;
    }

    .keyword{
        padding: 0 0;
    }
}

@media screen and (min-width: 0px) and (max-width: 940px){
    h1 {
        font-size: 70px;
        text-align: center;
    }

    .keyword li{
        width: 100px;
        font-size: 13px;
        margin-bottom: 5px;
    }

    .box1, .box2, .box3, .box4 {
        padding: 10px 5px;
        height: 520px;
    }

    .box p {
        font-size: 12px;
        line-height: 18px;
    }

    .my{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .my img{
        padding: 0px 0px 15px 0px;
        width: 70%;
        height: auto;
    }
}

/* ###################### Project 본문 ###################### */

h2{
    color: rgb(39, 24, 66);
    font-size: 30px;
    text-align: center;
}

.date{
    text-align: center;
    margin: -10px 0px 35px;
    font-size: 17px;
}

.web{
    width: 80%;
    display: block;
    margin: auto;
}

.web_project {
    display: flex;
    justify-content: center;
    text-align: center;   
}

.web_project a{
    text-decoration: none;
    color: black;
}

.web_img{
    width: 100%;
    display: flex;
    justify-content: center;
}

.devops{
    width: 80%;
    display: block;
    margin: auto;
}

.web a{
    text-decoration: none;
    color: black;
}

h3{
    color: rgb(39, 24, 66);
    font-size: 25px;
}

.pipeline{
    width: 50%;
    margin: auto;
}

.division{
    display: flex;
    gap: 40px;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2열 고정 */
    gap: 30px;
    justify-items: center;
    position: relative;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 500px;
    height: 450px;
    transition: transform 0.3s ease, z-index 0.3s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.card:hover {
    transform: scale(1.1);
    z-index: 10;
}

.name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 15px;
}

.comment {
    font-size: 16px;
    color: #555;
    padding: 0 10px;
    min-height: 40px;
}

.card img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    border-radius: 15px;
}

@media screen and (min-width: 0px) and (max-width: 910px){
    
    .pipeline{
        width: 80%;
        margin-top: -20px;
    }

    .division{
        flex-direction: column;
    }
}

/* ###################### Team 본문 ###################### */

@media (max-width: 768px) {
    .team-container {
        grid-template-columns: 1fr;
        gap: 20px;
}

.card {
    width: 60vw;
    height: auto;
}

.card:hover {
    transform: scale(1.05); /* 너무 커지면 화면 꽉 차므로 제한 */
}

.name {
    font-size: 18px;
}

.comment {
    font-size: 14px;
}
}

#code img {
  width: 80%;
  max-width: 900px;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

#team a{
    text-decoration-line: none;
    color: black;
}

#team p{
    text-align: center;
    margin-bottom: 50px;
}

#code p{
    text-align: center;
    margin-bottom: 50px;
}

#team p a{
    color: #664479;
    font-weight: bolder;
    background-color: #99efbd;
    padding: 10px 10px;
    border-radius: 5px;
}

#team p a:hover{
    color: #d9aaf5;
}