@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom right, #000000, #0d0d0d, #262626);
    background-size: 400% 400%;
    animation: backgroundAnimation 10s ease infinite;
    color: #f39c12;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

@keyframes backgroundAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

.container {
    padding: 20px;
    text-align: center;
    background: rgba(44, 62, 80, 0.85);
    border: 2px solid #e67e22;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1000px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: filter 0.3s ease;
}

.container.blur-background {
    filter: blur(8px);
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #f39c12;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.intro-text {
    color: #e67e22;
    font-size: 1.2rem;
    margin: 20px 0;
    line-height: 1.4;
}

.button-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 20px 0;
}

.custom-button {
    padding: 15px;
    font-size: 1rem;
    background-color: #2c3e50;
    color: #ecf0f1;
    border: 2px solid #e67e22;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 5px;
    outline: none;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.custom-button:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.custom-button:active {
    transform: translateY(0);
}


.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
}

.custom-modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - 1rem);
}

.custom-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    pointer-events: auto;
    background-clip: padding-box;
    border-radius: 0.3rem;
    outline: 0;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    background-color: #1c2833;
    color: #f39c12;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #e67e22;
    animation: zoomIn 0.5s ease forwards;
}

@keyframes zoomIn {
    from { transform: scale(1.1); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.custom-modal-header,
.custom-modal-body {
    padding: 15px;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e67e22;
}

.custom-modal-title {
    margin: 0;
    line-height: 1.5;
}

.custom-close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    background: none;
    border: 0;
    cursor: pointer;
    color: #f39c12;
    font-size: 1.5rem;
}

.custom-close:hover {
    color: #e67e22;
}

.custom-modal-body {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 150px);
}

.custom-modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.custom-modal-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-modal-body {
    scroll-behavior: smooth;
}

.line-separator {
    display: block;
    width: 100%;
    margin: 10px 0;
    border-top: 1px solid #e67e22;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #f39c12;
    font-size: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .custom-button {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .button-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }

    .custom-button {
        margin-bottom: 0;
        flex: 1;
    }

    .button-container .custom-button + .custom-button {
        margin-left: 10px;
    }
}
