aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/styles/search.module.css
blob: abed86c6b42c4a4bafea43522ba1bbafecfa131d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.SearchBarContainer {
	padding: 1rem 0 0.8rem 0;
	display: flex;
	align-items: center;
	width: 100%;
}

.SearchInputContainer {
	display: flex;
	align-items: center;
	background-color: #1f1f1f;
	padding: 0.4rem;
	border-radius: 0.5rem;
	width: 40%;
}

.animeHistoryButton {
	font-family: "Lexend Deca", serif;
	outline: none;
	border: none;
	background-color: #121212;
	color: white;
	margin: 0 0.1rem 0 0.2rem;
	padding: 0.6rem;
	cursor: pointer;
	border-radius: 0.5rem;
}

.SearchInputContainer input {
	background-color: transparent;
	border: none;
	outline: none;
	color: white;
	margin-left: 0.5rem;
	font-size: 20px;
	font-family: "Atkinson Hyperlegible", serif;
	width: 100%;
}

.SearchLoading {
	color: white;
	text-align: center;
}

/* Search Results */

.SearchResultsContainer {
	display: flex;
	align-items: center;
	overflow-x: auto;
	padding-bottom: 0.5rem;
}

.AnimeEntry {
	position: relative;
	display: inline-block;
	overflow: hidden;
	border-radius: 0.5rem;
	transition: opacity 200ms ease;
	margin: 0.4rem;
}

.SearchResultsContainer:hover .AnimeEntry {
	opacity: 0.5;
}

.SearchResultsContainer:hover .AnimeEntry:hover {
	opacity: 1;
}

.AnimeEntry p {
	position: absolute;
	bottom: 0;
	/* Adjust the value as needed */
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	color: white;
	padding: 5px;
	text-align: center;
	background-color: #121212ab;
	backdrop-filter: blur(10px);
	text-transform: uppercase;
	width: 100%;
	max-width: 170px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.AnimeEntry img {
	display: block;
	transition: transform 200ms ease;
}

.AnimeEntry img:hover {
	transform: translateY(-5px) scale(1.04);
}


.SearchResultsContainer::-webkit-scrollbar {
	height: 0.5rem;
}

.SearchResultsContainer::-webkit-scrollbar-thumb {
	background: rgb(83, 83, 83);
	border-radius: 1rem;
}

@media screen and (max-width: 768px) {
	.SearchInputContainer {
		width: 100%;
	}


}