/*CONFIGURAÇÕES BASICAS*/
body {
    background-color: #f4f5f7;
    margin-top: 120px;
    overflow-x: hidden;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to right, #2ed5c2, #1ba89d);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 9999;
    box-sizing: border-box; 
}

.left-content,
.right-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

header .cabecalho {
    font-size: 30px;
    color: #040f8e;
    font-weight: bold;
}

/* --------Link do Instagram--------*/

.redesocial {
    padding: 2px;
}


.redesocial p {
    margin: 0;
    padding: 0;
}

.redesocial img {
    height: 30px;
    width: 50px;
}

.redesocial a {
    color: #030833;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin-right: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
}

.redesocial a:hover {
    color: #0056b3;
}


.container {
    max-width: 700px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box; 
    overflow-x: hidden;
}

h2, h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    overflow-x: hidden; 
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; 
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-right: 10px; 
    box-sizing: border-box; 
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
    flex-shrink: 0;
}

.radio-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    word-break: break-word; 
}

button[type="submit"],
.add-button {
    background-color: #007bff;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box; 
}

button[type="submit"]:hover,
.add-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.add-button {
    background-color: #28a745;
    margin-bottom: 20px;
}

.add-button:hover {
    background-color: #218838;
}

.presenteado-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fdfdfd;
    position: relative;
    box-sizing: border-box; 
    overflow-x: hidden; 
}

.presenteado-card h4 {
    margin-top: 0;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
}

.remove-presenteado-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0; 
}

.remove-presenteado-btn:hover {
    background-color: #c82333;
}

footer {
    background-image: linear-gradient(to top, #0f7a6e, #1d998a, #28c4b1);
    padding: 30px;
    box-sizing: border-box; 
    overflow-x: hidden; 
}

/*----------formatação de titulos-------------*/
.div1footer h2 {
    margin-top: 0;
    color: #ffffff;
}

.T1footer {
    padding: 50px 30px 0 30px;
    text-align: center;
}


.T2footer {
    text-align: center;
    font-size: 30px;
    color: #ffffff;
    margin-bottom: 0;
}

/*---------imagens carrossel-----------*/
.carrosselPai {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    overflow: hidden;
    min-height: 400px;
    width: 100%; 
    box-sizing: border-box;
}

.carrosselFilho {
    width: 200px;
    height: 200px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    border-radius: 10%;
    box-sizing: border-box;
}

.track {
    display: flex;
    height: 100%;
    width: 600px; 
    animation: slide 10s infinite alternate linear;
}

.track img {
    width: 200px;
    min-width: 200px;
    height: 200px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;

}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }

}

.btn-voltar-principal {
    background-color: #002471;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
  }
  
  .btn-voltar-principal:hover {
    background-color: #001a5a;
  }
  
  .btn-flutuante-principal {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #2ed5c2;
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 2px 2px 5px black;
    z-index: 999;
    transition: background 0.3s;
  }
  
  .btn-flutuante-principal:hover {
    background-color: #1ba89d;
  }
  
  .liFooter {
  text-align: center;
  list-style: disc;
  padding-left: 0;
  display: inline-block;
  width: 100%;
  color: white;
  margin-bottom: 40px;
  margin-top: 0;
  box-sizing: border-box; 
}

.liFooter li {
  display: inline-block;
  margin: 0 10px;
  text-align: left;
}

.liFooter a {
  color: white;
}


@media (max-width: 768px) {

    body {
        overflow-x: hidden; 
        width: 100%; 
        margin: 0; 
        padding: 0;
        margin-top: 0; 
    }

    header {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        justify-content: center;
        box-sizing: border-box;
    }
    
    header img {
        width: 80px;
        height: 80px;
        margin-bottom: 5px;
    }
    
    header .cabecalho {
        font-size: 22px;
        text-align: center;
        word-break: break-word;
        margin: 0 10px 10px 10px;
    }

    .redesocial a{
        display: none;
    }


    .container {
        padding: 20px 15px;
        margin: 20px 10px; 
        max-width: 100%; 
        box-sizing: border-box;
    }

    h2,
    h3 {
        font-size: 1.5em; 
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"] {
        padding: 10px; 
        font-size: 14px;
    }

    .radio-group label {
        font-size: 15px;
    }

    button[type="submit"],
    .add-button {
        font-size: 16px;
        padding: 12px 15px;
        margin-top: 15px;
    }

    .presenteado-card {
        padding: 15px; 
        margin-bottom: 15px;
    }

    .remove-presenteado-btn {
        width: 25px; 
        height: 25px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }
    
    /* Carrossel de apoiadores */
    .carrosselPai {
        min-height: 250px;
    }
  
    .carrosselFilho {
        width: 150px; 
        height: 150px;
    }
  
    .track {
        width: auto; 
        animation: slideMobile 10s infinite alternate linear; 
    }
  
    .track img {
        width: 150px;
        min-width: 150px; 
        height: 150px;
    }
  
    @keyframes slideMobile {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-150px * (4 - 1))); 
        }
    }

    .liFooter {
        font-size: 14px;
        padding: 0 10px; 
    }
  
    .liFooter li {
        display: block;
        margin: 5px 0;
        text-align: center;
    }

    .btn-flutuante-principal {
        bottom: 15px;
        right: 15px;
        padding: 10px 12px;
        font-size: 18px;
    }
}