* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
     padding: 2rem; 
     background-color: #050505; 
     line-height: 1.6;
     margin: 0;
     padding: 0;
    }

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
    
    /* Cada box ocupa 48% no desktop */
.box {
    flex: 1 1 48%;
    background: #fff;
    color: #000;
    padding: 1rem;
    border-radius: 8px;
    min-width: 300px;
}
    
    /* No celular, coloca um embaixo do outro */
    @media (max-width: 767px) {
        .box {
            flex: 1 1 100%;
        }
    }
    

h1 {
    width: 70%;
    margin: auto;
    text-align: center;
    color: #ec3232;
    font-size: 1.5rem;
}

.form-group { 
    margin-bottom: 1rem; 
}
label { 
    display: block; 
    margin-bottom: 0.3rem; 
}

.preview-img { 
    margin-top: 1rem; 
    max-width: 30%; 
    display: none; 
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

input, select, textarea {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}
input:focus, select:focus {
    border-color: #007bff;
    outline: none;
}

header {
    background: linear-gradient(45deg, #b60d0d, #000000);
    background-size: 200% 200%;
    animation: breatheAnimation 7s ease-in-out infinite;
    color: rgb(0, 0, 0);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin: 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, transparent 49%, #ff000033 50%, transparent 51%, transparent 100%) 0 0 / 30px 100%,
        linear-gradient(0deg, transparent 0%, transparent 49%, #ff000033 50%, transparent 51%, transparent 100%) 0 0 / 100% 30px;
    animation: circuit 4s linear infinite;
    z-index: 0;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, #ff0000 0%, #ff0000 5%, transparent 6%, transparent 100%) 0 0 / 30px 30px,
        radial-gradient(circle at 50% 50%, #ff0000 0%, #ff0000 5%, transparent 6%, transparent 100%) 15px 15px / 30px 30px;
    animation: dots 3s linear infinite;
    z-index: 0;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}



@keyframes circuit {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 30px 0, 0 30px;
    }
}

@keyframes dots {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

.logo {
    max-width: 200px;
    margin: 0.85rem;
    filter: drop-shadow(0 0 5px white) drop-shadow(0 0 5px white);
    transition: filter 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 10px;
}

.logo:hover {
    filter: drop-shadow(0 0 8px white) drop-shadow(0 0 8px white);
}

footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
}
  



h2 {
    color: #000000;
    margin-bottom: 1rem;
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}



label {
    font-size: 14px; /* Reduz o tamanho da fonte dos rótulos do formulário */
}

/* Make container responsive instead of fixed percentage */


/* Media query for tablets and larger screens */
@media (min-width: 768px) {
    .container {
        max-width: 80%;
    }
}

/* Media query for desktops */
@media (min-width: 992px) {
    .container {
        max-width: 60%;
    }
}

/* Media query for large desktops */
@media (min-width: 1200px) {
    .container {
        max-width: 40%;
    }
}

/* Make sure images are responsive */
img {
    max-width: 100%;
    height: auto;
}



/* Improve form layout on mobile */
@media (max-width: 767px) {
    /* Stack form elements on mobile */
    div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    div[style*="flex: 1"] {
        width: 100% !important;
    }


    /* Adjust text sizes for mobile */
    h2 {
        font-size: 1.5rem;
        width: 100%;
    }

    label {
        font-size: 14px;
    }
}

.preview-img {
    display: none;
    max-width: 200px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
  }
  
  .hidden {
    display: none;
  }
  .alert {
    margin: 10px;
    padding: 15px;
    border-radius: 6px;
  }

  button[type="submit"]:hover {
    background-color: #ec3232;
    color: white;
    transition: 0.3s ease-in-out;
}

.btn-danger {
    background-color: #ec3232;
    border: none;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.btn-danger:hover {
    background-color: #c82323;
    color: white;
}
nav {
    padding: 10px 20px;
    width: 100%;
    position: relative;
    z-index: 100;
    margin: 0;
    border: none;
    background-color: black;
  }
  
  nav a:hover {
    color: #ff0000 !important;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  }
  
  .navbar-toggler {
    background-color: #f7f4f4;
    border-color: #f7f4f4;
    border-radius: 5px;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
  nav a {
    color: white !important;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
    padding: 5px 10px;
    display: inline-block;
    transition: color 0.3s ease;
  }

  .alert {
    margin: 20px auto;
    padding: 12px 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 600px;
    font-weight: bold;
    text-align: center;
    display: none;
  }
  
  .alert-info {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
  }
  
  .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  

  
