@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --white: #FFFFFF;
  --black: #000000;
  --blue-green: #2EC4B6;
  --redical: #FF3366;
  --florange: #E4572E;
  --gray: #D2CECD;
  --window: #3A6EA5;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: auto;
  font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
  justify-content: center;
  text-align: center;
}

#bubble_wrap {
  justify-content: center;
  overflow: hidden;
}

header {
  height: 36px;
  width: 100%;
  margin: 2px;
  text-align: center;
}

.btn {
  float: left;
  margin-left: 20px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border: none;
  border-radius: none;
  background-color: var(--blue-green);
  letter-spacing: 2px;
  cursor: pointer;
}

.reset {
  margin-right: 10px;
}

.control:active {
  background-color: var(--blue-green);
}

.on {
  background-color: hsl(300, 30%, 70%);
  font-weight: bold; 
}

.off {
  color: #666;
  background-color: hsl(200, 70%, 70%); 
}

#container {
  position: relative;
  height: 842px;
  width: 1560px;
  margin: auto;
  z-index: 0;
  overflow: hidden;
}

.frame {
  position: absolute;
  height: 842px;
  width: 22px;
  z-index: 100;
  background-color: white;
}

.left {
  left: -22px;
}

.right {
  right: -22px;
}

.bubble {
  position: absolute;
  cursor: pointer;
}

.popped {
  position: absolute;
}

.clear {
  clear: both;
}

.main {
  display: flex;
	width:100%;
	height:100vh;
	z-index: 400;
	top:0;
	left:0;
	position: relative;
	justify-content: center;
}

.main-box {
  display: flex;
  flex-direction: column;
	background-color:var(--white);
	min-width: 500px;
	max-width: 800px;
	margin: auto;
	padding-top: 1px;
	justify-content: space-between;
	box-shadow: 10px 10px 5px #0A3B76;
  cursor: default;
  z-index: 200;
}

.main-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-name {
  width:100%;
  font-size: 3.5vh;
  position: relative;
  white-space: nowrap;
  font-family: "VT323", monospace;
  background-image: url('assets/stripes.svg');
  background-color:var(--white);
  color: var(--black);
  padding-bottom: 1px;
  padding-top:1px;
}

.header-namebar {
  text-decoration: none;
  text-align: center;
}
  
.header-namebar_a {
  text-decoration: none;
  color: var(--black);
  text-align: center;
  background-color: var(--white);
  padding: 1px 14px;
  font-size: 3.5vh;
}

.header-tiles {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width:100%;
  white-space: nowrap;
  font-size: 3vh;
  font-family: "VT323", monospace;
  background-color: var(--white);
  color: var(--black);
  border-bottom: 2px solid;
  border-bottom: double;
  padding-bottom: 1px;
  border-width: thick;
}

.header-tiles_entries {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
}

.header-tiles_entry-button {
  text-decoration: none;
  color: var(--black);
  line-height: 1;
}
  
.header-tiles_entry {
  padding: 5px;
  padding-left: 8px;
}
  
.header-tiles_entry-text {
  width: 100%;
  margin: 0;
}

.header-tiles_entry-text:hover {
  color: var(--white);
  background: var(--black);
}

.main-content {
  display: flex;
  flex-direction: column;
  margin-left: 1vh;
  margin-right:1vh;
}

.line-1{
  top: 50%;  
  width: 24em;
  margin: 0 auto;
  border-right: 2px solid rgba(255,255,255,.75);
  font-size: 180%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* Animation */
.anim-typewriter {
  animation: typewriter 4s steps(44) 1s 1 normal both,
  blinkTextCursor 500ms steps(44) infinite normal;
  animation-iteration-count: infinite;    
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 24em;
  }
}
@keyframes blinkTextCursor{
  from {
    border-right-color: rgba(255,255,255,.75);
  }
  to {
    border-right-color: transparent;
  }
}

.cursor::after {
  height: 2.6vh;
  width: 1vh;
  line-height: 2.6vh;
}
  
.cursor::after {
  content: '';
  display: inline-block;
  margin-left: 3px;
  background-color: rgb(119, 177, 231);
  animation-name: blink;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  line-height: 1vh;
  vertical-align: middle;
}
  
@keyframes blink {
  0% {
    opacity: 1;
  }
  49% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.text-content {
  font-family: monospace;
  color:var(--black);
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.7vh;
}

.blue-link {
  font-family: monospace;
  color: var(--window);
}

.figure {
  display: flex;
  cursor: default;
  flex-direction: column;
}

.mojaslika {
  display: flex;
  margin: 0 auto;
  padding-bottom: 10px;
  object-fit: cover;
  height: 370px;
  width: 600px;
  justify-content: center;
}
  
.figcapture {
  text-align: end;
  font-family: monospace;
  margin-right: 75px;  
  padding-bottom: 3px;
}



/* MEDIA QUERIES */
@media only screen and (max-width: 1550px) {
  #container {
    width: 100%;
    padding: 0;
  }

  .main-box {
    max-width: 550px;
    height: auto;
    margin-top: 30px;
    padding-top: 1px;
    justify-content: space-between;
  }

  .mojaslika {
    width: 400px;
    height: auto;
    padding: 0;
    padding-bottom: 15px;
    object-fit: contain;
  }

  .figure {
    font-size: 10px;
  }
}

@media only screen and (max-width: 670px) {
  #container {
    width: 100%;
    padding: 0;
  }

  header {
    display: none;
  }
}

@media only screen and (max-width: 495px) {
  html {
    background-color: #000000;
  }

  .main-box {
    min-width: 200px;
	  max-width: 350px;
  }

  .header-namebar_a {
    font-size: 2.5vh;
  }

  .header-tiles_entries {
    font-size: 2.5vh;
  }

  .mojaslika {
    width: 300px;
  }

  .line-1 {
    font-size: 100%;
  }

  .figcapture {
    text-align: center;
    margin-right: 0;
  }

  .cursor::after {
    height: 1.5vh;
  }
}