/* CSS file */

body {
    background-color: #F1F1F1; /* hsl(0, 0%, 95%) */
    color: #333333; /* dark grey for better readability */
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* larger font size for better readability */
    line-height: 1.5; /* improved line spacing */
    margin: 0;
    padding: 20px; /* added padding for whitespace */
}

.card {
    position: relative;
    background-color: hsl(0, 0%, 98%); /* Slightly lighter shade than the background */
    max-width: 600px; /* max width for optimal line length */
    margin: 20px auto;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1); /* Box shadow for "pop" effect */
    max-width: 600px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* animate transform and box-shadow separately */
}

/* This will apply for screen sizes up to 768px (typical size for tablets and below) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .card {
        max-width: 90%; /* Use percentage to adjust to the screen size */
    }
}


.card:hover {
    transform: scale(1.02); /* this will slightly enlarge the card */
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2);
}

#language-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: hsl(0, 0%, 94%); /* same as card background */
    color: #000000; /* same as text color */
    font-family: 'Roboto', sans-serif; /* same as body text */
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#language-toggle:hover {
    background-color: hsl(0, 0%, 90%);
}


h1, h2 {
    font-family: 'Roboto Condensed', sans-serif;
    color: #000000;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2em;
}

header, main, footer {
    text-align: center;
    padding: 10px;
}

header img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    /*margin-bottom: 20px;*/
}

#linkedin-link {
    color: #007AFF;
    text-decoration: none;
    font-size: 1.5em;
}

#linkedin-link:hover {
    text-decoration: underline;
}


.card p {
    margin: 1em; /* added equal margins for the body text */
}

section {
    margin-bottom: 20px;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
    animation: shake 0.4s;
    animation-iteration-count: 1;
}