#randomWordButton {
margin-top: 20px;
background-color: #007bff;
color: #ffffff;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#randomWordButton:hover {
background-color: #0056b3;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
transform: translateY(-2px);
}
/* Search bar */
.search-bar {
margin-bottom: 20px;
display: flex; /* Make children align horizontally */
align-items: center; /* Align children vertically */
}
/* Search input */
.search-input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px 0 0 5px;
width: 88% !important;
font-size: 16px;
}
/* Search icon */
.search-icon {
cursor: pointer;
font-size: 20px;
vertical-align: middle;
border: 1px solid #ccc;
border-radius: 0 5px 5px 0;
padding: 8px;
background-color: #fff; /* Set background color to white */
}
/* Search options */
.search-options {
margin-bottom: 20px;
}
.search-options label {
margin-right: 10px;
}
/* Daily quote */
.daily-quote {
margin-bottom: 20px;
}
/* Style for Google search form */
form {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
input[type="text"] {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px 0 0 5px;
width: 76%;
font-size: 16px;
}
input[type="submit"] {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 0 5px 5px 0;
cursor: pointer;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
padding: 20px;
text-align: center;
overflow: hidden;
overflow-y: auto;
}
.snowflake {
position: fixed;
top: -10px;
z-index: 1000;
pointer-events: none;
}
.container {
max-width: 800px;
margin: 0 auto;
}
.row {
display: flex;
justify-content: space-between;
align-items: stretch;
margin-bottom: 20px;
}
.link {
flex: 1;
text-align: center;
background-color: #ffffff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s ease;
margin-right: 10px; /* 新增 */
}
.link:last-child {
margin-right: 0; /* 新增 */
}
.link:hover {
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
.link a {
color: #333;
text-decoration: none;
font-weight: bold;
font-size: 16px;
}
#randomNewsButton {
margin-top: 20px; /* 按钮与新闻容器之间的间距 */
background-color: #007bff; /* 按钮背景颜色 */
color: #ffffff; /* 按钮文字颜色 */
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#randomNewsButton:hover {
background-color: #0056b3; /* 按钮鼠标悬停时的背景颜色 */
}
/* 页面背景渐变效果 */
body {
background: linear-gradient(to right, #74ebd5, #acb6e5);
}
/* 标题样式 */
h1 {
color: #333;
font-size: 36px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
/* 链接块悬停效果 */
.link:hover {
transform: scale(1.05);
border: 1px solid #007bff;
}
/* 按钮样式 */
#randomNewsButton {
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
transition: all 0.3s ease;
}
#randomNewsButton:hover {
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
transform: translateY(-2px);
}
/* 为每一行的链接块指定简约风格的颜色 */
.row:nth-child(1) .link {
background: #e3f2fd;
}
.row:nth-child(2) .link {
background: #e8f5e9;
}
.row:nth-child(3) .link {
background: #fffde7;
}
.row:nth-child(4) .link {
background: #ffebee;
}
/* 修改链接块悬停时的颜色变化 */
.link:hover {
background: #eceff1;
}
/* 为按钮添加简约风格的颜色 */
#randomNewsButton {
background-color: #90caf9;
color: #0d47a1;
}
#randomNewsButton:hover {
background-color: #64b5f6;
}