#wrapper{
    width: 800px;
    height: 700px;
    background-color: gray;
    margin: auto;
}
#aside{
    width: 300px;
    height: 100%;
    background-color: black;
    float: left;
    position: relative;
}
#hold, #data{
    border: 1px solid white;
    position: absolute;
    width: 200px;
    text-align: center;
    color: white;
    left: 15%;
    border-radius: 30px;
    top: 5%;
}
#hold div{
    width: 170px;
    height: 180px;
    background-color: rgb(255, 255, 255, 0.3);
    border-radius: 30px;
    margin: auto;
    margin-bottom: 10px;
}
#data{
    top: 47%;
}
#data span{
    display: inline-block;
    width: 175px;
    height: 50px;
    background-color: rgb(255, 255, 255, 0.3);
    border-radius: 30px;
    margin-bottom: 5px;
    font-size: 20px;
    line-height: 50px;
}

#aside button{
    width: 240px;
    height: 50px;
    border-radius: 30px;
    background-color:snow;
    position: absolute;
    left: 25px;
    top: 87%;
    font-size: 20px;
    font-style: bold;
    padding: 15px 25px;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 9px #999;
}
@keyframes ripple-out{
    0%{
        opacity: 1;
    }
    100%{
        top: -15px;
        right: -15px;
        bottom: -15px;
        left: -15px;
        opacity: 0;
    }
}
#aside button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 0, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
  opacity: 0;
}

#aside button:hover::before {
  width: 300px;
  height: 300px;
  opacity: 1;
}

#aside button:hover{
    background-color:cornflowerblue;
    color: #fff;
}

#aside button:active{
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

#aside a{
    text-decoration: none;
    font-size: 15px;
    color: white;
    position: absolute;
    top: 96%;
    left: 82%;
}
#aside a:hover{
    color:red;
}

#content{
    width: 500px;
    height: 100%;
    background-color: silver;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
}
#gameContainer{
    position: relative;
    width: 304px;
    height: 604px;
    border: 2px solid #000;
    background-color:#eee;
}
#gameBoard{
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(20, 30px);
    gap: 0px;
}
.grid-cell{
    width: 30px;
    height: 30px;
    background-color: #eee;
    border: 1px solid #ddd;
}
/* modal */
.modal {
    display: none;
    position: fixed; /* position absolute → fixed로 수정 */
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    padding-top: 60px;
    backdrop-filter: blur(3px);
}

.modalContent {
    background-color: #1e1e1e;
    color: #f1f1f1;
    margin: auto;
    padding: 30px 40px;
    border: 1px solid #333;
    border-radius: 12px;
    width: 600px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

.modalContent h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.modalContent h2 {
    font-size: 20px;
    margin-top: 20px;
    color: #00bcd4;
}

.modalContent h3 {
    font-size: 16px;
    margin: 8px 0;
    color: #cccccc;
}