:root {
    --bg-dark: hsl(0, 0%, 85%);
    --bg: hsl(0,0%,95%);
    --bg-light: hsl(0,0%,100%);
    --text: hsl(0,0%,5%);
    --text-muted: hsl(0,0%,30%);
    --accent: hsl(160, 50%, 60%);
    --gradient: linear-gradient(0deg, var(--bg) 95%, var(--bg-light));
    --gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));
    --highlight: hsl(0,0%,100%);
    --border-card: solid 1px var(--bg);
    --primary: hsl(160, 50%, 45%);
    --radius: 12px;
}
.darkmode {
    --bg-dark: hsl(0, 0%, 0%);
    --bg: hsl(0,0%,5%);
    --bg-light: hsl(0,0%,15%);
    --border: hsl(0, 0%, 30%);
    --accent: hsl(160, 50%, 60%);
    --text: hsl(0,0%,95%);
    --text-muted: hsl(0,0%,70%);
    --gradient: linear-gradient(0deg, var(--bg) 95%, var(--bg-light));
    --gradient-hover: linear-gradient(0deg, var(--bg), var(--bg-light));
    --highlight: hsl(0,0%,60%);
    --border-card: solid 1px var(--border);
    --primary: hsl(160, 50%, 45%);
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
section{
    margin-top: 2rem;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

p {
    color: var(--text-muted);
    max-width: 60ch;
    line-height: 1.6;
}

#troca-tema{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
}
/*#troca-tema svg{
    fill: var(--button-color);
}*/
#troca-tema svg:last-child{
    display: none;
}
.darkmode #troca-tema svg:first-child{
    display: none;
}
.darkmode #troca-tema svg:last-child{
    display: block;
}
.card-container{
    display: flex;
    justify-content: center;
    background-color: var(--bg);
    height: 400px;
    gap: 2rem;
    padding: 3rem 2rem;
    border-radius: 20px;
}
.card{
    flex: 1;
    max-width: 320px;
    padding: 1.8rem;
    
    display: flex;
    flex-direction: column;
    gap: 1rem;

    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border);
    border-top: 2px solid hsla(160, 50%, 45%, 0.6);

    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}
.card:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.card p{
    margin-top: 2em;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.btn-card{
    margin-top: auto;
    align-self: flex-start;

    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;

    font-size: 0.9rem;
    cursor: pointer;

    background: var(--primary);
    color: white;

    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 0 0px transparent;
}
.btn-card:hover{
    background-color: var(--accent);
    transition: 1s;
    opacity: 0.9;
    box-shadow: 0 0 12px hsla(160, 50%, 45%, 0.4);

}
.btn-card:active {
    transform: scale(0.97);
}