/* http://meyerweb.com/eric/tools/css/reset/ 
   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;
}

.container {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-direction: column;
  align-content: center;
  align-self: center;
}
.morph-pill {
  border: 1.5px solid #000;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  background-color: #dbd8d844;
  /* Center the component absolutely */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.morph-trigger {
  display: flex;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  align-content: center;
  min-height: 36px;
}

.trigger-close-icon svg:hover {
  transform: scale(1.15);
}

.trigger-open-text {
  font-size: 20px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
}

.trigger-close-icon svg {
  width: 30px;
  height: 30px;
  color: #000;
  transition: all 0.3s ease-in-out;
  cursor: pointer;

}

.trigger-close-icon{
    display: flex;
}



.morph-trigger .trigger-open {
  display: flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
}

.trigger-open-icon {
  width: 24px;
  height: 24px;
}

.morph-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  padding: 20px;
  text-align: center;
  border-top: 1.5px solid #000;
  background-color: #fff;
  border-radius: 24px;
}

.morph-item {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.morph-item-content {
  padding: 16px 8px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
}

.morph-item-content:hover {
  background: #dbd8d844;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.morph-item-content-text {
  font-weight: 500;
  font-size: 20px;
  color: #767575;
  transition: all 0.3s ease-in-out;
}

.morph-item-content:hover .morph-item-content-text {
  color: #000;
}
.morph-item-content:hover .morph-item-content-icon svg {
  color: #000;
}

.morph-item-content-icon svg {
  width: 30px;
  height: 30px;
  transition: all 0.3s ease-in-out;
  color: #767575;
}
.morph-item-content-text {
  font-weight: 500;
  font-size: 20px;
  color: #767575;
  transition: all 0.3s ease-in-out;
}

.morph-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

/* Closed pill size */
.morph {
  width: 180px;
  height: 60px;
  overflow: hidden;
  transition: width .50s cubic-bezier(0.2, 0.8, 0.2, 1), height .50s cubic-bezier(0.2, 0.8, 0.2, 1), border-radius .50s
    cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .50s ease;
}

/* Open pill size */
.morph.is-open {
  width: 400px;
  height: 320px;
  border-radius: 24px;
}

/* Faces: closed vs open */
.pill-face {
  opacity: 1;
  transition: opacity .28s ease, transform .28s ease;
}

.morph-panel {
  opacity: 0;
  pointer-events: none;
  transition: opacity .30s ease .15s;
}

.morph.is-open .pill-face {
  opacity: 1;
  transform: translateY(0) scale(0.96);
}

.morph .morph-trigger{
    cursor: pointer;
}

.morph.is-open .trigger-open {
    display: flex !important;
    
}

.morph.is-open .trigger-open .trigger-open-icon{
    display: none;
}

.morph.is-open .morph-trigger{
    display: flex;
    justify-content: space-between!important;
}

.morph.is-open .morph-panel {
  opacity: 1;
  pointer-events: auto;
}

/* Hide/show trigger states */
.trigger-close {
  transform: translateY(-50%);
}

.morph.is-open .morph-trigger {
  justify-content: flex-end;
}
