summaryrefslogtreecommitdiff
path: root/style.css
blob: 84f741cbc96d9d49f610e23a7cd29bc4ca5f8e0f (plain)
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
157
158
159
160
161
162
163
164
165
166
167
168
169
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

html {
    height: 100%;
}

body {
    background-image: linear-gradient(135deg, #266bff, #59cfa3);
    background-repeat: no-repeat;
    color: white;
}

header, main, footer {
    margin-left: 100px;
    padding-top: 10px;
}

header {
    font-family: 'Raleway', sans-serif;
    font-size: 250%;
}

main {
    font-family: 'Lato', sans-serif;
}

footer {
    padding-top: 200px;
}

p {
    font-size: 125%;
}

form {
    border-radius: 15px;
    background-image: linear-gradient(315deg, #266bff, #59cfa3);
    padding: 25px 10px;
    width: fit-content;
}

.email {
    margin-top: 15px;
    height: 25px;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    width: 350px;
}

input[type=submit] {
    background-color: #59cfa3;
    color: white;
    margin-left: 15px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 125%;
}

label {
    font-family: 'Raleway', sans-serif;
    font-size: 200%;
}

nav {
    float: right;
    margin-top: 25px;
    margin-right: 100px;
}

a {
    font-family: 'Raleway', sans-serif;
    font-size: 135%;
    color: white;
    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
}

a:hover, a:active{
    background-color: rgb(75, 207, 207);
    border-radius: 25px;
    transition: 0.5s;
}

figure {
    float: right;
    margin-top: -150px;
    margin-right: 200px;
    max-width: 100%;
    min-width: none;
    height: auto;
}

/* too tired to remove code duplication and I am afraid things will break;
is this what legacy programs feel like? Yikes!*/
@media all and (max-width: 768px) {
    body 
    {
        position: absolute;
        text-align:center;
    }

    header {
        margin-top: 100px;
    }

    nav {
        float: center;
        margin-top: 25px;
    }

    header, main, footer {
        margin-left: 0px;
        padding: 0px;
    }

    a, form {
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
    .email {
        margin-bottom: 20px;
    }
}


/* here we define rules for mobile devices */
@media all and (max-width: 480px) {
    body 
    {
        background-size: cover;
        background-image: none;
        background-color:rgb(75, 143, 207);
        position:absolute;
        text-align:center;
        margin: 0px;
        padding: 0px;
    }

    header {
        margin-top: 100px;
    }

    nav {
        float: center;
        margin-top: 25px;
    }

    header, main, footer {
        margin-left: 0px;
        padding: 0px;
    }

    form {
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
    .email {
        margin-bottom: 20px;
    }
}