/* logicgamestyles.css */
@import url('https://fonts.googleapis.com/css2?family=Dongle:wght@300&family=Gamja+Flower&family=Gowun+Dodum&display=swap');
/* 기본 스타일 */
body {
    font-family: "Gowun Dodum", sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #333;
}

.sequence {
    font-size: 24px;
    margin: 20px 0;
    padding: 10px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 5px;
    position: relative;
    display: inline-block; /* 크기를 텍스트에 맞춤 */
}

/* 시퀀스 내의 아이콘 스타일링 */
.question-icon {
    font-size: 24px; /* 아이콘 크기 */
    color: #FF5722; /* 아이콘 색상 */
    margin: 0 10px; /* 좌우 간격 */
    transition: transform 0.3s ease;
}

.question-icon:hover {
    transform: scale(1.2); /* 호버 시 크기 확대 */
}

/* 선택지 버튼 스타일링 */
.option-button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    background-color: #2196F3; /* 파란색 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.option-button:hover {
    background-color: #1976D2; /* 파란색 호버 시 어둡게 */
}

/* 입력 필드 스타일링 */
input[type="number"],
input[type="text"] {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    margin-bottom: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    opacity: 0.8;
}

/* 버튼 색상 */
#submitAnswerButton {
    background-color: #4CAF50; /* 녹색 */
    color: white;
}

#saveRecordButton {
    background-color: #2196F3; /* 파란색 */
    color: white;
}

#viewRecordsButton {
    background-color: #FF9800; /* 주황색 */
    color: white;
}

#closeRecordsButton {
    background-color: #9E9E9E; /* 회색 */
    color: white;
}

/* 기록 보기 섹션 스타일 */
#recordSection {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* 오버레이보다 위에 표시 */
    width: 90%;
    max-width: 600px;
    display: none; /* 초기 숨김 상태 */
}

#recordSection table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#recordSection th,
#recordSection td {
    border: 1px solid #ddd;
    padding: 8px;
}

#recordSection th {
    background-color: #f2f2f2;
    color: #333;
}

/* 오버레이 스타일 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none; /* 초기 숨김 상태 */
}

/* 이름 입력 폼 스타일 */
#name-form {
    display: none; /* 초기 숨김 상태 */
    position: fixed;
    top: 15%; /* 상단에서 15% 위치로 변경 */
    left: 50%;
    transform: translate(-50%, -15%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* 오버레이보다 위에 표시 */
    width: 80%;
    max-width: 400px;
    text-align: center;
}

#name-form h2 {
    margin-top: 0;
    color: #333;
}

#name-form p {
    margin: 15px 0;
    color: #555;
}

/* 버튼 그룹 스타일 */
.button-group {
    display: flex;
    justify-content: center;
    gap: 10px; /* 버튼 간 간격 */
    margin-top: 20px;
}

#name-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#saveNameButton {
    background-color: #4CAF50; /* 녹색 */
    color: white;
}

#goBackButton {
    background-color: #f44336; /* 빨간색 */
    color: white;
}

/* 모바일 환경 대응 */
@media (max-width: 600px) {
    #name-form {
        top: 10%; /* 더욱 상단으로 위치 조정 */
        transform: translate(-50%, -10%);
        width: 90%;
        max-width: 300px;
    }

    .sequence {
        font-size: 20px;
    }

    input[type="number"],
    input[type="text"] {
        width: 80%;
    }

    button {
        width: 100%;
        margin: 10px 0;
    }

    .button-group {
        flex-direction: column;
    }
        .option-button {
        width: 100%; /* 모바일에서 버튼을 전체 너비로 확장 */
    }

}
