html {
  background: #cecece;
  padding: 0rem;
  font-family: "Menlo", monospace;
}

body {
  margin: 0px;
}

#page-container {
  max-width: 960px;
  width: 960px;
  margin: 1rem auto;
  background: #e5e5e5;
  border-radius: 1rem;
  font-size: 16px;
}

#window {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

#window[data-postcardview="true"] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: #377ba8;
  margin: 1rem 0;
}

.icon {
  width: auto;
  height:1.5rem
}

#contact-icon {
  margin: 0 auto
}

.footer {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

#contact-icon td.icon-padding {
  padding-left: 1rem;
  padding-right: 2rem;
}

#loginBtn {
    color: #377ba8;
    text-decoration:none
    cursor: pointer;
}

#loginBtn:hover {
  color: black;
  text-decoration:none;
  cursor: pointer;
}

hr {
  border: none;
  border-top: 1px solid lightgray;
}

nav {
  background: linear-gradient(to bottom, #cecece, #e5e5e5);
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  position: relative;
}

nav[data-postcardview="true"] {
  background: #e5e5e5;
  border-radius: 1rem;
}

.fill-item {
    flex-grow: 1;
}

nav h1 a {
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-between;
  align-items: center;
  width:100%;
}

nav ul li a, nav ul li span, header .action {
  display: block;
  padding: 0.5rem;
}

.content {
  padding: 0 1rem 1rem;
}

.content > header {
  border-bottom: 1px solid lightgray;
  display: flex;
  align-items: flex-end;
}

.content > header h1 {
  flex: auto;
  margin: 1rem 0 0.25rem 0;
}

.flash {
  margin: 1em 0;
  padding: 1em;
  background: #cae6f6;
  border: 1px solid #377ba8;
}

#tree {
  width:100%;
  height:auto;
}

#home {
  height:1.5rem;
  width:auto;
  position:relative;
  top:7px
}

.post > header {
  display: flex;
  align-items: flex-end;
  font-size: 0.85em;
}

.post > header > div:first-of-type {
  flex: auto;
}

.post > header h1 {
  font-size: 1.5em;
  margin-bottom: 0;
}

.post .about {
  color: slategray;
  font-style: italic;
}

.post .body {
  white-space: pre-line;
}

.content:last-child {
  margin-bottom: 0;
}

form {
  margin: 1em 0;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 0.5em;
}

input, textarea {
  margin-bottom: 1em;
}

 textarea {
  min-height: 12em;
  resize: vertical;
}

input.danger {
  color: #cc2f2e;
}

input[type=submit] {
  align-self: start;
  min-width: 10em;
  margin-bottom: 0em;
}

#loginPopup {
  display: none;
  position: absolute;
  top:35px;
  right:0px;
  width:13em;
  padding: 20px;
  background-color: #f1f1f1;
  border: 1px solid #767676;
  border-radius: 5px;
  z-index: 9999;
}

#banner {
    background-image: url('images/estonia.jpg');
    width:100%;
    height:415px;
    flex-direction: row;
    display: flex;
}

#banner-ice {
    background-image: url('images/ice_banner.jpg');
    width:100%;
    height:415px;
    flex-direction: row;
    display: flex;
}

#banner[data-short='true'] {
    background-image: url('images/estonia.jpg');
    width:100%;
    height:415px;
    flex-direction: row;
    display: flex;
}

.menuItems, .menuMargins {
    height:100%;
    flex: 1;
    transform: skewX(-10deg);
    transition: transform 0.3s ease;
}

.menuMargins {
    height:100%;
    flex: 0.2;
    transform: skewX(-10deg);
    transition: transform 0.3s ease;
}

#Contact:hover {
    background:#377ba866;
}

#Projects:hover {
    background:#377ba866;
}

#IceApp:hover {
    background:#377ba866;
}

.menuItems {
    background: linear-gradient(to bottom, #00000000, #00000066);
    margin-right:4px;
    display:flex;
    flex-direction: column;
    justify-content: flex-end;
}

.menuItems div {
    transform: rotateY(45deg);
    font-size:26pt;
    color:white;
    align:center;
}

#regForm {
    width:13em;
    margin-left:auto;
    margin-right:auto;
}

#addEventForm {
    width:13em;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
}

[data-selectedItem="true"] {
    background: linear-gradient(to bottom, #ffffffff, #00000066);
}

.footerText {
    text-align: center;
    width:100%
}

a {
    text-decoration:none;
    cursor: pointer;
    color: #377ba8;
}

a:hover {
    text-decoration:none;
    cursor: pointer;
    color:black;
}

.link {
    text-decoration:none;
    cursor: pointer;
    color: #377ba8;
}

.link:hover {
    text-decoration:none;
    cursor: pointer;
    color:black;
}

.address {

    margin-bottom: 2rem;
    font-size: 16pt;
    text-align:center;
    line-height: 1.5;
}

.cv {
    text-align:center;
}

#map {
    width:400px;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom:5rem;
}

input[type="submit"] {
    font-size: 14pt;
}

.project {
    display: flex;
    flex-direction: column;
    width: 800px;
    margin-left:auto;
    margin-right:auto;
    margin-top:2rem;
    margin-bottom:3rem;
}

.project .description {
    display: flex;
    padding-top:1rem;
    padding-bottom:1rem;
}

.project .description .column {
    flex-grow: 1;
    padding-left:1rem;
    padding-right:1rem;
}

.project .description .vline {
    background: #cecece;
    width:1px;
}

.project h2 {
    flex-grow: 1;
}

.leftBorder {
    border-left: 1px solid #cecece;
}

.page {
    padding-top:1rem;
}

.gallery {
    display:flex;
    align-items: center;
}

.gallery .image {
    display:flex;
    flex-direction:column;
    align-items: center;
}

.gallery img {
    height:140px;
    width:auto;
    margin-right:0.5rem;
    cursor:pointer;
}

.gallery .label {
    margin-right:2rem;
    margin-top:1rem;
}

.scroll-container {
    overflow-x: auto;
    padding-bottom:1rem;
    white-space: nowrap;
}

.big-project {
    display:flex;
    flex-direction:column;
    margin-top:2rem;
}

.big-project .scroll-container {
    display:flex;
    margin-top:1rem;
}

.big-project .big-project-container {
    display:flex;
    position:relative;
    margin-right:0.5rem;
}

.big-project a {
    display:flex;
}

.big-project .big-project-overlay p {
    white-space: wrap;
    margin:0.25rem;
}

.big-project .big-project-overlay {
    display:flex;
    flex-direction:column;
    align-content:center;
    justify-content:center;
    opacity:0%;
    position:absolute;
    top:0px;
    right:0px;
    bottom:0px;
    left:0px;
    color:#bad6e8ff;
    padding:1rem;
    transition: opacity 0.3s ease;
}

.big-project .big-project-overlay:hover {
  background:#377ba8;
  opacity: 100%;
}

#gallery-overlay {
    position:fixed;
    display:none;
    align-items:center;
    justify-content:center;
    top:0px;
    left:0px;
    width:100%;
    height:100%;
    z-index: 9999;
    background: #000000aa;
}

#gallery-overlay #image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure the container takes the full height of the viewport */
}

#gallery-overlay #image-container img {
    max-height: calc(100% - 64px); /* Set max-height to fill the remaining space while accounting for padding */
    margin-bottom: 16px;
}

#gallery-overlay #image-container #label {
    color: #ffffffff;
}

.ice_app form {
    width:20rem;
}

.upload-container {
    text-align: center;
    width:20rem;
    display:flex;
    flex-direction: column;
    align-items:center;
    margin:0rem auto;
    padding:2rem;
    border: 1px solid #377ba8;
    border-radius: 5px;
}

.upload-container h1 {
    font-size: 20px;
    margin-bottom: 10px;
    cursor: pointer;
}

.rental-table {
    display:flex;
    flex-direction: column;
}

.rental-row {
    cursor:pointer;
    color: #377ba8;
}

.rental-row:hover {
    color: black;
}

.rental-row-detail {
    display:none;
    padding:1rem;
    margin:1rem 0rem;
    border: 1px solid #767676ff;
    background:white;
    border-radius: 5px;
}

.card {
    width:352px;
    padding:2rem;
    margin:1rem;
    border-radius: 5px;
    display:flex;
    flex-direction:column;
    align-items:center;
    background:#f2f2f2ff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.console {
    display:flex;
    flex-flow:column wrap;
    width:100%;
    max-height:1400px;
    align-items:center;
}

.qrcode {
    width:10rem;
    height:10rem;
    margin:1rem;
}

.gplay-container {
    display: flex;
    justify-content: center;
    width:100%;
    margin-top: 2rem;
}

.gplay {
    width: 15rem;
}

.web-icon-container {
    display:flex;
    align-items:center;
    padding-left:0.5rem;
}

.web-icon-container img {
    width:1rem;
    height:1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .web-icon-container img {
    animation: Icon-spin infinite 20s linear;
  }
}

@keyframes Icon-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.selected-lang {
  color: #000000
}





