/* General Reset */
/* http://meyerweb.com/eric/tools/css/reset/ 2. v2.0 | 20110126
  License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* General body styling */
body {
  background-color: #A5A6ff;
  color: #130f49;
  text-align: center;
  font-family: "Karla", sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  background-color: #A5A6ff;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.5rem 1rem;
  border-bottom: 3px solid #130f49;
}

.logo a {
  color: #232230;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

/* SMKit download button */
.smkit {
  background-color: #130f49;
  color: white;
  width: 12rem;
  padding: 0.75rem 1.5rem;
  margin-right: 4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 2;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

.title-emphasis {
  font-weight: 900;
  font-size: 1.4rem;
}

.smkit:hover {
  background-color: #4879ce;
}

.smkit:active {   /* Click effect */
  transform: translateY(3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 1.7rem;
  font-size: 0.8rem;
}

/* Body styling */
.dashboard {
  display: flex;
  justify-content: space-between;
  padding: 5rem 2rem 2rem 2rem;
  gap: 2rem;
  margin-top: 2rem;
}

/*
============================================================================================================================
LHS
============================================================================================================================
*/
.left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-items,
.bottom-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Tables */
.table-container {
  background-color: white;
  width: 250px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  justify-content: center;
  font-size: 9px;
}

.table-container.below {
  margin-top: 20px;
}

.table-header {
  background-color: #002b5c;
  color: #fff;
  padding: 5px;
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid black;
}

.table-row {
  display: flex;
  text-align: left;
  border-bottom: 1px solid black;
}

.table-row:nth-child(even) {
  background-color: #cdecff;
}

.table-cell {
  padding: 4px 6px;
}

.table-cell.label {
  flex: 5;
  border-right: 1px solid black;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-cell.value {
  flex: 1;
  white-space: nowrap;
}

.table-cell:last-child {
  border-right: none;
  text-align: center;
}

.table-footer {
  background-color: #cdecff;
  text-align: center;
  padding: 5px;
  font-weight: bold;
  border-bottom: 1px solid black;
}

.free-label {
  color: rgb(234, 0, 0);
  font-family: "Pacifico", Geneva, Tahoma, sans-serif;
  font-size: 2rem;
  margin: 5px 40px;
  font-weight: 800;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #ff0015,
    0 0 30px #ff0015,
    0 0 40px #ff0015,
    0 0 50px #ff0015,
    0 0 60px #ff0015;
}

/* Quadrant */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 570px;
  height: 270px;
  position: relative;
  box-sizing: border-box;
}

.box {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  padding: 10px;
  border-radius: 4px;
  transition: transform 0.2s ease-in-out;
}

.box.light {
  background-color: #0070c0;
}

.box.deep {
  background-color: #002060;
}

.box.top-left {
  border-top-left-radius: 80px;
}

.box.top-right {
  border-top-right-radius: 80px;
}

.box.bottom-left {
  border-bottom-left-radius: 80px;
}

.box.bottom-right {
  border-bottom-right-radius: 80px;
}

.box:hover {
  transform: scale(1.2);
  font-weight: 750;
}

.center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #4f5764;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 10px;
  font-weight: 500;
  border: 3px solid #A5A6ff;
  z-index: 10;
}

.table-spacer {
  width: 150px;
}

/*
============================================================================================================================
RHS
============================================================================================================================
*/
.right-section {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  background-color: #130f49;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  margin: auto 1.5rem;
}

.right-section article {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 380px;
  flex: 1;
  line-height: 1.1;
  /*text-align: center;*/
  min-width: 200px;
  transition: transform 0.2s ease-in-out;
}

.right-section article:hover {
  transform: scale(1.1);
}

.right-section article:first-child {
  margin-top: 1rem;
}

.right-section article:last-child {
  margin-bottom: 1rem;
}

article h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}

article p {
  font-size: 14px;
  text-align: left;
}

.bolden {
  font-weight: 600;
}

.italics {
  font-style: italic;
}

/* 
==========================================================================================
Responsive Adjustments 
==========================================================================================
*/

@media (max-width: 1024px) {
  .dashboard {
    flex-direction: column;
    padding: 6rem 1rem 2rem;
  }

  .left-section {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .top-items,
  .bottom-items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .table-container {
    width: 200px;
    font-size: 8px;
  }

  .container {
    width: 90%;
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    height: 230px;
    width: 530px;
  }

  .box {
    font-size: 14px;
    padding: 0.5rem;
  }

  .center-button {
    font-size: 14px;
    padding: 10px 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .table-spacer {
    /*display: none;*/
    width: 160px;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .smkit {
    margin: 1rem 0 0;
    width: 100%;
  }

  .logo a {
    font-size: 1rem;
  }

  .table-container {
    width: 100%;
    font-size: 9px;
  }

  .free-label {
    margin: 1rem 0;
    text-align: center;
  }

  .right-section article {
    width: 100%;
    max-width: 100%;
  }

  .container .box {
    font-size: 12px;
    padding: 0.5rem;
  }
}

@media (max-width: 400px) {
  .box {
    font-size: 10px;
  }

  .center-button {
    font-size: 14px;
    padding: 8px 16px;
  }

  article h2 {
    font-size: 14px;
  }

  article p {
    font-size: 12px;
  }
}
