@import url('../root/style.css');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Roboto Condensed", sans-serif;
	background-color: var(--background-color);
}

/*header*/
header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.left a img {
	width: 200px;
	height: 100px;
	transition: 0.3s ease;
}
.left a img:hover {
	transform: scale(1.12);
	filter: brightness(1.2);
}

.center nav {
	display: flex;
	gap: 20px;
}

.center nav a {
	text-decoration: none;
	transition: 0.3s ease;
}

.center nav a:hover{
	transform: translateY(-3px);
}

.center nav a h2 {
	color: var(--text-color);
}

.center nav a:nth-child(1) h2:hover,
.center nav a:nth-child(2) h2:hover,
.center nav a:nth-child(3) h2:hover,
.center nav a:nth-child(4) h2:hover,
.center nav a:nth-child(5) h2:hover {
	box-shadow: 0 6px 0 0 var(--barra-selecao);
}

.right {
	margin-right: 8px;
}

.right nav,
.right nav .icons{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.right nav a img {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
	background-color: var(--card-background-color);
	border-radius: 10px;
	padding: 5px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.right nav a img:hover {
	transform: scale(1.1);
}

/*batao para mudar o tema do site*/
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 25px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	background-color: #ccc;
	border-radius: 25px;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	transition: 0.3s;
}

.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 2.5px;
	background-color: black;
	border-radius: 50%;
	transition: 0.3s;
}

/* quando ativado */
input:checked + .slider {
	background-color: #999;
}

input:checked + .slider:before {
	transform: translateX(25px);
}


/*alterar as div/imgs/textos q o js criou com a API*/
.titulo-tipos {
	color: var(--text-color);
}

.grupo-tipo {
	display: flex;
	flex-wrap: wrap;
	padding: 10px;
	justify-content: space-evenly;
	gap: 20px;
}

.card {
	width: 170px;
	padding: 10px;
	border: 2px solid var(--border-card-aco);
	background-color: var(--card-background-hover);
	transition: box-shadow 0.4s ease, transform 0.4s;
	transform-style: preserve-3d;
	cursor: pointer;
	text-align: center;

	&:hover {
		box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
		transform: translateY(-10px) rotateX(6deg) rotateY(-8deg) scale(1.02);
		background-color: var(--card-background-hover);
	}

	h4 {
		font-size: small;
	}

	h3 {
		font-size: x-large;
	}
}

.card ul {
	text-decoration: none;
	display: flex;
	gap: 6px;
	list-style: none;

	li {
		text-align: center;
		padding: 3px 8px;
		border-radius: 20px;
	}
}

.card ul,
.card h4,
.card h3 {
	text-align: left;
	cursor: pointer;
	color: var(--text-color);
}

.card img {
	width: 120px;
	transform: translateZ(20px) scale(1.1);	
	pointer-events: none;
}


/* main */
main {
	padding: 25px;
}

.pesq {
	display: flex;
	justify-content: center;
	align-items: center;
}

.barra {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
}  

.barra input,
.barra button {
	border: 1px solid var(--main-border-color);
	background: var(--main-background-color);
}

.barra input {
	border-radius: 0 13px 13px 0;
	color: var(--text-color);
	width: 80%;
	padding: 10px;
	font-size: large;
}

.barra button {
	border-radius: 13px 0 0 13px;
	width: 40px;
	height: 44px;
	cursor: pointer;

	img {
		width: 25px;
		height: auto;
	}
}

.barra input:focus {
	outline: none;
}

.bar {
	display: flex;
	margin-bottom: 10px;
	gap: 20px;
	align-items: center;
	justify-content: center;
}

.audio-player {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--main-border-color);
	width: auto;
	background: var(--card-background-color);
	border-radius: 13px;
	color: var(--text-color);
	padding: 6px;
}

.controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn {
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: var(--card-border-color);
	color: white;
	font-size: 18px;
	cursor: pointer;
}

input[type="range"] {
	flex: 1;
	cursor: pointer;
}

.volume {
	width: 60px;
}

main .api {
	border: 2px solid var(--main-border-color);
	border-radius: 13px;
}

/* card do pokemon expecifico */
#d-container h4,
#d-container h3, 
#d-container p {
	cursor: default;
	color: var(--text-color);
}

#d-container h4,
#d-container p {
	font-size: large;
}

#d-container h3 {
	font-size: xx-large;
}

#d-container img {
	width: 100%;
	max-width: 400px;
	height: auto;
	object-fit: contain;
}

#d-container button {
	border: none;
	padding: 6px;
	border-radius: 50%;
	width: 70px;
	height: 70px;
	background-color: var(--color-btn);
	color:  var(--text-btn);
}

#d-container button:hover {
	cursor: pointer;
	background-color: var(--color-btn-hover);
}

.line {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-bottom: 10px;
}

.height,
.weight {
	padding: 8px 12px;
	box-shadow: 0 0 5px var(--status-box-shadow);
	border-radius: 10px;
	background-color: var(--background-color-line);
}

.line3 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;

	p {
		color: var(--text-color);
	}
}

.line2 {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 10px;

}


.progress-bg {
    width: 100%;
    height: 5px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px var(--status-box-shadow);
}

.hp,
.attack,
.defense {
    gap: 5px;
    padding: 10px 15px;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
}

.stat-label,
.stat-value {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value:nth-of-type(1) {
    font-size: 0.85em;
    opacity: 0.8;
}

.stat-value:nth-of-type(2) {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.hp,
.attack,
.defense {
	color: var(--text-color);
	text-align: left;
}

.card2 {
	display: flex;
	gap: 100px;
	padding: 10px;
	align-items: center;
	justify-content: center;
}

.card2 ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.card2 ul li {
	display: inline-block;
	padding: 6px 12px;
	margin: 4px;
	border-radius: 8px;
	font-weight: bold;
	cursor: default;
	width: auto;
}

#d-container {
	text-align: center;
	overflow: hidden;
}

/* header - media */
@media screen and (max-width: 800px) {
	.left a img {
		width: 100px;
		height: 50px;
	}

}


@media screen and (max-width: 700px) {
	.center nav a h2 {
		font-size: large;
	}

	.bar {
		flex-direction: column;

		.audio-player {
			order: -1;
		}
	}
}

@media screen and (max-width: 550px) {
	.center {
		width: auto;
		overflow: hidden;
		margin-right: 3px;
		margin-left: 3px;
	}

	.center nav {
		overflow-x: auto;
	}

	.center nav a:nth-child(1) h2:hover,
	.center nav a:nth-child(2) h2:hover,
	.center nav a:nth-child(3) h2:hover,
	.center nav a:nth-child(4) h2:hover {
		box-shadow: none;
		color: var(--barra-selecao);
	}

	.tag {
		padding: 4px 14px;
		background: var(--card-background-color);
		border-radius: 20px;
		white-space: nowrap;
		gap: 0px;
	}

	.right nav a img {
		padding: 3px;
		width: 30px;
		height: 30px;
	}

	.switch {
		width: 23px;
		height: 45px;
	}

	.slider:before {
		height: 17px;
		width: 17px;
		left: 3px;
		bottom: 3.2px;
	}

	input:checked + .slider:before {
		transform: translateY(-21px);
	}
}

@media screen and (max-width: 400px) {
	.controls {
		flex-direction: column;
	}
}

@media screen and (max-width: 300px) {
	.line {
		display: flex;
		flex-direction: column;
		align-items: center;
	}	
}

@media screen and (max-width: 1024px) {
	.card2 {
		flex-direction: column;
		gap: 20px;
	}
}
