@import url(https://fonts.googleapis.com/css?family=Roboto);

:root {
  /*    --clr-bg: #374d70;*/
  /*    --clr-bg: url("fondo1.jpg");*/
  --clr-bg: linear-gradient(to top right, #1c93a4 50%, #d33b38, #7b7c7c);
  /*    --clr-bg: radial-gradient(circle, #7b7c7c, #1c93a4);*/
  --clr-text: #fff;
  --bg-img-1: url("Bio-2.jpg");
  --bg-img-2: url("Erletel-4.jpg");
  --bg-img-3: url("Vikatel-3.jpg");
}

html,
body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
}

body {
  width: 100dvw;
  height: 100dvh;
  background: var(--clr-bg);
  /*    background-image: url('fondo3.jpg');*/
  display: grid;
  place-content: center;
}

.container {
  width: 100dvw;
  height: 100dvh;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  place-content: center;
  gap: 1rem;
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    max-height: none;
    max-width: 500px;
  }
}

.element {
  cursor: pointer;
  flex: 0 1 auto;
  overflow: hidden;
  max-width: 40px;
  border-radius: 4rem;
  padding: 8rem;
  background-size: auto 130%;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  transition: 0.5s ease-in-out;
}

@media screen and (max-width: 768px) {
  .element {
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    max-height: 60px;
    background-size: 130% auto;
  }
}

.element:focus {
  outline: none;
  transform: scale(1);
  flex-grow: 1000;
  max-width: 600px;
  border-radius: 1.75rem;
  background-size: auto 100%;
}

@media screen and (max-width: 768px) {
  .element:focus {
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    max-height: 600px;
    background-size: 130% auto;
  }
}

.element > .icon {
  /*    width: 2px;*/
  /*    aspect-ratio: 1/1;*/
  background-color: #fff;
  padding: 6px;
  border-radius: 50%;
  place-content: center;
  display: grid;
  border: 4px solid rgba(0, 0, 0, 0.5);
  background-clip: padding-box;
}

.element:nth-child(1) {
  background-image: var(--bg-img-1);
}

.element:nth-child(2) {
  background-image: var(--bg-img-2);
}

.element:nth-child(3) {
  background-image: var(--bg-img-3);
}
