:root {
  --dark-blue: #1F4782;
  --dark-gray: #303335;
  --golden: #AB834C;
  --golden-tainoi: #E9BE71;
  --gray: #818C96;
  --white: #FFF;
}

*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'OpenSans', sans-serif;
  font-size: 1rem;
  justify-content: center;
  min-height: 100vh;
}

.general-container {
  display: flex;
  height: 10rem;
  margin: 0 auto;
  max-width: 100%;
  width: 55em;
}

.radio {
  display: none;
}

.content {
  background: #005DBE;
  border-radius: 3rem;
  cursor: pointer;
  flex: 1;
  margin-right: 0.8rem;
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.content:hover {
  box-shadow: 0.3rem 0.3rem 0.4rem rgba(0, 0, 0, 0.3);
}

.content:nth-of-type(2) {
    background: #2759af;
}

.content:nth-of-child(3) {
  background: #2855a5;
}

.content:nth-of-child(4) {
  background: #28529c;
}

.content:nth-of-child(5) {
  background: #284f92;
}

.content:nth-of-child(6) {
  background: #284c89;
}

.content:nth-of-child(7) {
  background: #294880;
}

.content:nth-of-child(8) {
  background: #294576;
}

.content:nth-of-child(9) {
  background: #29426d;
}

.content:nth-of-type(10) {
  background: #293f63;
}

.content:nth-of-type(11) {
  background: #2a3b5a;
}

.content:nth-of-type(12) {
  background: #2a3851;
}

.content:nth-of-type(13) {
  background: #2a3547;
}

.content:nth-of-type(14) {
  background: #2b2b2b;
}


.icon {
  align-items: center;
  background-color: var(--white);
  border-radius: 50%;
  bottom: 1rem;
  color: var(--golden-tainoi);
  display: flex;
  font-size: 1.5rem;
  height: 2.5rem;
  justify-content: center;
  left: 1.1rem;
  position: absolute;
  width: 2.5rem;
}

.card-title {
  bottom: 1.2rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  left: 4.5rem;
  line-height: 1.1;
  opacity: 0;
  position: absolute;
  text-shadow: 0.05rem 0.05rem 0.1rem rgba(0, 0, 0, 0.5);
  transform: translateX(2rem);
  transition: 290ms cubic-bezier(0.05, 0.61, 0.41, 0.95) 300ms;
  transition-property: opacity, transform;
  user-select: none;
  white-space: nowrap;
}

.subtitle {
  font-size: 0.9rem;
}

/* Effect */
.radio:checked + .content {
  border-radius: 2rem;
  box-shadow: 0.3rem 0.3rem 0.4rem rgba(0, 0, 0, 0.3);
  flex: 10;
}

.radio:checked + .content > .card-title {
  opacity: 1;
  transform: translateX(0);
}


@media screen and (max-width: 600px) {
  .general-container {
    display: flex;
    flex-direction: column;
  display: flex;
  width: 25em;
}
  }
  .content {
    display: flex;
    flex-direction: column;
}
}