@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", serif;
    color: #555;
}

/* elementos */

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

a.link {
    color: #007bff;
}

button {
    background-color: #007bff;
    color: #fff;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

input, select, textarea {
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

textarea {
    resize: none;
}

select {
    background-color: #fff;
    appearance: none;
    cursor: pointer;
}

input:disabled, select:disabled, textarea:disabled {
    background-color: #f9f9f9;
    color: #999;
    cursor: not-allowed;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
  

/* classes */

.box-container {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.muted-text {
    margin: 1rem;
    text-align: center;
    color: lightgray;
    user-select: none;
}

.text-center {
    text-align: center;
}

/* classes principais */

.main-header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: linear-gradient(180deg, #232323, #444);
}

.header-links {
    flex: 3;
}

.header-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.header-links .menu-icon-container {
    display: none;
    color: white;
    text-align: right;
    padding-right: 10px;
    font-size: 1.6rem;
}

.header-links ul li {
    position: relative;
}

.header-links ul li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -13px;
    color: #fff; 
}

.header-links ul li a {
    text-decoration: none;
    color: #fff; 
    font-weight: bold;
    text-transform: uppercase;
}

.search-container {
    flex: 1;
    position: relative;
}

.search-container input {
    max-width: 300px;
    background: #4e4e4e;
    color: #6c6b66;
    border-color: #6c6b66;
    border-radius: 3px;
}

.search-container input:focus,
.search-container button:focus {
    outline: none;
    border-color: #6c6b66;
    box-shadow: none;
}

.logo {
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 10;
}

.logo img {
    height: 150px; 
    width: auto; 
}

.ad-banner {
    width: 80%;
    margin: 1rem auto;
}

.ad-banner img {
    max-height: 120px;
    width: 100%;
}

.nav-container {
    background-color: #b9b3b3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 1.25rem;
    overflow: auto;
}

.nav-container a {
    text-decoration: none;
    font-weight: bold;
    line-height: 10px;
    white-space: nowrap;
}

.nav-container a:hover {
    color: #f8c301;
}

.info-container {
    margin: 1rem;
    padding-inline: 2rem;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    background-color: #f4f4f4;
}

.content-container {
    flex: 3;
}

.sidebar {
    flex: 1;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .ads {
    width: 100%;
    margin-bottom: 10px;
}

.sidebar .ads :is(img, video, iframe) {
    width: 100%;
}

.main-footer {
    padding: 2rem;
    background-color: #333;
    color: #fff;
    display: flex;
    border-top: 45px solid #b9b3b3;
    justify-content: space-evenly;
    align-items: center;
}

.main-footer .footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.main-footer .footer-logo {
    width: 100px;
}

.main-footer a {
    color: gray;
}

.main-footer a:hover {
    color: lightgray;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 1.35rem;
    background-color: #0073e6;
    color: #fff;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    place-items: center;
}

.back-to-top:hover {
    background-color: #005bb5;
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding-block: 1rem;
    }

    .header-links {
        width: 100%;
    }

    .header-links ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }

    .header-links ul li:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
    }

    .header-links .menu-icon-container {
        display: block;
    }
    
    .search-container {
        display: none;
        width: 100%;
        padding-inline: 1rem;
    }

    .search-container input {
        max-width: 100%;
    }

    .logo {
        top: 0px;
        left: 0px;
    }

    .logo img {
        height: 100px;
    }

    .ad-banner img {
        max-height: 80px;
    }

    .nav-container {
        justify-content: start;
        gap: 20px;
    }

    .info-container {
        padding-inline: 5px;
        margin-inline: 0px;
        flex-direction: column;
    }

    .main-content {
        flex-direction: column-reverse;
    }

    .content-container, .sidebar {
        width: 100%;
    }

    .main-footer {
        flex-direction: column;
        gap: 2rem;
        /* align-items: flex-start; */
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}