summaryrefslogtreecommitdiff
path: root/turing-machine/css/styles.css
blob: 02279e513de9f463f8fd164b8e14ef998ac478eb (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
* {
  font-family: "Trebuchet MS", sans-serif;
}

button {
  background: #bbbbbb;
  border: 1px solid white;
  border-radius: 0.2rem;
  padding: 0.2rem;
}

button:hover {
  background: #cccccc;
}

body {
  margin: 0;
  background-color: #aaaaaa;
}

.container {
  display: flex;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;

  padding: 2rem;
}

.tape {
  display: flex;

  padding: 1rem;

  align-items: center;
  gap: 1rem;

  height: 5rem;
  max-width: 100%;

  border: 1px solid black;

  overflow-x: scroll;
  overflow-y: hidden;
}

.cell {
  position: relative;
  height: 80%;
  border: 3px solid black;
  transition: border 0.1s ease-in-out;
  transition: background 0.1s ease-in-out;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  gap: 0.2rem;

  padding: 0.2rem;
}

.circle {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background-color: wheat;
  border-radius: 50%;
  opacity: 0.001;
  transition: opacity 0.1s ease-in-out;
}

.cell.reading .circle {
  opacity: 1;
}

.reading {
  border-color: green;
  background-color: wheat;
}

.cell-input {
  width: 50px;
  text-align: center;
}