summaryrefslogtreecommitdiff
path: root/styles.scss
blob: fb933e963140afe7d298e6c34aa7413ab328987f (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
//Colors
$foreground-color: #27327b;
$background-color: #e6e6e6;
$primary-color: #3eadad;
$secondary-color: #487143;
$accent-color: #cfab28;

// Fonts
@font-face {
	font-family: "Josefin Sans";
	src: url('fonts/JosefinSans-VariableFont_wght.ttf');
	src: url('fonts/JosefinSans-VariableFont_wght.ttf') format('truetype');
}

@font-face {
	font-family: "Josefin Slab";
	src: url('fonts/JosefinSlab-VariableFont_wght.ttf');
	src: url('fonts/JosefinSlab-VariableFont_wght.ttf') format('truetype');
}


$sans-serif-font: 'Josefin Sans';
$serif-font: 'Josefin Slab';


//GLOBAL STYLES
* {
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;

	background-size: cover;
	background-repeat: no-repeat;
	background-color: $background-color;
}


body {
  font-family: $serif-font;
  font-weight: 300;
  color: $foreground-color;
}

a {
	font-family: $sans-serif-font;
	font-weight: 300;
	color: $foreground-color;
}

h1, h2, h3, h4, h5 {
  font-family: $sans-serif-font;
  font-weight: 500;
  color: $foreground-color;
}

html {font-size: 100%;} /* 16px */
h1 {font-size: 4.210rem; /* 67.36px */}
h2 {font-size: 3.158rem; /* 50.56px */}
h3 {font-size: 2.369rem; /* 37.92px */}
h4 {font-size: 1.777rem; /* 28.48px */}
h5 {font-size: 1.333rem; /* 21.28px */}
small {font-size: 0.750rem; /* 12px */}

//MIXIN
@mixin flexcenter {
	display: flex;
	justify-content: center;
	align-items: center;
}

// Animation
@keyframes reveal {
	0% {
	  transform: translateY(100%);
	  opacity: 0;
	}
	100% {
	  transform: translateY(0);
	  opacity: 1;
	}
}

//MAIN CSS
.menu-container {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100%;
	@include flexcenter();

	.menu-wrapper {
		list-style: none;
	
		li {
			margin: 0.5vmin 0;
			display: flex;
			justify-content: left;
			opacity: 0; // Start items as invisible
			animation: reveal 0.6s ease-out forwards;
			
			&:nth-child(1) {
			animation-delay: 0.4s; // Delay for the first item
			}
			&:nth-child(2) {
			animation-delay: 0.55s; // Delay for the second item
			}
			&:nth-child(3) {
			animation-delay: 0.7s; // Delay for the third item
			}
			&:nth-child(4) {
			animation-delay: 0.85s; // Delay for the fourth item
			}
	
			a {
				text-decoration: none;
				font-weight: 500;
				font-size: 15vmin;
				color: $foreground-color;
			}
		}
	}
}