/*Global CSS varables*/
:root {
	--contact-bg-color: #434343;
	--link-color: rgb(201,162,61);
	--bg: url(../images/bg.png);
	--font-style: sans-serif;
	--bg-color: rgba(67,67,67,67.25);
}

/*elements & attributes areas*/
* {
	transition-duration: 0.5s;
}

/*global style*/
body {
	/* background: #252525;*/
	background-image: var(--bg);
	background-repeat: no-repeat;
	font-family: var(--font-style);
	background-size: cover;
	background-attachment: scroll;
	color:white; 
}

/*header areas*/
header {
	border: solid 2px white;
	border-radius: 20px;
	padding: 2px;
}

nav {
	background-color: rgba(67,67,67,0.7);
	border-radius: 15px;
	margin: auto;
	width: 90%;
}

nav ul{
	display: grid;
	grid-template-columns: auto auto auto auto;
	grid-gap: 50px;
	align-content: space-evenly;
}

nav ul li{
	text-align: center;
  padding:20px;
}

nav ul li:hover{
	background-color: rgb(235,180,113,0.25);
	border-radius: 15px;
}

/*para. areas*/
article {
	background: var(--bg-color);
	border: black solid 1px;
	border-radius: 15px;
	margin: 20px auto 10px auto ;
	width: 80%;
	padding: 10px;
	box-shadow: 10px 10px 5px black;
}

p{
	text-indent: 50px;
	line-height: 1.8;
}

/*list areas*/
ol,ul li{
	display: inline-block;
  list-style-type: none;
}

article li:nth-child(even){
	border: 2px solid #E03C8A;
	width: 80%;
	background: rgba(0,0,0,0.25);
	border-radius: 15px;
	text-indent: 20px;
	margin: 20px auto;
	padding: 10px;
	box-shadow: 10px 10px 5px black;
	line-height: 1.8;
}

article li:nth-child(odd){
	border:2px solid #58B2DC;
	width: 90%;
	background: rgba(0,0,0,0.25);
	border-radius: 15px;
	text-indent: 20px;
	display: block;
	margin: 20px auto;
	padding: 10px;
	box-shadow: 10px 10px 5px black;
	line-height: 1.8;
}

/*heading areas*/
h1, h2, h3, h4,table caption, tr th {
	text-align: center;
}

h1 {
	text-transform: uppercase;
}

h1:hover{
	text-shadow: 4px 4px 6px lightblue;
}

/*a areas*/
a {
	color: var(--link-color);
	text-decoration: none;
}

a:hover {
	color: rgb(253,249,123);
	text-decoration: underline;
	border-radius: 5px;
}

nav a {
	color: #58B2DC;
	text-decoration: none;
}

nav a:hover {
	color: rgb(0,180,144);
	text-decoration: underline;
	border-radius: 5px;
	text-decoration: none;
}

/*figure areas*/
figure{
	text-align: center;
	border: 2px white solid;
	margin: auto;
	padding: 15px;
}

figcaption {
	color:#51A8DD;
	letter-spacing: 3px;
}

img{
	max-width: 100%;
	display: block;
	margin: auto;
}

/*table areas*/
table {
  border: 4px solid white;
	border-collapse: collapse;
  width: 80%;
  margin:auto;
}

table td, th {  
  border: 3px solid #E83015;
  text-align: center;
	padding: 10px;
}

caption{
	text-shadow: 2px 2px 5px #E79460;
}

tr:nth-child(even) {
	background-color: #373C38;
}

/*footer areas*/
footer{
	background-image: linear-gradient(90deg, #CB1B45, #20604F);
	border-radius: 10px;
	width: 80%;
	margin: auto;
}

footer ul {
	text-align: center;
}

footer ul li {
	padding:10px;
	display: inline-block;
	width: 20%;
	
}

footer ul li:hover {
	color: rgb(253,249,123);
	text-decoration: underline;
	border-radius: 5px;
	background-color: rgb(235,180,113,0.25);
}

/* From style */
input[type=text]{
	width: 100%;
	border: none;
	background: none;
	border-bottom: #F7D94C 3px solid;
  margin: 8px 0;
}

input[type=text]:focus{
	width: 100%;
	border: none;
	background: none;
  padding: 12px 20px;
	border-bottom: #A8D8B9 3px solid;
  margin: 8px 0;
}

input[type=radio]{
	display: inline-block;
}

fieldset{
	width: 90%;
	display: block;
	margin: 20px auto ;
	border-radius: 15px;
	padding: 10px;
	background-color: var(--bg-color);
}

fieldset p{
	margin: auto;
	padding: 10px;
	width: 80%;
	text-indent: 0;
}

select {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 4px;
  background-color: #74673E;
	color: white;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  resize: none;
}

input[type=submit]{
	background-color: #005CAF;
  border: none;
	border-radius: 15px;
  color: white;
  padding: 16px 32px;
  text-decoration: none;
  margin: auto;
	display: block;
	width: 80%;
	cursor: pointer;
}


input[type=submit]:hover{
	background-color: #58B2DC;
}

/*video area*/
video{
	display: block;
	width: 100%;
	height: auto;
}


/* class layor */
.icon {
	width: 16px;
	height: 16px;
}

.logo {
	width: 32px;
	height: 32px;
	border-radius: 5px;
	position: relative;
}

.video {
	margin: auto;
	width: 45%;
	text-align: center;
	text-indent: 0;
}

/*This part I use animation and sticy property*/
.sticky {
	position: sticky;
	border: none;
	right: 0;
	width: 15%;
  float: right;
	animation-name: Robot;
	animation-delay: 2s;
  animation-duration: 5s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	position: fixed;
}

/*-----------------Animation-------------------*/
@keyframes Robot{
  0%   {
		top:200px;
		transform: rotateY(0deg);
	}
  25%  {
		top:400px;
		transform: rotateY(0deg);
	}
	
	35%  {
		top:400px;
		transform: rotateY(180deg);
	}
	
  50%  {
		top:400px;
		transform: rotateY(180deg);
	}
	
	50%  {
		top:400px;
		transform: rotateY(180deg);
	}
	
	55%  {
		top:300px;
		transform: rotateY(180deg);
	}
	
	60%  {
		top:400px;
		transform: rotateY(180deg);
	}
	
  65%  {
		top:400px;
		transform: rotateY(0deg);
	}
	
  100% {
		top:200px;
		transform: rotateY(0deg);
	}
	
}
/*---------------------------------------------*/

.info {
	height: 64px;
	border: 2px solid white;
	border-radius: 15px;
  width: 60%;
}

.info img{
	max-height: 100%;
	display: block;
	float: left;
}

.info figcaption {
	letter-spacing: 0px;
}

.author{
	border-left: 7px solid #FFB11B;
  background-color: #096148;
  text-align: center;
 }

.cover {
	margin: 20px auto;
	width: 50%;
	border-radius:15px;
	width: 80%;
	background-color: var(--bg-color)
}

/*flexbox areas*/
.flex{
	display: flex;
  flex-direction: column;
	text-shadow: 4px 4px 4px lightblue;
}

.flexbox{
	background: var(--bg-color);
	border: black solid 1px;
	border-radius: 15px;
	margin: 20px auto 10px auto ;
	width: 80%;
	padding: 10px;
	box-shadow: 10px 10px 5px black;
	display: flex;
	flex-direction: row;	
  flex-wrap: wrap;
	justify-content: space-around;
	align-items: stretch;
}

.flexbox li{
	width: 30%;	
}

.flexbox figcaption {
	margin: 5px auto;
	border-top: white 2px solid;
	padding: 5px;
	color: #EBB471;
	text-align: center;
}

.character{
	max-height: 100%;
	max-width: 100%;
	border-radius: 20px;
}

/*Grid areas*/
.grid{
	display: grid;
	grid-template-columns: auto;
}

.grid-list{
	display: grid;
	grid-template-columns: auto auto auto;
	justify-content: space-around;
}

.grid-list p{
	text-indent: 20px;
}