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

/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('./assets/background.jpg') no-repeat center center;
    background-size: cover;
    font-family: 'Bangers', "Comic Sans", sans-serif;
    /* disable selection in game */
    user-select:none;
    -webkit-user-select:none;
    -moz-user-select:-moz-none;
    -ms-user-select:none;
}

.phone-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    width: 90vw;  
}

/* The phone container itself */
.phone {
    position: relative;
    width: 480px;
    height: 640px;
    background: rgba(65, 60, 124, 0.3);
    border: solid black;
    border-color: black;
    border-width: 4px 5px 4px 6px; /* Border styling similar to .box1 */
    /* border-radius: 99% 4% 52% 5%/2% 15% 6% 95%; */
    overflow: hidden;
    box-shadow: 10px 10px #000000;  
    display: flex;
    flex-direction: column;
}

.all-emojis {
    display: none;
    /* display: flex; */
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 5;
}

.list__all {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    
    &::-webkit-scrollbar {
        width: 14px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }
    
    &::-webkit-scrollbar-thumb {
        background-color: #acacac;
        border-radius: 7px;
        border: 4px solid #acacac;
    }
}

.list__category {
    font-size: 2.5rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 15px;
    padding: 15px;
    transform: translateX(17px);
}

.last__emoji__category {
    margin-left: 15px;
}

.emoji__locked {
    filter: brightness(0) blur(1px) opacity(0.6);
}

.app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contacts,
.title-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background:  #ca1c5b;
    padding: 20px 15px;
    padding-top: 25px;
    height: 80px;
    min-height: 80px;
    width: 100%;
    /* border-radius: 0% 0% 0% 95%/80% 4% 92% 5%; */
    border-bottom: 5px solid #000;
}

.contact-info {
    text-align: center;
    flex-grow: 1;
}

.contact-name,
.title-text {
    font-size: 1.9rem;
    color: #fcbc0f;
    text-shadow: 2px 5px #000000;
    letter-spacing: 5px; /* Increases space between the letters */
    -webkit-text-stroke: 1px #000000; /* Adds a border/stroke to the letters */
}

.title-text {
    position: absolute;
}

.contact-description {
    font-size: 1.5rem;
    color: #333;
    text-shadow: 4px 4px #000000;
    margin: 4px 0px;
}

.prev-contact, 
.next-contact,
.close__button {
    color: #000;
    border: 3px solid #000;
    background: #fcbc0f;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px #fff;
    border-width: 3px 2px 2px 4px;
    transform: rotate(1deg);
}

.close__button {
    position: absolute;
    right: 19px;
}

.prev-contact:hover, .next-contact:hover {
    background: #cc9603;
    text-shadow: none;
}

.bubbles {
    flex: 2;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
    overflow-y: auto;
    max-height: 230px;

    &::-webkit-scrollbar {
        width: 14px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #000000;
        border-radius: 7px;
        border: 4px solid transparent;
    }
}

.bubble_req, .bubble_res {
    padding: 10px 15px;
    border-radius: 40px;
    max-width: 70%;
    font-size: 1.2rem;
    position: relative;
    font-family: "Comic Sans", sans-serif;
    text-shadow: 1px 1px #fff;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
}

.bubble_req {
    align-self: flex-end;
    background: #f5f6f1;
}

.bubble_req::before {
    content: '';
    position: absolute;
    bottom: -13px;
    right: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #000000 transparent transparent transparent;
    border-left: 11px solid transparent; 
    border-right: 3px solid transparent;
}

.bubble_res {
    align-self: flex-start;
    background: #f5f6f1;
}

.bubble_res::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 30px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 0 10px;
    border-color: #000000 transparent transparent transparent;
    border-left: 4px solid transparent; 
    border-right: 10px solid transparent;
}

.panel {
    padding: 20px 30px;
    background: #a6cd07;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 5px solid #000; /* Only top border */
    /* border-radius: 1% 95% 6% 95%/95% 4% 92% 5%; */
    /* No other borders, just the top one */
    
}


.categories__list {
    display: flex;
    list-style: none;
    gap: 15px;
    justify-content: center;
}

.category {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-shadow: 1px 1px #fff;
}

.category:hover {
    transform: scale(1.2);
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background: #d0e57a;
    gap: 10px;
    overflow-y: auto;
    height: 150px;

    &::-webkit-scrollbar {
        width: 14px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #849540;
        border-radius: 7px;
        border: 4px solid #d0e57a;
    }
}

.emoji__list {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    max-height: 120px;
}

.emoji {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-shadow: 1px 1px #000000;
    padding-bottom: 0;
    margin-bottom: 0;
    max-height: 35px;
}

.emoji__category {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    text-shadow: 2px 2px #000000;
}

.emoji__category:hover {
    transform: scale(1.3);
}

.emoji__category.selected-category {
    transform: scale(1.3);
}


.input {
    display: flex;
    align-items: center;
    height: 55px;
    gap: 10px;
    padding: 5px;
    background: #fff;
    border-radius: 40px;
    border: 3px solid #000;
    position: relative; /* Add this for positioning the triangle */
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
}

.input::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Position the triangle below the box */
    right: 20px; /* Adjust the left position */
    width: 0;
    height: 0;
    border-left: 11px solid transparent; 
    border-right: 3px solid transparent;
    border-top: 15px solid #000; /* Color of the triangle */
}


.input ul {
    list-style: none;
    display: flex;
    gap: 5px;
    flex: 1;
    font-size: 1rem;
    overflow-x: auto;
}

.input ul li {
    padding: 6px 0px;
    white-space: nowrap;
}

/* .send__button,
.erase__button {
    background: #ff3300;
    height: 42px;
    width: 42px;
    color: #fff;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 9px 9px;
    cursor: pointer;
    font-size: 1rem;
    text-shadow: 1px 1px #fff;
    transition: all 0.3s ease;
} */

/* .send__button:hover,
.erase__button:hover {
    background: #cc2900;
    text-shadow: none;
} */

.send__button,
.erase__button {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 2px 0px;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
}

.send__button:hover,
.erase__button:hover {
    transform: scale(1.1);
}

/* .send__button:hover,
.erase__button:hover {
    font-size: 1.6rem;

}  */

.disabled {
    filter: grayscale(100%);
}

.bubble.status-message {
    padding: 7px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; 
    margin: 0 auto; 
    color: #fd9101;
    text-shadow: 2px 5px #000000;
    letter-spacing: 4px; /* Increases space between the letters */
    -webkit-text-stroke: 1px #000000;

    position: relative;
    max-width: 80%;
    border: 5px solid transparent; /* Make space for the spiky border */
    border-radius: 0; /* No rounded corners */
    background-clip: padding-box;
}

  
  .bubble.status-message::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -90px;
    right: -90px;
    bottom: -5px;
    background: linear-gradient(45deg, transparent 25%, black 25%, black 50%, transparent 50%, transparent 75%, black 75%, black) center/30px 30px;
    z-index: -1; 
    border-radius: 30px; 
  }

  