/* This file is part of Indico.
 * Copyright (C) 2002 - 2026 CERN
 *
 * Indico is free software; you can redistribute it and/or
 * modify it under the terms of the MIT License; see the
 * LICENSE file for more details.
 */

/*
 * The CSS in this file is awful as it's targeting legacy browsers.
 * Please do not try to improve it, it may break styling there.
 */

/* Taken from https://github.com/mikemaccana/outdated-browser-rework (MIT-licensed) */
#outdated-browser {
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  position: absolute;
  background-color: #0b63a5;
  color: #fff;
  display: none;
  overflow: hidden;
  left: 0;
  /* stylelint-disable-next-line declaration-block-no-duplicate-properties */
  position: fixed;
  text-align: center;
  text-transform: uppercase;
  top: 0;
  width: 100%;
  height: 110px;
  z-index: 1500;
  padding: 0 24px 24px 0;
}

#outdated-browser .vertical-center {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

#outdated-browser h6 {
  font-size: 25px;
  line-height: 25px;
  margin: 12px 0;
  color: #fff !important;
}

#outdated-browser p {
  font-size: 14px;
  line-height: 12px;
  margin: 0;
  color: #fff !important;
}

#outdated-browser .last {
  height: 20px;
  position: absolute;
  right: 70px;
  top: 10px;
  width: auto;
  display: inline-table;
}

#outdated-browser .last[dir='rtl'] {
  left: 25px !important;
  right: auto !important;
}

#outdated-browser #close-outdated-browser {
  color: #fff;
  display: block;
  font-size: 36px;
  height: 100%;
  line-height: 36px;
  position: relative;
  text-decoration: none;
  width: 100%;
}
