body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #ff6f61, #de83f5);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    flex-direction: column;
    overflow-y: auto;
    user-select: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2em;
    margin-bottom: 2em;
    position: relative;
}

.registered-company-section {
    width: 100%;
    text-align: center;
}

.registered-company-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

#companyNameDisplay {
    font-size: 2em;
    color: white;
}

.btn.small {
    font-size: 1em;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn.small:active {
    transform: scale(0.95);
}

.btn.small:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.rd-btn {
    font-size: 1.5em;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.rd-btn:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.header {
    text-align: center;
    padding: 1em;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
}

.header p {
    font-size: 1.2em;
    margin-bottom: 2em;
}

.section {
    flex: 1;
    text-align: center;
}

.section h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section h2 .btn.small {
    margin-left: 10px;
}

.quote {
    font-size: 1.2em;
    margin-bottom: 1em;
}

.resources-quote {
    font-size: 1.3em;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resources-quote span {
    margin-left: 10px;
    font-weight: bold;
    color: white;
}

.progress-bar-container {
    width: 60%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 20px auto;
}

#progress-bar {
    width: 0;
    height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-animation 0.5s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes particle-animation {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    width: 30%;
    max-width: 800px;
    color: white;
    text-align: center;
}

.upgrades-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.upgrade-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

.emoji {
    font-size: 4em;
    cursor: pointer;
    user-select: none;
}

.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback {
    position: absolute;
    font-size: 1.5em;
    color: yellow;
    animation: fadeout 1s forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes fadeout {
    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.feedback.money-feedback {
    color: green;
    font-size: 1.2em;
    animation: fadeout-money 1.5s forwards;
}

@keyframes fadeout-money {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#companyNameInput {
    width: 80%;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.btn {
    font-size: 1.2em;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 80%;
}

.btn:active {
    transform: scale(0.95);
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.hidden {
    display: none !important;
}

.fusion-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.fusion-slot {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
}

.fusion-slot:hover {
    background: rgba(255, 255, 255, 0.7);
}

#challengeTimer {
    font-size: 1.2em;
    color: yellow;
}

textarea#feedbackInput {
    width: 80%;
    height: 100px;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: none;
}
