@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom, #0a1128, #1a2847, #0a1128);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    font-family: sans-serif;
    overflow-x: hidden;
}

.wrapper {

    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

.hero {
    display: flex;
    flex-direction: column;
    max-height: 100dvh;
    gap: 0.5rem;
    padding-bottom: 0.5rem
}

.header {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.1rem;
    padding: 0.5rem 0 0 0;
}

.logo {
    font-family: "Bungee", sans-serif;
    background: linear-gradient(to right, #00ff87, #60efff, #00ff87);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    font-weight: 700;
}

.slogan-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.slogan {
    color: rgba(0, 255, 135, 0.8)
}

.data {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: rgba(10, 17, 40, 0.8);
    border: 2px solid rgba(0, 255, 135, 0.15);

}

.data p {
    margin: 0;
    font-size: clamp(0.9rem, 1.5vw, 0.9rem);
    line-height: 1.2;
}

.activity-label {
    color: #00f5a0;
    font-weight: 600;
}

.activity-container, .kp-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kp-value p {
    align-self: center;
}

.globe-container {
    position: relative;
    flex: 1 1 auto;
    max-height: 65vh;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 135, 0.2);
}

#globeViz {
    width: 100%;
    height: 100%;
}

.map-warning {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 75, 75, 0.95);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-size: 0.9em;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
    transition: opacity 0.3s ease;
}

.map-warning.hidden {
    opacity: 0;
    pointer-events: none;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: inherit;
}


.buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 0.75rem;
    border-radius: 0.75rem;

    background-color: rgba(10, 17, 40, 0.8);
    border: 2px solid rgba(0, 255, 135, 0.15);
}

.button-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.manage-alerts-button {
    text-align: center;
    padding: 0.6rem 0.75rem;
    width: 8em;
    border: 1px solid rgba(0, 255, 135, 0.25);
    border-radius: 0.5rem;
    color: #cfd8dc;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.manage-alerts-button:hover {
    color: #00f5a0;
    background-color: rgba(0, 245, 160, 0.08);
    border-color: rgba(0, 255, 135, 0.5);
}

.manage-alerts-button:focus-visible {
    outline: 2px solid #00f5a0;
    outline-offset: 3px;
}

.sub-button {
    text-align: center;
    padding: 0.6rem 0.75rem;
    text-decoration: none;
    width: 8em;

    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;

    background-color: rgba(0, 245, 160, 0.8);
    color: #0a1128;

    box-shadow:
            0 0 6px rgba(0, 255, 160, 0.4),
            0 0 12px rgba(0, 255, 160, 0.2);

    padding: 0.6rem 1rem;
    border-radius: 0.5rem;

    cursor: pointer;
}


.sign-up-container {
    flex: 1;
    min-width: 12rem;

    display: flex;
    flex-direction: column;
    gap: 0.15rem;

    color: #cfd8dc;
}

.sign-up-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #00f5a0;
}

.sign-up-sub {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.2;
}

.buttons p {
    margin: 0;
    font-size: clamp(0.9rem, 1.5vw, 0.9rem);
    line-height: 1.2;
}



.sub-button:hover {
    filter: brightness(1.05);
    cursor: pointer;
}

.sub-button:active {
    transform: scale(0.97);
}

.info {
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: rgba(26, 40, 71, 0.5);
    border: 2px solid rgba(0, 255, 135, 0.1);
    color: #cfd8dc;
    font-weight: 400;
    line-height: 1.6;
}

.info ol {
    display: flex;
    flex-direction:  column;
    gap: 1rem;
    list-style: decimal inside;
}

.paragraphBox {
    display: flex;
    flex-direction: column;
}

.info h3,
.data h3,
.data span {
    color: #00f5a0;
    font-weight: 600;
}

.data p, .data span, .data h3 {
    align-self: center;
}

.kp-green {
    color: #2ecc71;
}

.kp-yellow {
    color: #f1c40f;
}

.kp-orange {
    color: #e67e22;
}

.kp-red {
    color: #e74c3c;
}

.kp-purple {
    color: #8e44ad;
    font-weight: bold;
}


@media (max-width: 768px) {

    .wrapper {
        padding: 0 1rem 2rem 1rem;
    }
}


@media (max-width: 600px) {
    .button-actions {
        flex-direction: column;
        align-self: end;
    }

}

@media (max-width: 500px) {
    .logo {
        font-size: 2rem;
    }
    .kp-value span {
        align-self: start;
    }
    .data p {
        align-self: start;
    }
    .activity-container, .kp-value {
        flex-direction: column;
    }
}

@media (max-width: 375px) {

    .sub-button, .manage-alerts-button{
        flex: 1;
    }

    .button-actions {
        width: 100%;
        flex-direction: row;
    
    }
}

