@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

header {
    width: 100%;
    height: 60px;
    background: #9A1C1F;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; 
    z-index: 1000;
}

header img {
    max-height: 35px; 
}

.logo2 {
    margin-top: 5px;
}

body {
    background: #f4f4f9; 
    margin: 23px 35px;
}

main {
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
}

.container .box
{
    position: relative;
    width: 320px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 30px;
    transition: 0.5s;
}

.container .box::before
{
    content:' ';
    position: absolute;
    top: 0;
    left: 50px;
    width: 67%;
    height: 100%;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
}

.container .box::after
{
    content:'';
    position: absolute;
    top: 0;
    left: 50;
    width: 50%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
    filter: blur(15px);
}

.container .box:hover:before,
.container .box:hover:after
{
    transform: skewX(0deg);
    left: 20px;
    width: calc(100% - 90px);
    background: linear-gradient(315deg, #c4c4c4, #8c8c8c);
}

.container .box:nth-child(1):before,
.container .box:nth-child(1):after
{
    background: linear-gradient(315deg, #d15d5d, #cc4343);
}

.container .box:nth-child(2):before,
.container .box:nth-child(2):after
{
    background: linear-gradient(315deg, #b14949, #d13d3d); 
}

.container .box:nth-child(3):before,
.container .box:nth-child(3):after
{
    background: linear-gradient(315deg, #b34f4f, #b72e2e); 
}

.container .box:nth-child(4):before,
.container .box:nth-child(4):after
{
    background: linear-gradient(315deg, #bd4d4d, #971414); 
}

.container .box span
{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.container .box span::before
{
    content:'';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.1s;  
    animation: animate 2s ease-in-out infinite;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); 
}

.container .box:hover span::before
{
    top: -50px;
    left: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

.container .box span::after
{
    content:'';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.5s;
    animation: animate 2s ease-in-out infinite;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); 
    animation-delay: -1s;
}

.container .box:hover span:after
{
    bottom: -50px;
    right: 50px;
    width: 100px;
    height: 100px;
    opacity: 1;
}

@keyframes animate
{
0%, 100%
{
    transform: translateY(10px);
}

50%
{
    transform: translate(-10px);
}
}

.container .box .content
{
    position: relative;
    left: 0;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); 
    border-radius: 8px;
    z-index: 1;
    transform: 0.5s;
    color: #333; 
    height: 300px; 
}

.container .box .content h2
{
    font-size: 2em;
    color: #444; 
    margin-bottom: 10px;
}

.container .box .content p
{
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.4em;
}

.container .box .content a
{
    display: inline-block;
    font-size: 1.1em;
    color: #fff;
    background: #9A1C1F; 
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
    box-shadow: none;
    cursor: pointer;
}

.container .box .content a:hover
{
    background: #b30000; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 55%;
    left: 50%;
    width: 83%;
    height: 88%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    z-index: 9999;
}

#popupIframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.botoes__iframe {
    font-weight: bolder;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transform: translateY(-50%);
    background-color: #ccc;
    border: none; /* Removed border */
    cursor: pointer; /* Added cursor pointer */
}

.botao__direita {
    position: absolute;
    top: 50%;
    right: -45px;
    cursor: pointer; /* Added cursor pointer */
}

.botao__esquerda {
    position: absolute;
    top: 50%;
    left: -45px;
    cursor: pointer; /* Added cursor pointer */
}

.botao__fechar {
    position: absolute;
    top: 15px;
    right: -45px;
    cursor: pointer;
}

.botao__loop {
    position: absolute;
    top: 55px;
    right: -45px;
    cursor: pointer; /* Added cursor pointer */
}

