@charset "UTF-8";

/* 모바일 경고 메시지 */
.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.warning-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.warning-content h3 {
    color: #e74c3c;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.warning-content p {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.warning-close-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.warning-close-btn:hover {
    background-color: #c0392b;
}

/* 모바일에서 경고 메시지 표시 */
@media screen and (max-width: 768px) {
    .mobile-warning {
        display: flex;
    }
}

/* 타이포지그라피 게임 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

.game1_body {
    font-family: 'Nunito', 'Malgun Gothic', sans-serif;
    margin: 0;
    overflow: hidden;
    position: relative;
    min-width: 100%;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="none" stroke="black" stroke-width="2"/><circle cx="10" cy="10" r="2" fill="black"/></svg>') 10 10, auto;
}

#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

#popup button {
    margin-top: 30px;
}

#popup p {
    margin: 10px 0;
}

.insta-link {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.insta-link a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s;
}

.insta-link a:hover {
    transform: scale(1.1);
}

#controls {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid #333;
    backdrop-filter: blur(10px);
    text-align: center;
}

#wordInput {
    width: 300px;
    margin: 0 auto 10px auto;
    display: block;
    font-family: 'Nunito', sans-serif;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#wordInput::placeholder {
    color: #666;
    font-style: italic;
}

#fontSelect {
    background: white;
    border: 3px solid #333;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 2px 2px 0px #333;
    transition: all 0.2s;
}

#fontSelect:hover {
    transform: translateY(-1px);
    box-shadow: 3px 3px 0px #333;
}

.control-btn {
    font-family: 'Nunito', sans-serif;
    margin: 0 5px;
}

#canvas {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.word {
    position: absolute;
    cursor: move;
    user-select: none;
    white-space: nowrap;
    font-weight: bold;
    transition: transform 0.1s ease;
    color: #333;
}

.word:hover {
    transform: scale(1.05);
}

.resize-handle {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #333;
    border: 2px solid white;
    border-radius: 50%;
    cursor: se-resize;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rotate-handle {
    position: absolute;
    top: -15px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #666;
    border: 2px solid white;
    border-radius: 50%;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rotate-handle:active {
    cursor: grabbing;
}

.word:hover .resize-handle,
.word:hover .rotate-handle {
    opacity: 0.9;
}

.info-text {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: rgba(255,255,255,0.95);
    padding: 15px 25px;
    border-radius: 25px;
    border: 3px solid #333;
    box-shadow: 2px 2px 0px #333;
    backdrop-filter: blur(10px);
    text-align: center;
    word-break: keep-all;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
    #popup {
        font-size: 16px;
        padding: 20px;
    }
    
    #wordInput {
        width: 250px;
    }
    
    #controls {
        padding: 15px 20px;
        bottom: 60px;
    }
    
    .info-text {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 480px) {
    #popup {
        font-size: 14px;
    }
    
    #wordInput {
        width: 200px;
    }
    
    .buttons-row {
        flex-direction: column;
        gap: 5px;
    }
} 