.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    z-index: 1000;
    margin-top: 10px;
    animation: fadeInZoom 0.1s ease-in-out;
    cursor: url("images/cursor_default.png"), auto;
}

.modal-content {
    font-family: "beaufort";
    font-weight: bold;
    background-color: #010A13;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 500px;
    min-height: 100px;
    overflow: hidden;
    position: relative;
    width: 300px;
}

#modal-instruction {
    font-size: 30px;
    margin-top: 3px;
    color: #F0E6D2;
    font-family: "beaufort";
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}


.rule-container {
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
    color: #F0E6D2;
}

.rule-title {
    font-size: 18px;
    color: #C89B3C;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.rule-description {
    font-size: 14px;
    color: #f0e6d2a2;
    line-height: 1.4;
}

.start-button {
    background-color: #1E2328;
    border: 2px solid #C8AA6E;
    color: #C8AA6E;
    padding: 10px 20px;
    font-family: "beaufort";
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 35px;
    transition: background-color 0.2s;
}

.start-button:hover {
    background-color: #C8AA6E;
    color: #1E2328;
    cursor: url("images/cursor_hover.png"), auto;
}

.modal.closing {
    animation: zoomOut 0.15s ease-in-out forwards;
    pointer-events: none;
}


.countdown {
  font-size: 50px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
  color: #C8AA6E;
}