1
1
/* General Styles */
2
2
body {
3
3
font-family : Arial, sans-serif;
4
- background-color : # 160457 ;
4
+ background-color : # 160457 ; /* Blue background */
5
5
color : # 99d6dd ;
6
6
margin : 0 ;
7
7
padding : 0 ;
@@ -13,23 +13,30 @@ body {
13
13
14
14
/* Contact Form Container */
15
15
.contact-container {
16
- background-color : rgb ( 4 , 9 , 85 );
16
+ background-color : # 0b065f ; /* Darker blue for form background */
17
17
padding : 40px ;
18
18
border-radius : 10px ;
19
- box-shadow : 0 0 10px rgba (243 , 246 , 246 , 0.1 );
19
+ box-shadow : 0 0 10px rgba (243 , 246 , 246 , 0.2 );
20
20
max-width : 500px ;
21
21
width : 100% ;
22
22
text-align : center;
23
+ transition : transform 0.3s ease, box-shadow 0.3s ease;
24
+ }
25
+
26
+ .contact-container : hover {
27
+ transform : scale (1.02 );
28
+ box-shadow : 0 0 25px rgba (255 , 255 , 255 , 0.6 ); /* White hover shadow */
23
29
}
24
30
25
31
.contact-container h2 {
26
32
margin-bottom : 20px ;
27
33
font-size : 24px ;
34
+ color : # ffffff ; /* White title for contrast */
28
35
}
29
36
30
37
.contact-container p {
31
38
margin-bottom : 30px ;
32
- color : # 0bc1f9 ;
39
+ color : # 0bc1f9 ; /* Light blue for the paragraph text */
33
40
}
34
41
35
42
/* Form Styles */
@@ -41,19 +48,39 @@ form {
41
48
label {
42
49
text-align : left;
43
50
margin-bottom : 5px ;
44
- color : # 8fe8f4 ;
51
+ color : # 8fe8f4 ; /* Lighter text color for labels */
45
52
}
46
53
47
54
input [type = "text" ],
48
55
input [type = "email" ],
49
56
textarea {
50
- padding : 10 px ;
57
+ padding : 12 px ;
51
58
margin-bottom : 15px ;
52
59
border-radius : 5px ;
53
60
border : 1px solid # ccc ;
54
61
font-size : 16px ;
55
62
width : 100% ;
56
63
box-sizing : border-box;
64
+ background-color : # 110769 ; /* Darker blue text field background */
65
+ color : # ffffff ; /* White text in the fields */
66
+ transition : background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
67
+ }
68
+
69
+ input [type = "text" ]: hover ,
70
+ input [type = "email" ]: hover ,
71
+ textarea : hover {
72
+ background-color : # 0d0891 ; /* Slightly lighter blue on hover */
73
+ border-color : # 0bc1f9 ; /* Lighter blue border on hover */
74
+ box-shadow : 0 0 5px rgba (255 , 255 , 255 , 0.5 ); /* White shadow on hover */
75
+ }
76
+
77
+ input [type = "text" ]: focus ,
78
+ input [type = "email" ]: focus ,
79
+ textarea : focus {
80
+ background-color : # 0d0891 ; /* Lighter blue background when focused */
81
+ border-color : # 05d1fa ; /* Light blue border on focus */
82
+ outline : none;
83
+ box-shadow : 0 0 10px rgba (255 , 255 , 255 , 0.7 ); /* Stronger white shadow when focused */
57
84
}
58
85
59
86
textarea {
@@ -68,11 +95,14 @@ button {
68
95
border-radius : 5px ;
69
96
cursor : pointer;
70
97
font-size : 16px ;
71
- transition : background-color 0.3s ease;
98
+ transition : background-color 0.3s ease, transform 0.2 s ease , box-shadow 0.3 s ease ;
72
99
}
73
100
74
101
button : hover {
75
102
background-color : # 05d1fa ;
103
+ color : # 08044c ; /* Darker blue text on hover */
104
+ transform : scale (1.05 );
105
+ box-shadow : 0 0 15px rgba (255 , 255 , 255 , 0.7 ); /* White hover shadow on button */
76
106
}
77
107
78
108
/* Back to Home Button Styles */
@@ -85,9 +115,12 @@ button:hover {
85
115
border-radius : 5px ;
86
116
cursor : pointer;
87
117
font-size : 16px ;
88
- transition : background-color 0.3s ease;
118
+ transition : background-color 0.3s ease, transform 0.2 s ease , box-shadow 0.3 s ease ;
89
119
}
90
120
91
121
.back-button : hover {
92
122
background-color : # 06fdfd ;
123
+ color : # 08044c ;
124
+ transform : scale (1.05 );
125
+ box-shadow : 0 0 15px rgba (255 , 255 , 255 , 0.7 ); /* White hover shadow */
93
126
}
0 commit comments