/* Variáveis */
:root{
    --font-color: white;
    --container-background: #1b1b1bd4;
    --container-background-2: #0c0c0cb7;
    --border-color: #202020;
    --card-background: #181818;
    --card-background-2: #252525;
    --card-background-3: #424242;
    --card-border-color: #565656;
    --card-hightlight-color: #878787;

}

/* Geral e Navbar */
/* #region */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    background-image: url("bg.png");
    background-repeat: repeat;
    color: var(--font-color);
}

nav {
    min-height: 7vh;
    
    display:flex;
    background: linear-gradient(180deg, var(--container-background) 10%, transparent 100%);
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 1vw;

    backdrop-filter: blur(1px);
}

.nav-main{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    min-height: 28px;
    height: 4vh;
    aspect-ratio: 1 / 1;
    fill: var(--font-color);
}


svg{
    color: var(--font-color);
}

.menu {
    display: flex;
    gap: 1vw;
    list-style: none;
}

.menu a {
    text-decoration: none;
    -webkit-transition: 0.1s;
    transition: 0.1s;
    color: var(--font-color);
    font-size: 2.5vh;
}

.menu li {
    -webkit-transition: 0.1s;
    transition: 0.1s;
    white-space: nowrap;
}

.menu li:hover{
    transform: scale(1.1);
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Navbar para o celular (na vertical) */

@media (max-width: 640px) {

    nav{
        flex-wrap: wrap;
        gap: 0;
    }
    .nav-main{
        width: calc(100% - 30px);
    }
    .menu-icon {
        display: block;
    }

    .menu {
        width: 100%;

        display: none;
        flex-direction: column;
        gap: 0;

    }

    .menu li {
        padding: 10px;
        text-align: center;
    }

    #menu-toggle:checked ~ .menu {
        display: flex;
    }
}
/* #endregion */

/* Switch para o tema da página */
/* #region */

.switch{
    cursor: pointer;
}
.theme-switch{
    position: relative;
    display: inline-block;
    height: 4vh;
    aspect-ratio: 2 / 1;
    right: 10px;
}

.switch input{
    opacity: 0;
    width: 0;
    height: 0;
}

.image-switch{

    display: inline-block;
    aspect-ratio: 1;
    max-height: 32px;
}

.switch img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0, #2a2a2a 0%, #0e0e0e 100%);
    -webkit-transition: .4s;
    transition: .4s;

    border-radius: 10cqh;
    
}

.slider:before {
    position: absolute;
    content: "";
    height: 100%;
    aspect-ratio: 1 / 1;
    
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;

}

.switch input:checked + .slider {
  
  background: linear-gradient(0, #29b8b8 0%, #4995ff 100%);
}

/*
.switch input:focus + .slider {
  box-shadow: 0 0 1px #212121;
}
*/

.switch input:checked + .slider:before {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  background-color: #ffe15d;
  box-shadow: 0 0 6px #fff4c4;
}
/* #endregion */

/* Tema claro */
/* #region */
.light-theme{
    background-image: url("bg-l.png");
    --container-background: #eeeeeed8;
    --container-background-2: #cfcfcfce;
    --font-color: #21201d;
    --border-color: #ffffff;
    --card-background: #b0b0b0;
    --card-background-2: #cfcfcf;
    --card-background-3: #e3e3e3;
    --card-border-color: #bebebe;
    --card-hightlight-color: #fbfbfb;
}


.light-theme .background-overlay{
    background: radial-gradient(circle,rgba(0, 0, 0, 0.0) 10%, rgba(0, 0, 0, 0.5) 100%);
}

.light-theme header span{
    color: var(--font-color);
}

/* #endregion */

h1, h2, h3, h4{
    margin-block-start: 0;
    margin-block-end: 0;
    padding-bottom: 40px;
}

h1{
    font-size: 5vh;
}

/* Efeito de fundo  */
/* #region */
.background-overlay{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle,var(--container-background) 0%, black 90%);
    backdrop-filter: blur(0.6px);
    z-index: -1;
}

.background-rain{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}
/* #endregion */

main{
    height: calc(100vh - 90px);
    padding: 20px 10% 2% 10%;
    overflow: auto;
    mask-image: linear-gradient(transparent 0px, white 10px, white calc(100% - 20px), transparent 100%);
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.main-content{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 40px;
}

.content-container{
    text-align: justify;
    min-height: 50px;
    background: linear-gradient(65deg,var(--container-background) 0%, var(--container-background-2) 100%);
    border: 1px solid var(--border-color);
    border-radius: 0.5cqh;
    margin-block-start: 5px;
    margin-block-end: 5px;
    padding: 50px;
    font-size: 20px;
    overflow: hidden;

    opacity: 0;
    transform: translateY(-40px);
    transition: 0.3s ease;
}

.content-container.visible{
    opacity: 1;
    transform: translateY(0px);
}


.grid-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 10px;

}

footer{
    position: fixed;
    width: 100%;
    height: 5vh;
    font-size: 2vh;
    align-content: center;
    text-align: center;
    bottom: 0;
    background: linear-gradient(0deg, var(--container-background) 0%, transparent 100%);
    backdrop-filter: blur(1px);
}

.card-slot{
    width: 320px;
    animation: cardFadeIn 0.5s ease-in-out forwards;
    justify-self: center;
}

/* CARDS */
.card{
    display: flex;
    flex-direction: column;
    position: relative;
    width: 300px;
    height: 430px;
    background: linear-gradient(-45deg, var(--card-background) 0%, var(--card-background-2) 30%, var(--card-background-3) 50%, var(--card-background-2) 70%, var(--card-background) 100%);
    background-size: 400%;
    background-position-x: -800px;
    margin: 10px;
    border: 2px solid var(--card-border-color);
    border-radius: 6px;
    overflow: hidden;
    color: var(--font-color);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.75), inset 0 10px 6px -10px var(--card-hightlight-color), inset 0 -10px 6px -10px black;
    align-items: center;
    text-decoration: none;
    -webkit-transition: .2s;
    transition: 0.2s;
}
.card:hover{
    transform: scale(1.02);
    background-position-x: 0;
    box-shadow: 20px 20px 12px rgba(0, 0, 0, 0.35), inset 0 10px 6px -10px var(--card-hightlight-color), inset 0 -10px 6px -10px black;
    /*box-shadow: 0 0 10px white;*/
}

.card-indent{
    width: 250px;
    height: 40px;
    
    text-align: center;
    align-content: center;

    background: transparent;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: inset 0 0 9px black, 0 0 6px var(--card-hightlight-color);

    
}

.card-logo{
    width: 250px;
    height: 250px;
    margin: 10px;
    background-size: cover;
}

.card-description{
    width: 300px;
    height: 120px;
    padding: 10px;
    text-align: justify;
    overflow: hidden;
    font-size: 16px;
}

.language-icon{
    min-width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.078);
}

@keyframes cardFadeIn{
    0%{
        transform: translateX(-20px);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}