-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (100 loc) · 2.8 KB
/
style.css
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
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f0f0f0;
}
/* 見出しのスタイル調整 */
h1 {
font-size: 36px; /* フォントサイズの調整 */
text-align: center; /* 中央揃え */
margin-bottom: 20px; /* 下部のマージン */
}
.gacha-container {
background-color: #ffffff;
margin: 50px auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 300px;
}
#gachaCount,#sleepHours {
width: 80%;
padding: 10px;
margin-bottom: 20px;
border-radius: 5px;
border: 1px solid #ddd;
}
/* ガチャを開始ボタンのスタイル */
#gachaButton {
padding: 15px 30px;
background-color: #FFD700; /* 金色の背景 */
color: #000; /* テキストの色を黒または暗めの色に */
font-size: 18px;
font-weight: bold;
border: none;
border-radius:30px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#gachaButton:hover {
background-color: #FFC107; /* ホバー時に少し明るい金色に */
transform: scale(1.05);
}
/* 最初に戻るボタンのスタイル */
.reset-button {
width: 80%;
padding: 10px;
background-color: #008CBA; /* ボタンの背景色 */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 20px; /* マージンで周りの要素との距離を設定 */
}
.reset-button:hover {
background-color: #007B9E; /* ホバー時の背景色 */
}
/* キャラクター画像のスタイル */
#result img {
width: 100%; /* 画像の幅を適切に調整 */
max-width: 200px; /* 最大幅を設定 */
height: auto;
border-radius: 10px; /* 画像の角を丸くする */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加 */
margin-bottom: 10px; /* 下部のマージン */
}
/* ガチャ結果のコンテナスタイル */
.gacha-item {
border: 1px solid #ddd;
border-radius: 10px;
padding: 10px;
margin-top: 10px;
margin-bottom: 10px;
text-align: center;
}
.gacha-item img {
max-width: 100%;
height: auto;
border-radius: 5px;
}
/* 市町村名のスタイル */
.gacha-item .town-name {
font-family: 'Arial', sans-serif; /* シンプルでモダンなフォント */
font-size: 32px; /* より大きなフォントサイズ */
font-weight: bold; /* 太字で強調 */
color: #333; /* 濃い文字色で読みやすく */
margin-top: 2px;
}
/* フラッシュエフェクトのスタイル */
.flash-effect {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #FFD700;
opacity: 0.1;
transition: opacity 250ms ease-in-out;
z-index: 1000; /* 他の要素より上に表示 */
}