Main Page/styles.css

From NeuroWiki
Revision as of 21:04, 9 November 2024 by Zer0in (talk | contribs)
Jump to navigation Jump to search
.base_block {
	padding: 1.6em;
	margin: 0.8em auto;
	background-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 5px #aaa;
}
.base_block_main{
	max-width: 1600px;
}
.flex_block{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.video_block{
	position: relative; 
	box-shadow: 0 2px 5px #aaa;
	max-width: 800px;
	transition: transform 0.3s ease-in-out;
	overflow: hidden;
}
.video_block:hover {
	box-shadow: 1px 5px 8px #aaa;
	animation: float 4s infinite ease-in-out;
}
.video_block .neuro-button{
	position: absolute;
	width: 0;
	height: 40px;
	overflow: hidden;
	white-space: nowrap;
	background-color: rgba(150, 50, 220, 0.4);
	color: white;
	padding: 0;
	box-sizing: border-box;
	transition: width 1.2s ease-in-out, padding 2.3s ease-in-out, height 0.3s ease-in-out, transform 0.3s ease-in-out;
	font-size: 24px;
	text-align: center;
}
.video_block:hover .neuro-button{
	width: 120px;
	padding: 3px;
	padding-left:6px;
	padding-right:6px;
}
.video_block .neuro-button:hover{
	height: 60px;
	padding: 9px;
}
.video_block #neuro{
	top: 55%;
	right: 5%;
	animation: float-neuro 0.35s infinite ease-in-out;
}
.video_block #evil{
	top: 53%;
	left: 18%;
	animation: float-evil 0.27s infinite ease-in-out;
}
.video_block #vedal{
	top: 25%;
	right: 25%;
	animation: float-vedal 0.41s infinite ease-in-out;
}
.video_block * a{
	color: white;
	width:100%;
	height:100%;
	text-decoration: none;
	justify-content: center;
	align-items: center;
}
.video_block * a.new{
	color: white;
	width:100%;
	height:100%;
	text-decoration: none;
	justify-content: center;
	align-items: center;
}
@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}
@keyframes float-neuro {
	0%, 100% {transform: translate(0px, 0px);}
	50% {transform: translate(1px, -1.67px);}
	80% {transform: translate(-1.67px, 0.83px);}
}
@keyframes float-evil {
	0%, 100% {transform: translate(0px, 0px);}
	30% {transform: translate(-0.83px, 1px);}
	70% {transform: translate(1.67px, -1.67px);}
}
@keyframes float-vedal {
	0%, 100% {transform: translate(0px, 0px);}
	40% {transform: translate(-1.03px, 0.7px);}
	50% {transform: translate(1.67px, 1px);}
	90% {transform: translate(-0.83px, -1.67px);}
}
.video_block .mw-default-size span img {
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}
.video_block .progress_bar{
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 0;
	color: white;
	text-align: center;
	background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
	transition: height 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.video_block:hover .progress_bar{
	height: 64px;
}
.video_block .progress_bar .bar{
	position: absolute;
	top: 22px;
	left: 2.5%;
	width: 95%;
	height: 4px;
	color: white;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.8);
}
.dOOPAe {
	position: absolute;
	top: 26px;
	left: 24px;
	color: white;
	font-size: 20px;
	text-align: center;
}
.dO1PAe {
	position: absolute;
	top: 4px;
	left: 20px;
	color: white;
	text-align: center;
}
.sidebar_block{
	min-width:300px;
	margin:0;
	flex-grow: 1;
	padding: 0;
}
.flex_button{
	width:auto;
	min-width:70px;
	height:150px;
	flex-grow: 1;
	transition: transform 0.3s ease-in-out;
}
.flex_button_2{
	width:auto;
	min-width:70px;
	height:auto;
	font-size: 18px;
	flex-grow: 1;
	border-right: 3px solid rgba(198, 154, 133, 0.85);
	border-bottom: 3px solid rgba(198, 154, 133, 0.85);
	margin:0.3em;
	background-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 2px 5px #aaa;
	transition: transform 0.3s ease-in-out,box-shadow 0.4s ease-in-out,font-size 0.6s ease-in-out;
	padding:4px;
}
.flex_button_2:hover{
	box-shadow: 0 8px 15px #aaa;
	font-size: 16px;
}
.flex_button:hover{
	transform: scale(1.15);
}
@media (min-width: 1720px) {
	.flex_button{
		width:50%;
	}
	.sidebar_block{
		flex-basis: 300px;
	}
}
@media (min-width: 1500px) {
	.sidebar_block_left_2{
		max-width: 400px;
	}
}
.flex_button a{
	width:100%;
	height:100%;
	text-decoration: none;
	font-size: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.flex_button_2 a{
	width:100%;
	height:100%;
	text-decoration: none;
	display: flex;
	justify-content: center;
	align-items: center;
}
.sidebar_block_left{
	padding:0.2em;
	margin:0.2em;
	width:100%;
}

.container {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
/*.container p{
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	justify-content: center;
}*/
.container * a{
	padding:0.2em;
	padding-right:0.4em;
	padding-left:0.4em;
	flex: 1 1 calc(33.333% - 10px); /* 3 items per row with space for borders */
	font-weight: bold;
	font-size:20px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	margin:2px; /* Space between items */
	text-decoration: none;
	transition: all 0.15s ease-in;
	box-shadow: 5px 5px 2px rgba(150, 150, 150, 0.6);
}
.container * a:hover{
	box-shadow: 7px 7px 6px rgba(150, 150, 150, 0.6);
}
.container * a.external{
	background-image:none;
}
.container .en a{
	background-color: rgba(1, 33, 105, 0.8); /* 80% transparent blue */
	border: 5px solid rgba(200, 16, 46, 0.8); /* 5px 80% transparent red */
	color: white;
}
.container .en a.external:visited{
	color: white;
}
.container .zh a{
	background-color: rgba(238, 28, 37, 0.8); /* 80% transparent blue */
	border: 5px solid rgba(238, 28, 37, 0.8); /* 5px 80% transparent red */
	color: #ffff00;
}
.container .zh a.external:visited{
	color: #ffff00;
}
.container .ja a{
	background-color: rgba(255, 255, 255, 0.8); /* 80% transparent blue */
	border: 5px solid rgba(255, 255, 255, 0.8); /* 5px 80% transparent red */
	color: #bd0029;
}
.container .ja a.external:visited{
	color: #bd0029;
}

.container_character {
	width: 100%;
	overflow: hidden;
	display: flex;
	background-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 5px #aaa;
}

.scroll-content {
	display: flex;
	/*animation: scroll 15s linear infinite;*/
}

.item {
	width: 160px;
	height:180px;
	margin:6px;
	border-right: 1px solid #ccc;
	text-align: center;
	padding: 10px;
	background-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 2px 5px #aaa;
}
.item-img {
	width: 150px;
	height:150px;
	position: relative;
	overflow: hidden;
}

@keyframes scroll {
	0% {
		transform: translateX(100%);
	}
	50% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}
.container_character:hover .scroll-content {
	animation-play-state: paused;
}