body {
    color: #333;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

main {
    margin: 40px;
}

h1 {
     font-size: 30px;
     margin-bottom: 40px;
}

.button_container {
    border: 1px solid #ddd;
    margin: 0 10px 10px 0;
    padding: 20px;
    width: 300px;
    height: 300px;
    float: left;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
    perspective: 1000px;
}


/* --- 1. Apple --- */
a#btn_apple {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    position: relative;
    width: 140px;
    height: 140px;
    box-sizing: border-box;
    border-radius: 50%; 
    margin: auto;
    margin-top: 50px;
    background-color: #f5f5f7; 
    border: 2px solid #d2d2d7;
    color: #1d1d1f; 
    text-decoration: none;
    transition: all .3s ease;
    overflow: hidden;
}

a#btn_apple i.fa-apple {
    font-size: 80px; 
    position: relative;
    color: #1d1d1f; 
    transition: color 0.3s ease, background-position 0.5s ease; 
    background: linear-gradient(to right, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #9400D3);
    background-size: 200% 100%; 
    background-position: 100% 0; 
    background-clip: text;
}

a#btn_apple:hover {
    background-color: #e8e8ea;
    border-color: #c0c0c0;
    transform: scale(1.05);
}

a#btn_apple:hover i.fa-apple {
    color: transparent; 
    background-position: 0 0;
}

/* --- 2. Coca-Cola --- */

a#btn_coke {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    position: relative;
    width: 200px;
    height:200px;
    box-sizing: border-box;
    border-radius: 50%; 
    margin: auto;
    margin-top: 30px;
    text-decoration: none;
    overflow: hidden; 
    transition: all 0.3s ease-out; 
}

a#btn_coke span {
    position: relative; 
    font-family: 'Lobster', cursive;
    font-size: 48px; 
    font-weight: normal; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    background: linear-gradient(to top, #f40009 50%, #ffffff 50%);
    background-size: 100% 200%;
    background-position: 0 100%;
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    color: #fff; 
    transition: background-position 0.6s ease-out, transform 0.2s ease-out; 
}

a#btn_coke:hover span {
    background-position: 0 0; 
    animation: fizz-coke 0.4s infinite alternate; 
}

@keyframes fizz-coke {
    0% { transform: translateY(0px) scale(1); text-shadow: 0 0 2px #fff, 0 0 5px #fff; }
    50% { transform: translateY(-1px) scale(1.01); text-shadow: 0 0 4px #fff, 0 0 8px #fff; }
    100% { transform: translateY(0px) scale(1); text-shadow: 0 0 2px #fff, 0 0 5px #fff; }
}


a#btn_twitter {
    display: inline-block;
    height: 40px;
    box-sizing: border-box;
    border-radius: 4px;
    margin: auto;
    margin-top: 105px;
    padding: 10px 30px 0 30px;
    background-color: #56cdf1;
    color: #fff;
    font-size: 18px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-decoration: none;
}

a#btn_twitter:hover {
    background: linear-gradient(135deg,  rgba(46,191,236,1) 0%,rgba(40,165,203,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    transform: rotate3d(1, 0, 0, 60deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- 4. The New Yorker --- */
a#btn_newyork {
    display: inline-block;
    position: relative; 
    margin:auto;
    margin-top: 100px;
    padding: 12px 24px;
    background-color: #fff;
    color: #6e6d6d;
    font-family: 'Georgia', 'Times New Roman', serif; 
    font-size: 24px;
    text-decoration: none;
    border: 2px solid #878686;
    transition: all .4s ease;
    overflow: hidden; 
}

a#btn_newyork:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
    position: absolute;
    top: 0;
    left: -100%; 
    background-color: #6e6d6d;
    transition: all .4s ease;
}

a#btn_newyork:hover {
    color: #fff; 
}

a#btn_newyork:hover:before {
    left: 0; 
}

a#btn_newyork span {
    position: relative;
    z-index: 10; 
}

/* --- 5. Michael Kors --- */

a#btn_mk {
    display: inline-block; 
    margin: auto;
    margin-top: 80px; 
    position: relative; 
    overflow: hidden;
    transform-style: preserve-3d;  
    transition: all 0.4s ease; 
    width: 150px; 
    height: 100px;
}

a#btn_mk img {
    display: block;
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    filter: drop-shadow(0px 0px 3px rgba(0,0,0,0.3));
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

a#btn_mk::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; 
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,  rgba(255,255,255,0.8) 50%,rgba(255,255,255,0) 100%);
    transform: skewX(-20deg); 
    z-index: 10; 
    transition: left 0.7s ease-in-out;
}

a#btn_mk:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0px 5px 8px rgba(0,0,0,0.2));
}

a#btn_mk:hover img {
    transform: translate(-50%, -50%) rotateY(360deg); 
    filter: drop-shadow(0px 0px 8px rgba(255,255,255,0.5)); 
}

a#btn_mk:hover::before {
    left: 150%; 
}

/* --- 6. Lyft --- */
a#btn_lyft {
    display: inline-block;
    box-sizing: border-box;
    border-radius: 15px; 
    margin-top: 90px;
    padding: 20px 50px;
    background-color: #000;
    border: 3px solid #000;
    color: #FF00BF;
    font-size: 40px;
    font-family:'Ubuntu', sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

a#btn_lyft:hover {
    background-color: #FF00BF; 
    color: #000;
    border-color: #FF00BF;
    transform: translateY(-10px); 
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* --- 7. Instagram --- */
a#btn_insta {
    display: block;
    width: 100px;
    height: 100px;
    box-sizing: border-box;
    border-radius: 50%; 
    margin: auto;
    margin-top: 85px; 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease-out;
}

a#btn_insta .fa {
    color: white;
    font-size: 70px;
    position: absolute;
    top: 50%;
    left: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

a#btn_insta .fa-instagram {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

a#btn_insta .fa-heart {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
}


a#btn_insta:hover {
    transform: scale(1.1); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

a#btn_insta:hover .fa-instagram {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
}

a#btn_insta:hover .fa-heart {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Cartoon Network Button (Color Invert & Bounce) --- */

a#btn_cn {
    display: inline-block;
    margin: auto;
    margin-top: 80px; 
    width: 100px; 
    height: 100px; 
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease-out; 
}

a#btn_cn img {
    display: block;
    max-width: 100%; 
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: invert(0%); 
    transition: filter 0.4s ease-out, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}

a#btn_cn:hover img {
    filter: invert(100%); 
    transform: translate(-50%, -50%) translateY(-10px) scale(1.15); 
}

/* --- Nike Button (Swoosh to Text Slide) --- */

a#btn_nike {
    display: flex; 
    align-items: center;
    justify-content: center;
    position: relative; 
    width: 200px; 
    height: 60px; 
    margin: auto;
    margin-top: 100px; 
    color: #000000; 
    font-size: 24px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

a#btn_nike img {
    position: absolute;
    height: 80%; 
    width: auto;
    max-width: 80%; 
    opacity: 1; 
    transform: translateX(0); 
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

a#btn_nike span {
    position: absolute;
    opacity: 0; 
    transform: translateX(100%); 
    font-size: 24px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a#btn_nike:hover img {
    opacity: 0; 
    transform: translateX(-100%);
}

a#btn_nike:hover span {
    opacity: 1; 
    transform: translateX(0); 
}

/* --- 10. Tesla (with smooth zoom) --- */

a#btn_tesla {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px; 
    height: 100px; 
    margin: auto;
    margin-top: 90px; 
    text-decoration: none; 
    transition: all 0.3s ease;
}

a#btn_tesla img {
    height: 70%;
    width: auto;
    max-width: 90%; 
    display: block;
    filter: brightness(0) invert(0%); 
    transition: filter 0.4s ease-out, transform 0.4s ease-out; 
}


a#btn_tesla:hover img {
    filter: invert(0%) sepia(100%) saturate(400%) hue-rotate(-20deg) brightness(0.7) contrast(200%);
    transform: scale(1.15); /* You can change 1.15 to 1.1 or 1.2 for more/less zoom */
}