@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

* {
    padding: 0;
    margin: 0;
}

:root {
    --primary-color: #E4005B;
    --font-family: 'Montserrat', sans-serif;
    --video-width: 560px;
    --swiper-theme-color: #000;
}

body {
    background: #111827;
    font-family: var(--font-family);
    overflow-x: hidden;
}

i {
    padding: 0 5px;
    font-size: inherit;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 300px;
    padding: 10px 0;
}


#gauge {
    width: 1000px;
    height: 600px;
    opacity: 0;
}

#gauge.show {
    opacity: 1;
    transition: opacity 0.6s linear;
}

#gauge.reset {
    opacity: 0;
    transition: opacity 0.6s linear;
}

#startStopBtn {
    display: inline-block;
    width: 100px;
    height: 100px;
    font: 18px/100px var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.1px;
    color: #fff;
    text-align: center;
    font-weight: bold;
    border-radius: 50%;
    border: 0.15em solid var(--primary-color);
    animation: shadow-pulse 1s 10;
    cursor: pointer;
    transform: translateY(-40vh);
}

#startStopBtn.running {
    background-color: #E4005B;
    border-color: #E4005B;
    color: #FFFFFF;
    animation: shadow-pulsered 1s infinite;
    transform: translateY(-10vh);
    transition: transform ease-out 0.6s;
}

#startStopBtn:before {
    content: "Iniciar";
}

#startStopBtn.running:before {
    content: "Parar";
}

#startStopBtn.reset {
    transform: translateY(-50vh);
    transition: transform ease-out 0.6s;
}

.ip {
    transform: translateY(-10vh);
    color: white;
    opacity: 0;
}

.show {
    opacity: 1;
    transition: opacity 0.6s linear;
}

.ipv6 {
    color: greenyellow
}

/* Modal de Localização */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: #1f2937;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #c4004b);
    color: white;
    padding: 24px 24px 20px 24px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.modal-header i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.modal-body {
    padding: 24px;
    color: #e5e7eb;
    line-height: 1.6;
}

.modal-body p {
    margin: 0 0 16px 0;
    font-size: 15px;
}

.modal-body ul {
    margin: 16px 0;
    padding-left: 20px;
}

.modal-body li {
    margin: 8px 0;
    font-size: 14px;
    color: #d1d5db;
}

.benefits {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.benefit-item span {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

.modal-note {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0 0 0;
    font-size: 13px;
    color: #93c5fd;
    text-align: center;
}

.modal-footer {
    padding: 0 24px 24px 24px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #c4004b);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(228, 0, 91, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(228, 0, 91, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    font-size: 14px;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 0 20px 20px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

.box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border-radius: 5px;
    background: #324161;
    padding: 15px 5px 5px 5px;
    box-shadow: 0 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
    margin: 5px 20px 5px 20px;
    opacity: 0;
    transform: translateY(-10vh);
}

.id {
    padding: 5px;
    color: white;
}

.show {
    opacity: 1;
    transition: opacity 0.6s linear;
}

.result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.header {
    display: flex;
    font-size: 14px;
}

.header>i {
    color: rgb(0, 217, 255);
    padding-right: 8px;
}

.content span {
    position: relative;
    align-self: flex-end;
    padding-left: 2px;
    font-size: 11px;
    font-weight: 700;
    color: gray;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    font-size: 20px;
    font-weight: 400;
}

.finish {
    transform: translateY(-45vh);
    transition: transform ease-out 0.6s;
}

.show-video {
    transform: translateY(-48vh);
    transition: transform ease-out 0.6s;
}

@media screen and (max-width: 768px) {
    #gauge {
        width: 500px;
        height: 300px;
    }

    .result {
        padding: 5px 20px;
    }
    #startStopBtn.reset {
        transform: translateY(-45vh);
        transition: transform ease-out 0.6s;
    }
}


@media screen and (min-width: 768px) {
    .finish {
        transform: translateY(-40vh);
    }
    
    .show-video {
        transform: translateY(-42vh);
    }
}

@keyframes shadow-pulse {
    0% {
        box-shadow: 0 0 0 0px var(--primary-color);
    }

    100% {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
}

@keyframes shadow-pulsered {
    0% {
        box-shadow: 0 0 0 0px #E4005B;
    }

    100% {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
}