@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Fredericka+the+Great&family=Homemade+Apple&family=Open+Sans+Condensed:wght@300;700');


/* Reset and base styles */
body {
    margin: 0;
    padding: 0;
    background-color: hsl(198, 48%, 31%);
    color: hsl(198, 61%, 76%);
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    font-family: "Open Sans Condensed", sans-serif;
}

header {
    width: 95%;
    max-width: 788px; /* so it looks good even in big browsers */
    display: flex;
    justify-content: flex-end; /* both these make it to the right> */
    padding: 12px 0; /* Added some vertical padding */
    margin-top: 15px; /* Added top margin */
}

.container {
    width: 91%;
    max-width: 680px;
    margin: 10px 0; /* Added vertical margin */
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    font-family: "Fredericka the Great";
}
h2  {
    font-size: 1rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.5;
    font-size: 1rem;
}
a {
    display: inline-block;
    text-decoration: none !important;
    color: rgb(240, 240, 240) !important;
    border-bottom: none !important;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.tile {
    width: 100%;
    background-color: #3D7A71;
    margin: 2px;
    border-radius: 17px;
    display: flex;
    justify-content: space-between;
}

.tile p {
    padding: 9px;
}
.tile:hover {
    transition: transform 0.3s ease-in-out;
    transform: scale(1.02);
}
.tile-share-button {
    margin: 13px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: hsla(167, 44%, 61%, 0.986);
    /* Add flexbox to center content */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Add pointer cursor */
}
.tile-share-button svg {
    /* Control size directly, remove padding */
    width: 18px; /* Adjust size as needed */
    height: 18px; /* Adjust size as needed */
    color: #3D7A71;
    /* Remove padding from SVG element */
}

.image-container {
    height: 96px;
    width: 96px;
    border-radius: 48px;
    overflow: hidden;
}

/* any image inside the element of class image-container */
.image-container img {
    height: 100%;
}

.icon {
    padding: 14px 5px;
    margin: 8px;
    width: 2rem;
    height: 2rem;
    fill: hsla(167, 44%, 61%, 0.986);
}

.footer {
    text-align: center;
    margin-top: 2rem; /* Increased top margin */
    padding: 1rem 0; /* Added padding */
    background-color: rgb(51, 139, 103);
    width: 100%;
}

.footer__copy {
    /* Styles specific to the copyright text if needed */
    margin: 0; /* Remove default paragraph margin */
}


@media (max-width: 355px) {
    h1 {
        font-size: .4rem;
    }

    p {
        font-size: .9rem;
    }

    .tile {
     max-height: 60px;
    }

    .tile p {
        padding: 3px;
    }

    .tile-share-button {
        margin-top: 13px;
        width: 30px;  
        height: 30px;
    }
    .tile-share-button svg {
        /* Adjust size for smaller screens */
        width: 14px;
        height: 14px;
        /* Padding removed */
    }

    .icon {
        padding: 10px 5px;
        margin: 5px;
        width: 1.5rem;
        height: 1.5rem;
    }
}


@media (max-width: 600px) {
    h1 {
        font-size: 1.1rem;
    }

    .tile p {
        padding: 5px;
    }

    .tile-share-button {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
}
