body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* PC에서 중앙 정렬을 위해 100vh 사용 */
    margin: 0;
    background-color: #f4f4f9;
}

.container {
    width: 70%;
    max-width: 500px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.sidebar {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: sticky;
    top: 0;
}

.left {
    margin-right: 10px;
}

.right {
    margin-left: 10px;
}

.ad-block {
    width: 100%;
    height: auto;
}


h1 {
    margin: 10px 0 10px 0; /* 상단 여백 추가로 제목이 잘리지 않도록 조정 */
    font-size: 1.5rem; /* 제목 크기를 조금 줄여서 작은 화면에서도 보이게 조정 */
}

/* Gradient Picker Style */
.gradient-picker {
    width: 90%;
    height: 100px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: crosshair;
}


#pickedColorCode {
    font-weight: bold;
    margin-top: 5px;
}

/* Selected Color Preview */
.color-preview {
    width: 90%;
    height: 50px;
    margin: 5px auto; /* 수평 가운데 정렬 */
    border-radius: 5px;
}

.input-group {
    margin-top: 10px;   
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"] {
    width: 80%; /* Adjust width based on the button size */
    padding: 10px;
    font-size: 1rem;
    box-sizing: border-box;
}

button {
    padding: 12px 20px; /* 위, 아래 패딩과 좌우 패딩 조정 */
    font-size: 1rem;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 80%; /* 버튼의 가로 길이를 인풋 필드와 맞추어 넓게 설정 */
    box-sizing: border-box;
    transition: background-color 0.3s;
    margin-top: 5px; /* 버튼 위쪽 간격 추가 */
}

button:hover {
    background-color: #0056b3;
}

/* Magnifier style */
#magnifier {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}


.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f1f1f1;
    color: #333;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}



@media (max-width: 768px) {
    .sidebar {
        display: none;  /* 모바일에서는 사이드바 숨기기 */
    }

    body {
        height: auto; /* 모바일에서는 스크롤을 허용 */
        min-height: 100vh;
        align-items: flex-start; /* 모바일에서 상단부터 배치 */
    }

    .container {
        width: 90%; /* 모바일에서 너비 조정 */
        max-width: 100%;
        margin: 20px 0;
    }
}