@font-face {
  font-family: 'MyWebFont';
  src: url('webfont.eot'); /* IE9 Compat Modes */
  src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('webfont.woff2') format('woff2'), /* Super Modern Browsers */
       url('webfont.woff') format('woff'), /* Pretty Modern Browsers */
       url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
body {
    /* padding-top: 0rem */
    background: #303942;
    font-family: Open Sans;
}

/* HEADER */
.header {
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    justify-content: center;
}

h1,
h2,
h3,
h4 {
    font-family: EAU;
}

nav {
    margin-bottom: 0rem;
    background: #871f23;
}

/* margins around box. top & bottom should be double of sides to keep even */
.card {
    margin: 0.8rem 0.4rem 0.4rem 0.8rem;    /* top right bottom left */
    border-color: #303942; /* same as background */
    border-radius: 0.25rem; /* corner rounding */
}

/* first card element for each column has 0 upper margin */
.card:first-child {
    margin-top: 0rem;
}

.col-md-4,
.col-md-8,
.col-md-16 {
  
    padding: 0rem;
}

/* all icon spacing left/right */
.fas,
.fa {
    margin-left: 0px;
    margin-right: 0px;
    /* give the icons some space on either side */
}
.btn {
    display: flex;
    justify-content: center;
    background-color: #303942;
    color: #bdc3c7;
}
.btn:hover {
    background-color: rgba(0,0,0,0.5);
    /* last value is opacity. 0.7 will make it lighter, 1 will make it black */

    color: #bdc3c7; /* font color on hover */
}

.title {
    color: #bdc3c7;
    font-variant: small-caps;
    font-family: Open Sans;
}
@keyframes slideInFromLeft {
    /*title name animation, position and transparency*/
    0% {
      transform: translateX(-10%);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
.titlename {
    color: #871f23;
    font-family: EAU;
    animation: 1s ease-out 0s 1 slideInFromLeft; /* 1st number controls duration, 3rd delay, 4th repetition*/
}

.nav-link {
    border-radius: 20px;
    transition: background-color .4s ease-in-out;
    color:#ecf0f1 ;
}

.nav-item:hover a {
    color: #bdc3c7;
}

.nav-item {
    margin-left: 25px;
    margin-right: 25px;
}

.float-end.title {
    margin-bottom: 0px;
}

.icons a {
    font-size: 22px;
    /* social media icons size */

    padding: 10px;
    display: flex;
    justify-content: center;
    
    color: #ecf0f1;
    transition: .4s ease-in-out;
}
.icons a:hover {
    color: #bdc3c7;
    text-decoration: none;
}
/* FOOTER */
footer > ul > li {
    list-style: text-center;
    display: flex;
    flex-direction: column;
    
    margin: 0 0 0 0.55em;
    padding: 0 0 0 0.55em;
    border-left: solid 10px #e0e0e0;
    border-color: #871f23;
    color: #871f23;
    padding-top: 5px;
    padding-bottom: 5px;
    justify-content: flex-end;
}

footer > ul > li:first-child {
    border-left: 25px;
    margin-left: 25px;
    padding-left: 25px;
}

a:link, a:visited, a:hover, a:active {
text-decoration: none;
}

div a {
text-decoration:none;
}

.mx-auto {
max-width: 250px;
}

.bidi {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: left;
    margin-left: 20px;
}

/* --------------- if the screen size is 768px or LESS --------------- */
@media only screen and (max-width: 768px){
    #navbarCollapse {
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
    }
    #navbarCollapse.show {
        display: flex;
    }
    .icons a {
        font-size: 18px;
        padding-left: 2px;
        padding-right: 2px;
    }
    .fas, .fa {
        margin-left: 2px;
        margin-right: 2px;
    }
    footer {
        font-size: 12px;
    }
}

/* --------------- if the screen size is 768px or MORE --------------- */
@media only screen and (min-width: 768px){
    #navbarCollapse {
        display: flex ;
        padding-top: .5rem;
        padding-bottom: .5rem;
    }
}

/* --- Estilo Padrão (Desktop/Tablet) --- */
.btn-inicio {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    background: linear-gradient(180deg, #2E5C45 0%, #1A3B2B 100%);
    color: #ffffff;
    text-decoration: none;
    
    font-family: sans-serif;
    font-weight: 600;
    font-size: 16px;
    
    padding: 12px 28px; /* Tamanho generoso no PC */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-inicio:hover {
    background: linear-gradient(180deg, #356b50 0%, #204935 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* --- Ajustes para Celular (Telas menores que 768px) --- */
@media (max-width: 768px) {
    .btn-inicio {
        bottom: 15px; /* Mais próximo da borda inferior */
        right: 15px;  /* Mais próximo da borda direita */
        
        padding: 8px 16px; /* Botão mais compacto */
        font-size: 14px;   /* Texto levemente menor */
        gap: 6px;
    }
    
    /* Ajusta o ícone para ficar proporcional */
    .btn-inicio svg {
        width: 16px;
        height: 16px;
    }
}