body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5efe6;
}
p {
    color: #8b0000;
    line-height: 1.6;
}
h1{
    text-underline-position: below;
}
/* Links */
a {
    color: #c5283d;
}

a:visited {
    color: #4b2e83;
}

a:hover {
    color: #1f6feb;
}
a:focus {
outline: 3px solid #4b2e83;
}

/* Footer */
footer > p {
    font-size: 12px;
    color: darkviolet;
}
h1,
h2 {
    color: #4b2e83;
}

main {
    padding: 1rem;
}

section {
    margin-bottom: 2rem;
      border: 1px solid rgb(0, 0, 0)
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 2px solid rgb(0, 0, 0);
}
/* Skip link accessibility */
.visually-hidden {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
}

/* Make skip link visible when focused */
.visually-hidden:focus {
    position: absolute;
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    top: 10px;
    left: 10px;

    font-family: Arial, Helvetica, serif;
    font-size: 16px;
    color: #c5283d;
    background-color: #e8e1f3;
    padding: 8px 12px;
    text-decoration: none;
    border: 2px solid #4b2e83;
    z-index: 1000;
}
@media (max-width: 600px) {
    body {
        font-size: 90%;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}
button {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    font-size: 1rem;
    border: 1.5px solid rgb(0, 0, 0)
}
header,
footer {
    text-align: center;
    padding: 1rem;
}

section {
    padding: 0.5rem;
}
/*The hover me button is to change color state */
.color-change-2x:hover {
    -webkit-animation: color-change-2x 2s linear infinite alternate both;
    animation: color-change-2x 2s linear infinite alternate both;
}
.color-change-2x {
    display: inline-block;
    padding: 10px;
    cursor: pointer;
}

/*The fade-in Animation is for my own design and not provided by the resources in the instructor notes*/
.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
.btn {
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.btn:hover {
    transform: scale(1.1);
}
/* ----------------------------------------------
 * Generated by Animista on 2026-4-6 23:10:9
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation color-change-2x
 * ----------------------------------------
 */

@-webkit-keyframes color-change-2x {
    0% {
        background: #19dcea;
    }
    100% {
        background: #b22cff;
    }
}
@keyframes color-change-2x {
    0% {
        background: #19dcea;
    }
    100% {
        background: #b22cff;
    }
}
.heartbeat {
    -webkit-animation: heartbeat 1.5s ease-in-out 3 both;
    animation: heartbeat 1.5s ease-in-out 3 both;
}
/* ----------------------------------------------
 * Generated by Animista on 2026-4-6 23:41:28
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation heartbeat
 * ----------------------------------------
 */
@-webkit-keyframes heartbeat {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: center center;
        transform-origin: center center;
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
    10% {
        -webkit-transform: scale(0.91);
        transform: scale(0.91);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
    17% {
        -webkit-transform: scale(0.98);
        transform: scale(0.98);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
    33% {
        -webkit-transform: scale(0.87);
        transform: scale(0.87);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
    45% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
}
@keyframes heartbeat {
    from {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin: center center;
        transform-origin: center center;
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
    10% {
        -webkit-transform: scale(0.91);
        transform: scale(0.91);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
    17% {
        -webkit-transform: scale(0.98);
        transform: scale(0.98);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
    33% {
        -webkit-transform: scale(0.87);
        transform: scale(0.87);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
    45% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
}
