/* Pseudo-classes */

nav a:hover {
    color: gold;
    transition: 0.3s;
}

nav a:active {
    transform: scale(0.95);
}

input:focus,
textarea:focus {
    border: 2px solid darkred;
    outline: none;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Pseudo-elementos */

p::first-letter {
    font-size: 24px;
    font-weight: bold;
    color: darkred;
}

h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: darkred;
    margin-top: 5px;
}

/* Transições e transformações */

img {
    transition: transform 0.3s, box-shadow 0.3s;
}

img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

button {
    transition: 0.3s;
}

button:hover {
    transform: scale(1.1);
    background-color: darkred;
    color: white;
}

/* Animação */

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: aparecer 1s ease-in-out;
}
