body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header img {
    width: 200px;
    margin: 0;
    padding: 0;
}

.logo a {
    text-decoration: none;
    color: #333;
}

.nav-links {
    margin-left: 20px;
}
.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #4769fc;
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: #4769fc;
}
.nav-links a:hover::after {
    width: 100%;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 16px;
}

form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

form input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.agree-label {
    display: inline-block;
    font-size: 16px;
    color: #555;
    font-family: Arial, sans-serif;
    margin: 2px 0;
    position: absolute;
}

.agree-label a {
    color: #777;
    text-decoration: none;
}

.agree-label a:hover {
    color: #999;
    text-decoration: underline;
}

form input[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #4e4e4e;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

form input[type="submit"]:hover {
    background-color: #7e7e7e;
}

.message-box {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    display: block;
    min-height: 100px;
    max-width: 100%;
    position: relative;
}

.message-box h3 {
    font-size: 18px;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
}

.message-box textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    resize: none;
    border: none;
    outline: none;
    background-color: transparent;
    color: #333;
    height: 150px;
}

/* Different color styles */
.white { background-color: #fff; }
.green { background-color: #A8E6A1; }
.blue { background-color: #A7D8F3; }
.yellow { background-color: #F9ECA1; }
.pink { background-color: #F5A3B7; }
.purple { background-color: #D0A4E3; }
.orange { background-color: #F6C5A6; }
.red { background-color: #F3A4A1; }
.teal { background-color: #A7D8D8; }
.brown { background-color: #E6C9A3; }
.grey { background-color: #D1D1D1; }

.char-counter {
    font-size: 12px;
    color: #888;
    text-align: right;
    position: relative;
    bottom: 20px;
}

.footer-bottom {
    text-align: center;
    margin: 20px 0;
    color: #000;
}
.footer-bottom a {
    color: #777;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #999;
}

#previewName {
    display: inline-block;
    width: 720px;
}

#previewName {
    outline: none;
}
#legal-footer {
    color: black;
    margin-top: -10px;
}

#legal-footer a {
    color: gray;
    text-decoration: none;
}

#legal-footer a:hover {
    color: #a9a9a9;
    text-decoration: underline;
}

#social-footer {
    font-size: 20px;
    margin-top: -10px;
}

#social-footer a {
    color: gray;
    text-decoration: none;
}

#social-footer a:hover {
    color: #a9a9a9;
}

.success-submitted {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000000000;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
    width: 100%;
    opacity: 0;
    animation: fadeInOut 3s ease forwards;
}

.success-submitted h1 {
    margin: 0;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #008000;
}

.success-submitted p {
    margin: 0;
    font-size: 1rem;
}

.unsuccess-submitted {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000000000;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    opacity: 0;
    animation: fadeInOut 3s ease forwards;
}

.unsuccess-submitted h1 {
    margin: 0;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #721c1c;
}

.unsuccess-submitted p {
    margin: 0;
    font-size: 1rem;
}

.checkmark-container {
    width: 50px;
    height: 50px;
    margin-top: 20px;
    position: relative;
    display: inline-block;
}

svg {
    width: 100%;
    height: 100%;
}

.circle {
    stroke: green;
    stroke-width: 5;
    fill: none;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    animation: drawCircle 1s ease forwards;
}

.checkmark {
    stroke: green;
    stroke-width: 5;
    fill: none;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    animation: drawCheck 0.5s ease 1s forwards;
}

@keyframes drawCircle {
    from { stroke-dashoffset: 314; }
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    from { stroke-dashoffset: 70; }
    to { stroke-dashoffset: 0; }
}

.x-icon, .circle-unsuccess, .x-line {
    stroke: #721c1c;
}

.circle-unsuccess {
    stroke-dasharray: 295;
    stroke-dashoffset: 295;
    animation: drawCircle 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: stroke 0.3s ease;
}

@keyframes drawCircleUnsuccess {
    0% {
        stroke-dashoffset: 295;
        transform: rotate(0deg);
    }
    50% {
        stroke-dashoffset: 295;
        transform: rotate(180deg);
    }
    100% {
        stroke-dashoffset: 0;
        transform: rotate(180deg);
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.milestone-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    text-align: center;
    animation: slideUp 0.5s ease-out forwards;
    border: 2px solid #FFD700;
}

.milestone-toast.hide {
    animation: slideDown 0.5s ease-in forwards;
}

.milestone-content span {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.milestone-content p {
    margin: 5px 0 0;
    font-size: 1em;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translate(-50%, 0); opacity: 1; }
    to { transform: translate(-50%, 100px); opacity: 0; }
}

@media only screen and (max-width: 768px) {
    .logo {
        display: none;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-links a {
        font-size: 12px;
        margin: 0 10px;
    }

    #previewName {
        width: 265px;
    }
}

#announcement-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 45, 66, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    animation: overlayFadeIn 0.4s ease-out;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

#announcement-popup {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: popupSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    margin: auto;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideIn {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.announcement-header {
    background: linear-gradient(135deg, #2b2d42, #393b5a);
    padding: 25px 20px;
    text-align: center;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.announcement-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.announcement-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.announcement-icon svg {
    width: 30px;
    height: 30px;
    fill: #E9D502;
}

.announcement-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.announcement-content {
    padding: 25px 20px;
}

.announcement-text {
    color: #2b2d42;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.announcement-text strong {
    color: #2b2d42;
    font-weight: 600;
}

.violation-list {
    background: linear-gradient(135deg, #fff5f5, #fef2f2);
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.violation-list h4 {
    color: #dc2626;
    font-size: 14px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.violation-list ul {
    margin: 0;
    padding-left: 18px;
    color: #991b1b;
}

.violation-list li {
    margin-bottom: 6px;
    font-size: 13px;
}

.consequences {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 3px solid #E9D502;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.consequences h4 {
    color: #d97706;
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.consequences p {
    color: #92400e;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.acknowledge-section {
    text-align: center;
    margin-top: 25px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(43, 45, 66, 0.1);
    border-radius: 2px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2b2d42, #393b5a);
    width: 0%;
    border-radius: 2px;
    animation: progressFill 30s linear;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

#acknowledge-button {
    background: #9ca3af;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    min-width: 180px;
    font-family: inherit;
}

#acknowledge-button.ready {
    background: #2b2d42;
    cursor: pointer;
    animation: buttonReady 0.4s ease-out;
}

@keyframes buttonReady {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#acknowledge-button:hover.ready {
    background: #393b5a;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(43, 45, 66, 0.3);
}

.countdown-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #announcement-overlay {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    #announcement-popup {
        max-width: 100%;
        max-height: calc(100vh - 80px);
    }

    .announcement-header {
        padding: 20px 15px;
    }

    .announcement-content {
        padding: 20px 15px;
    }

    .announcement-title {
        font-size: 20px;
    }

    .announcement-text {
        font-size: 13px;
    }

    .violation-list, .consequences {
        padding: 12px;
        margin: 12px 0;
    }

    .violation-list h4, .consequences h4 {
        font-size: 13px;
    }

    .violation-list li {
        font-size: 12px;
    }

    .consequences p {
        font-size: 12px;
    }

    #acknowledge-button {
        padding: 10px 25px;
        font-size: 13px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    #announcement-overlay {
        padding: 10px;
        padding-top: 30px;
    }

    .announcement-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .announcement-icon svg {
        width: 25px;
        height: 25px;
    }

    .announcement-title {
        font-size: 18px;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounceArrow 2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.scroll-text {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-5px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 10px;
    }

    .scroll-arrow {
        width: 16px;
        height: 16px;
        border-width: 1.5px;
    }

    .scroll-text {
        font-size: 10px;
    }
}