
:root {

    /* body */
    --background-body: #f5f5f5;
    --text-body: #535657;

    /* pokecard */
    --card-background: #dde6ea;
    --card-border: #4f646f;
    --card-shadow: rgba(0,0,0,0.1);
    --pokemon-name: #4f646f;
    --image-border: black;

    /* button */
    --button-bg: #4f646f;
    --button-text: rgb(221, 221, 222);
    --button-hover-bg: #637d8b;
    --button-hover-text: white;

    /* footer */
    --footer-text: #535657;
}

body {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    box-sizing: border-box;

    background: var(--background-body);
    color: var(--text-body);
    font-family: 'Segoe UI', 'bahnschrift', 'Arial', sans-serif;
}

.content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
}

.content h1 {
    margin-bottom: 0;
}

.pokemon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    padding: 25px;
    background: var(--card-background);
    border: 2px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--card-shadow);
}

.pokemon-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--pokemon-name);
    text-align: center;
}

.image-container {
    width: 256px;
    height: 256px;
    overflow: hidden;
    border: 1px solid var(--image-border);
    border-radius: 3px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

button {
	background-color: var(--button-bg);
	text-align: center;
	color: var(--button-text);
	border: none;
	padding: 0.8em 1.4em;
	font-size: 1rem;
	line-height: 1;
	vertical-align: middle;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s ease;
}

button:hover {
	background-color: var(--button-hover-bg);
	color: var(--button-hover-text);
	transform: scale(1.03);
	box-shadow: 0 0 10px var(--button-hover-bg);
}

footer {
    padding: 20px;
    text-align: center;
}

footer a {
    color: var(--footer-text);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}



/* mobile design */
@media (max-width: 1000px) {
    .content h1 {
        width: 80vw;
        font-size: clamp(1rem, 6vw, 5rem);
        margin: 0.5em 1em;
        white-space: nowrap;
    }
    footer {
        margin-bottom: 3.5em;
    }
}
