/* font */
@font-face {
    font-family: 'HakgyoansimDunggeunmisoTTF-B';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimDunggeunmisoTTF-B.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Galmuri7';
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri7/Galmuri7.woff2') format('woff2');
}

/* 모든 요소의 기본 여백 제거 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* HTML과 Body의 기본 설정 */
html, body {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    /* 숫자 드래그 방지 */
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none
}

/* 마우스 이벤트 처리를 위한 frame */
.frame {
    width: 400px;
    height: 600px;
    transition: transform 200ms;
    border-radius: 50px;
}

.frame:hover {
    transform: scale3d(1.05, 1.05, 1.05);
}

/* 빛 */
.light {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    top: 0;
    left: 0;
    pointer-events: none;  /* 클릭 방지 */
}

/* -------------컨테이너 스타일------------- */
.calculator-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #c8e5f8 60%,
        #a1d8f0 100%
    );
    padding: 30px 20px;
    border-radius: inherit;
    box-shadow: 0 0 10px 2px rgba(0,0,0,0.2);
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.display-container {
    width: 100%;
    height: 15%;
    background-color: #999998;
    border-radius: 20px;
    box-shadow: 0 5px 10px 3px rgba(0,0,0,0.6) inset;

    padding: 0 20px;
    color: #000;
    font-size: 32px;
    overflow-x: hidden;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    font-family: 'Galmuri7';
}

.buttons-container {
    width: 100%;
    height: 77%;
    font-size: 20px;
    box-shadow: 0 0 10px 3px rgba(0,0,0,0.1) inset;
    border-radius: 20px;
    padding: 10px 10px 20px 20px;

    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* -------------버튼들 스타일------------- */
.button {
    display: flex;
    border: 0;
    box-shadow: -7px 7px 0px 2px rgba(0,0,0,0.2);
    border-radius: 50%;
    color: #555;

    flex: 1 1 20%;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;

    font-family: 'HakgyoansimDunggeunmisoTTF-B';
}

.button:active {
    position: relative;
    top: 4px;
    right: 4px;
}

.line1 {
    background-color: #FEE1E8;
    box-shadow: -7px 7px 0px 2px #E5CBD1;
}
.line1:hover {
    background-color: #F1D6DC;
}
.line1:active{
    box-shadow: -4px 4px 0px 0.5px #E5CBD1;
}

.line2 {
    background-color: #F6EAC2;
    box-shadow: -7px 7px 0px 2px #DDD3AF;
}
.line2:hover {
    background-color: #EADDB8;
}
.line2:active{
    box-shadow: -4px 4px 0px 0.5px #DDD3AF;
}

.line3 {
    background-color: #CCE2CB;
    box-shadow: -7px 7px 0px 2px #B8CBB7;
}
.line3:hover {
    background-color: #C2D7C1;
}
.line3:active{
    box-shadow: -4px 4px 0px 0.5px #B8CBB7;
}

.line4 {
    background-color: #E0DBEF;
    box-shadow: -7px 7px 0px 2px #CAC5D7;
}
.line4:hover {
    background-color: #D5D0E3;
}
.line4:active{
    box-shadow: -4px 4px 0px 0.5px #CAC5D7;
}

.line5 {
    background-color: #F1F4FB;
    box-shadow: -7px 7px 0px 2px #D9DCE2;
}
.line5:hover {
    background-color: #E5E8EE;
}
.line5:active{
    box-shadow: -4px 4px 0px 0.5px #D9DCE2;
}

.zero {
    flex-basis: 47%;
    border-radius: 35px;
}
