@font-face {
    font-family: "kiwisoda";
    src: url('fonts/KiwiSoda.ttf');
}

@font-face {
    font-family: "basic";
    src: url('fonts/basicfont.ttf');
}

@font-face {
    font-family: "cutie";
    src: url('fonts/CUTE\ FROG.ttf');
}

body {
        cursor:url("https://pixels.crd.co/assets/images/gallery30/b3d63e35.gif?v=1987e5e0"), auto;
        background-color: #FFE1E8;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: "cutie";
        color: #6b5c4f;
        
}

h3 {
  color: #e6759d;
}

.contmp3 {
    background-color: #c0e1a6;
    width: 70rem;
    height: 82rem;
    border-radius: 15px;
    border: 5px solid #9cc080;
    display: grid;
    grid-template-areas: 
    "header header header"
    "nav nav nav"
    "divider1 name divider2"
    "divider1 main main"
    "ad main main"
    "stamp main main"
    "stamp main main"
    "footer footer footer";
    grid-template-columns: .60fr 1.5fr 200px 0fr;
    grid-template-rows: 200px 50px 100px 150px 250px 200px 200px 1fr;
    gap: 10px;
    padding: 10px;
    margin-top: 6px;
}

.header{
    grid-area: header;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 5px solid #84a874;
}

.header img {
        width: 100%;
        height: 100%;
        object-fit:fill;
        object-position: 90% 33%;
        position: absolute;
        top: 0;
        left: 0;
        image-rendering: optimizeQuality;
        image-rendering: -moz-crisp-edges;
        image-rendering: -webkit-optimize-contrast;
}

.header-text {
        font-family: "basic";
        font-weight:bold;
        position: absolute;
        bottom: 8px;
        left: 26px;
        color: #c3dd97;
        font-size: 4.5em;
        text-shadow:
        1px 1px 2px #566338,
        0 0 1em #df5fa7,
        0 0 0.2em #d85db5;
}

.nav{
    grid-area: nav;
    background-color: #e5fad4;
    border-radius: 10px;
    border: 5px solid #84a874;
    text-align: center;
    align-content: center;
}

a{
    color: #91735e;
    text-decoration: none;
    font-size: larger;
    font-family: "cutie";

}

a:hover {
    color: #e6759d;
}

.divider1 {
    grid-area: divider1;
    background-color: #e5fad4;
    border-radius: 10px;
    border: 5px solid #84a874;
    align-content: center;
    text-align: center;
}

.divider1 img {
  width: 200px;
  height: 200px;
  border: 4px solid #e6759d;
  border-radius: 10px;
}

.divider2 {
    grid-area: divider2;
    background: none;
    border: none;
    align-content: center;
    text-align: center;
}

.divider2 img {
  width: 190px;
  height: 95px;
}

.stamp {
    grid-area: stamp;
    background-color: #e5fad4;
    border-radius: 10px;
    border: 5px solid #84a874;
    text-align: center;
}

.main {
    grid-area: main;
    background-color: #e5fad4;
    border-radius: 10px;
    border: 5px solid #84a874;
}

#kaomoji {
  font-size: 40px;
}

.footer {
    align-content: center;
    text-align: center;
    grid-area: footer;
    background-color: #e5fad4;
    border-radius: 10px;
    border: 5px solid #84a874;
}

.name {
    grid-area: name;
    background: none;
    border: none;
    align-content: center;
    text-align: center;
}

.name img{
    height: 40px;
    width: 600px;
}

.ad {
    grid-area: ad;
    background-color: #e5fad4;
    border-radius: 10px;
    border: 5px solid #84a874;

}

.mp3 {
  display: block;
  grid-area: mp3;
  font-family: "cutie";
}

#button1 {
    background-color: #F5ECA4;
    color: #405C1E;
    border-radius: 10px;
    border: none;
    font-size: 20px;
    padding: 15px 32px;
    font-family:'kiwisoda';
}

.mp3 .ipod {
  width: 150px;
  height: 220px;
  background: #ffabc6;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 30px #656464;
  text-align: center;
  margin: 5px auto;
  border: none;
  overflow: hidden;
}

.mp3 .youtube-hidden-container {
  position: absolute;
  top: -9999px; 
  left: -9999px;    
  width: 150px;     
  height: 150px;  
  overflow: hidden;
  pointer-events: none;
}

.mp3 .screen {
  background: #fff8e0;
  border-radius: 3px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mp3 .screen img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #afd18a;
}

.mp3 .screen p {
  font-family: 'Slackey', cursive;
  font-size: 16px;
  color: #8cb873; 
  margin: 5px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.mp3 .time-display {
  font-size: 10px;
  color: #5f8246;
  font-family: "cutie";
  font-weight: bold;
}

.mp3 .progress-container {
  width: 100%;
  background: #53852a;
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 5px;
  position: relative;
}

.mp3 .progress-bar {
  background: #77b562;
  height: 100%;
  width: 0%;
  border-radius: 3px;
}

.mp3 .controls-wheel {
  position: relative;
  width: 70px;
  height: 70px;
  background: #ffffff;
  border-radius: 50%;
  margin: 20px auto 5px auto;
  border: 1px solid #dcdcdc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1), inset 0 2px 5px rgba(0,0,0,0.05);
}

.mp3 .ipod-btn {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.mp3 .ipod-btn:active {
  transform: scale(0.85);
}

.mp3 .btn-play-pause {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f0f0f0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  z-index: 2;
}
.mp3 .btn-play-pause:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.mp3 .play-icon {
  display: block;
  transition: all 0.1s ease;
}

.mp3 .state-paused .play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #8fd074;
  margin-left: 4px;
}

.mp3 .state-playing .play-icon {
  width: 12px;
  height: 14px;
  border-left: 4px solid #8fd074;
  border-right: 4px solid #8fd074;
  box-sizing: border-box;
}

.mp3 .btn-prev {
  top: 50%;
  left: 1px;
  transform: translateY(-50%);
}
.mp3 .btn-prev:active {
  transform: translateY(-50%) scale(0.85);
}
.mp3 .icon-prev {
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #8fd074;
  position: relative;
}
.mp3 .icon-prev::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 1px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #8fd074;
}

.mp3 .btn-next {
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
}
.mp3 .btn-next:active {
  transform: translateY(-50%) scale(0.85);
}
.mp3 .icon-next {
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #8fd074;
  position: relative;
}
.mp3 .icon-next::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 1px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #8fd074;
}

.mp3main {
  grid-area: mp3main;
  background-color: #e5fad4;
  border-radius: 10px;
  border: 5px solid #84a874;
}
