-
Notifications
You must be signed in to change notification settings - Fork 0
/
substitution.html
156 lines (141 loc) · 4.33 KB
/
substitution.html
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Substitution Techniques</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(135deg, #f4a261, #e76f51);
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
text-align: center;
}
h1 {
font-size: 3rem;
color: #f1faee;
margin-bottom: 40px;
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
animation: fadeInUp 2s ease-out;
}
.options {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
width: 80%;
max-width: 900px;
animation: fadeInUp 2s ease-out;
}
.option {
background: #e9c46a;
padding: 30px;
border-radius: 12px;
cursor: pointer;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, background 0.3s, box-shadow 0.3s;
text-align: center;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.option:hover {
transform: translateY(-10px);
background: #f4a261;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.option h2 {
font-size: 1.5rem;
margin: 0;
color: #264653;
text-transform: uppercase;
font-weight: 600;
transition: color 0.3s ease;
}
.option:hover h2 {
color: #2a9d8f;
}
.option p {
font-size: 1rem;
margin: 15px 0 0;
color: #264653;
transition: color 0.3s ease;
}
.option:hover p {
color: #e9c46a;
}
footer {
position: absolute;
bottom: 20px;
font-size: 1rem;
color: rgba(255, 255, 255, 0.7);
}
footer a {
text-decoration: none;
color: #e9c46a;
font-weight: 600;
}
footer a:hover {
text-decoration: underline;
color: #f1faee;
}
/* Keyframe Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Media Queries */
@media (max-width: 768px) {
h1 {
font-size: 2.4rem;
}
.options {
gap: 20px;
}
.option {
padding: 20px;
}
}
</style>
</head>
<body>
<h1>Substitution Techniques</h1>
<div class="options">
<div class="option" onclick="window.location.href='monoalphabetic_cipher.html'">
<h2>Monoalphabetic Cipher</h2>
<p>A fixed substitution cipher that replaces letters with other letters.</p>
</div>
<div class="option" onclick="window.location.href='polyalphabetic_cipher.html'">
<h2>Polyalphabetic Cipher</h2>
<p>Uses multiple alphabets for substitution.</p>
</div>
<div class="option" onclick="window.location.href='playfair_cipher.html'">
<h2>Playfair Cipher</h2>
<p>A digraph cipher that operates on pairs of letters.</p>
</div>
<div class="option" onclick="window.location.href='hill_cipher.html'">
<h2>Hill Cipher</h2>
<p>Uses linear algebra for substitutions in blocks of letters.</p>
</div>
</div>
<footer>
Made with 💻 by <a href="https://www.linkedin.com/in/kiran-kumar-k" target="_blank">Kiran</a>
</footer>
</body>
</html>