@import 'variables.css';

/* Standard */

body {
    font-family: 'Courier New', Courier, monospace;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    position: relative;
    background-color: var(--background-color);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/background-1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: -1;
}
h1,
section.h2 {
  color: var(--text-color);
  font-size: 18px;
  margin-bottom: 10px;
}
section {
    margin-bottom: 30px;
}
a,
a:visited {
    color: #007bff;
    text-decoration: none;
}

/* Standard Classes */
.hide {
    display: none;
}
.divide {
    border-bottom: 1px solid var(--secondary-color);
    margin: 20px 0;
}
.break-line {
    white-space: pre-line;
}
.point-separator::before {
    content: "•";
    font-size: 20px;
    display: inline-block;
    align-items: center;
    margin: 10px 5px;
    color: var(--lightgray-color);
}

/* Site Classes */

.container {
    position: relative;
    max-width: 800px;
    margin: 10px auto;
    background-color: var(--white-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.actions-bar {
    display: flex;
    justify-content: flex-end;
    text-align: right;
    margin: auto;
    padding-top: 5px;
    max-width: 828px;
    border-radius: 8px;

    .back-box {
        display: flex;
        justify-content: flex-end;
        background-color: white;
        width: auto;
        border-radius: 8px;
    }

    button {
        display: flex;          /* Deixa o ícone e o texto lado a lado */
        align-items: center;    /* Alinha verticalmente */
        gap: 8px;              /* Espaço entre o ícone e o texto */
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 16px;
        padding: 8px 12px;
    }
    .active {
        color: var(--primary-color);
        font-weight: bold;
    }
    .iconify {
        font-size: 20px; /* Ajuste o tamanho do ícone conforme necessário */
    }
}

.profile-picture {
    width: 100px; /* Ajuste o tamanho conforme necessário */
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px; /* Alinha à esquerda, ajuste conforme necessário */
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;
  
  .badge {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 14px;
    
    .iconify {
        margin-right: 8px;
    }

    a {
        color:white; 
        text-decoration:none;
    }
  }
}

section.about-me > p {
    text-align: left;
    text-indent: 2em;  
}

/* Academic */
.experience {
    .experience-line {
        display: flex;
        align-items: center;
        height: auto;
    }
    .experience-text {
        padding: 0px 15px 0px 45px;
        margin: 0px;
    }
    ul {
        padding: 0px 15px 0px 60px;
    }
    img {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        margin-right: 15px;
    }
}

.expandable {
    .expandable-content {
        display: none;
    }
    .expandable-btn {
        display: none;
        border: none;
        background-color: var(--white-color);
        color: var(--primary-color);
        cursor: pointer;
    }
    .active {
        display: block;
    }
}

.chatbot-announcement {
    position: absolute;
    right: 20px;
    top: 20px;
    background-color: mediumpurple;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    text-align: center;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    height: auto;
}

/* Efeito de hover */
.chatbot-announcement:hover {
    background-color: rebeccapurple;
}

/* Responsividade */
@media (max-width: 768px) {
    .chatbot-announcement {
        width: 30%;
        height: 70px;
        right: 10px;
        bottom: 10px;
        font-size: 12px;
        padding: 10px;
    }
}

/* Media Queries */
@media (max-width: 600px) {
    section h1,
    section h2 {
        font-size: 16px;
        background-color: var(--primary-color);
        color: var(--white-color);
        padding: 10px;
        border-radius: 5px;
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
}

.skills li {
    font-size: 12px;
    padding: 4px 8px;
}

.utility-buttons {
    justify-content: center;
}

.lang-button,
.print-button {
    padding: 8px 12px;
    font-size: 12px;
}
}
  
@media print {
* {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

    body {
        margin: 0;
        padding: 0;
        background-color: var(--white-color);
    }

    .container {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .utility-buttons {
        display: none;
    }

    .badge,
    .skills li {
        background-color: var(--primary-color) !important;
        color: var(--white-color) !important;
    }

    .section {
        page-break-inside: avoid;
    }

    .show-on-print{
        display: inline-block;
    }

    .hide-on-print{
        display: none !important;
    }

    h1,
    h2 {
        page-break-after: avoid;
    }

    .expandable {
        .expandable-content {
            display: block;
        }
        .expandable-btn {
            display: none;
        }
    }

    #chatbot-container {
        display: none;
    }
}