:root{
    --text-primary: #362c2c;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --secondary-gray: #362c2c;

    
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --heading-color: #495057;
    --accent-color: #adb5bd;
    --icon-color: #ced4da;
    --button-color: #6c757d;
    --section-background-color: #e9ecef;
    --heading-font: "Poppins", sans-serif;
    --body-font: "Inter", sans-serif;
    --background-image-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='864' height='103.7' viewBox='0 0 1000 120'%3E%3Cg fill='none' stroke='%23ADB5BD' stroke-width='3' stroke-opacity='0.16'%3E%3Cpath d='M-500 75c0 0 125-30 250-30S0 75 0 75s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 45c0 0 125-30 250-30S0 45 0 45s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 105c0 0 125-30 250-30S0 105 0 105s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 15c0 0 125-30 250-30S0 15 0 15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500-15c0 0 125-30 250-30S0-15 0-15s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3Cpath d='M-500 135c0 0 125-30 250-30S0 135 0 135s125 30 250 30s250-30 250-30s125-30 250-30s250 30 250 30s125 30 250 30s250-30 250-30'/%3E%3C/g%3E%3C/svg%3E");
    --background-pattern-url: url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6.172L6.172 0h5.656L0 11.828V6.172zm40 5.656L28.172 0h5.656L40 6.172v5.656zM6.172 12l12-12h3.656l12 12h-5.656L20 3.828 11.828 12H6.172zm12 0L20 10.172 21.828 12h-3.656z' fill='%23adb5bd' fill-opacity='0.19' fill-rule='evenodd'/%3E%3C/svg%3E");
    --background-texture-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23adb5bd' fill-opacity='0.6' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

*{
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    height: 100%;
}

body{
    font-family: var(--body-font), Arial, Helvetica, sans-serif;
    background-color: var(--background-color);
    background-color: #F8F9FA;
    background-image: var(--background-image-url);
    position: relative;
}

.navbar{
    padding: 1rem;
    backdrop-filter: blur(1.8px);
    -webkit-backdrop-filter: blur(1.8px);
    border-bottom-left-radius: 50px 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 3px #362c2c34, 0 5px 8px rgba(0, 0, 0, 0.3);
    font-size: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 2s ease-in-out, box-shadow 0.8s ease;
}

.navbar:hover{
    background-color: #eeeeeee7;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%23adb5bd' fill-opacity='0.09' fill-rule='evenodd'/%3E%3C/svg%3E");
    box-shadow: 0 5px #362c2c34, 0 8px 8px 5px rgba(0, 0, 0, 0.3);
}

a.brand{
    font-family: "Monoton", sans-serif;
    font-weight: 400;
    font-style: normal;
    
    text-decoration: none;
}

a.brand:hover{
    color: #2d3135;
}

.info{
    cursor: pointer;
    color: var(--button-color);
    font-weight: 500;
    transition: transform ease-in-out 0.4s, font-weight ease-in 0.3s;
}


.info:hover{
    color: #2d3135;
    transform: translateY(5px);
    font-weight: 700;
}

.info i{
    position: relative;
    transition: color 0.4s ease, transform 0.2s ease-in;
}

.info i::after{
    content: '';
    height: 40%;
    width: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: -10;
    border-radius: 15px 10px;
    transition: box-shadow 0.8s ease;
}

.info:hover i{
    color: #FFD43B;
}

.info:hover i::after{
    box-shadow: 0 0 8px 8px #ffd53ba7;
}

.info:focus, .search-box:focus {
    outline: 2px dashed var(--accent-color);
    outline-offset: 4px;
  }
  

.heading-text{
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 4rem;
    text-shadow: 0.25rem 0 0.5rem rgba(0, 0, 0, 0.3);
    margin: .8rem;
    border-right: 1px solid;
    animation: blink 0.8s linear infinite;
    position: relative;
    color: transparent;
    background: linear-gradient(245deg,#606c7a 40%, #495057);
    background-attachment: local;
    -webkit-background-clip: text;
    background-clip: text;
}

.heading-text span{
    color: #3e4449;
    z-index: 40;
    position: absolute;
    right: -5vw;
    top: -3.2rem;
    transform: scale(2) rotate(25deg);    
}

.heading-text i{
    backdrop-filter: blur(0.4px);
    text-shadow: 0.25rem 0 0.8rem rgba(0, 0, 0, 0.3);
}

.tooltip {
    position: relative;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 7rem;
    background: #343a40b9;
    backdrop-filter: blur(3px);
    color: #E9ECEF;
    font-size: 1.2rem;
    font-weight: initial;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .tooltip.show .tooltiptext, .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  .tooltip:hover .tooltip-icon{
    border-width: 3px;
  }

  .tooltip-icon{
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    transition: border-width 0.4s ease-in;
  }

.wrapper{
    max-width: 960px;
    height: 75vh;
    margin-inline: auto;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}

/* SEARCH BOX STYLES */

.search-wrapper{
    height: 9vh;
    background-color: var(--accent-color);
    border: 2px solid #362c2c;
    border-radius: 1.25rem;
    box-shadow: 0 5px #362c2cc1;
    display: flex;
    align-items: stretch;
    position: relative;
}

.search-wrapper::after{
    content: '';
    height: 80%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border-radius: 1.25rem;
    z-index: -50;
    box-shadow: 0 20px 10px rgba(0, 0, 0, 0.3);
}

.tel-code{
    font-size: 1.8rem;
    background-color: var(--accent-color);
    padding: .3rem;
    height: 100%;
    border-top-left-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
    flex: 0;
    display: flex;
    align-items: center;
}

.search-box{
    border-top-right-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    padding-left: .5rem;
    padding-right: .6rem;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    color: var(--text-color);
    border-color: transparent;
    flex: 2;
    transition: all 0.3s ease;
}

.search-box:focus{
    outline: none;
    border-color: #adb5bd1a;
    box-shadow: 0 0 8px 3px #007BFF55;
}

.search-box.invalid{
    outline: 2px solid rgba(255, 0, 0, 0.377) inset;
    box-shadow: 0 0 8px 3px #ff004055;
}

.error-message{
    color: #ff0040;
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    margin-left: 2rem;
}

.result{
    background-color: white;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    width: 10%;
    height: 90%;
    padding-inline: .3rem;
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.result.show{
    opacity: 1;
}

.result i{
    display: none;
}

.result i.show{
    display: inline;
}


/* RESULT CARD STYLES */

.result-card{
    margin-top: 6vh;
    max-width: clamp(45vw, 60vw, 65vw);
    min-height: 20vh;
    background-color: var(--background-color);
    background-image: var(--background-pattern-url);
    border: 1px solid var(--accent-color);
    border-top: 5px solid var(--accent-color);
    border-radius: 10px; 
    gap: .5rem;
    overflow: hidden;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
    display: none;
}

.result-card.show{
    display: flex;
    animation: bounceIn 0.8s ease-in-out 1;
}

.result-card .network-logo-wrapper{
    backdrop-filter: blur(2px);
    padding-left: 0.5rem;
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.network-logo-wrapper img{
    width: 100%;
    object-fit: cover;
}

.result-card .details{
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* MODAL STYLING */
.modal{
    height: 100vh;
    width: 100vw;
    min-height: 100%;
    min-width: 100%;
    margin-inline: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: none;
}


.modal.show{
    display: flex;
    animation: pop-up 0.5s ease-in-out;
    -webkit-animation: pop-up 0.5s ease-in-out;
}

.modal.hide{ 
    display: flex;
    -webkit-animation: pop-down 0.3s ease-in;
    animation: pop-down 0.3s ease-in;
}

.hidden{
    display: none !important;
}


.modal-content{
    background-color: var(--background-color);
    background-image: var(--background-texture-pattern);
    width: 70vw;
    max-width: 90%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 8px rgba(251, 251, 251, 0.556);
}

.about-modal h2{
    font-size: 2.5rem;
    color: transparent;
    background: linear-gradient(245deg,#606c7a 40%, #495057);
    background-attachment: local;
    -webkit-background-clip: text;
    background-clip: text;
}

.about-modal .modal-content{
    width: 55vw;
    line-height: 1.3;
    font-size: 1.01rem;
    border-top: 5px solid var(--accent-color);
}


.container {
    display: flex;
  }

.close{
    border: 1px solid #d2d2d2;
    padding: .3rem;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    right: -1rem;
    top: -1rem;
    box-shadow: 0 5px #c6c5c5;
    transition: 0.3s ease;
}

.close:hover{
    background-color: #495057;
    transform: translate(-2px, 5px);
    box-shadow: none;
}

.profile-img {
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    margin-right: 0.8rem;
  }

  a {
    text-decoration: none;
    color: #666;
  }

  .name {
    color: #222;
  }
  
  .tweet-info {
    padding: 3px 0;
    display: flex;
    align-items: center;
  }

  .options {
    height: 1rem;
    margin-left: auto;
  }

  .tweet {
    line-height: 1.4;
  }

  .actions {
    max-width: 27rem;
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
  }

  .action img {
    height: 1.1rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    cursor: not-allowed;
  }


.action span, .like-action span {
    font-size: 0.8rem;
    color: #666;
  }

  .like-action i {
    vertical-align: baseline;
    margin-right: 0.5rem;
    color: #e12619;
    cursor: pointer;
  }

   .like{
    color: #e12619 !important;
    font-weight: 900 !important;
    animation: beat 0.5s linear 1;
   }

   .tweet a{
    color: #2098cf;
    transition: all 0.3s ease-in;
   }

   .tweet a:hover{
    color: #666;
    text-decoration: underline;
   }

  /* Animation class */

  .fade-in{
    animation: fadeIn 0.4s ease-in-out;
  }
  

/* Media Queries */

@media (min-width: 769px){
    .network-logo-wrapper{
        flex: 1 !important;
    }

    .result-card{
        width: 50%;
    }
}

@media (max-width: 768px) {
    html{
        font-size: 14px;
    }
}

@media (max-width: 768px) and (min-width: 508px) {
    .modal-content{
        width: 70vw !important;
    }
}

@media (max-width: 508px) {
    html{
        font-size: 12px;
    }

    .search-wrapper{
        width: fit-content;
        height: 8vh;
    }

    .search-box{
        flex-shrink: 2;
    }

    .modal-content{
        width: fit-content !important;
        max-width: 90%;
    }

    .about-modal .modal-content{
        max-width: 80%;
    }
}

@media (min-width: 352px) {
    .tel-code{
        font-size: 1.5rem;
    }
}


/* Animations */
@keyframes beat {
    50%{
        transform: scale(1.5);
    }
    100%{
        transform: scale(1);
    }
}

@keyframes blink {
    50%{
        border-color: transparent;
    }
}

@keyframes bounceIn {
    0%{
        transform: scale(0.5);
        opacity: 0;
    }
    60%{
        transform: scale(1.2);
        opacity: 1;
    }
    80%{
        transform: scale(0.9);
    }
    100%{
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from{
        opacity: 0;
    }

    to{
        opacity: 1;
    }
}


@keyframes pop-up {
    0%{
        transform: scale(0.5);
        opacity: 0;
    }
    70%{
        transform: scale(1.1);
        opacity: 1;
    }
    100%{
        transform: scale(1);
    }
}

@keyframes pop-down {
    0% {
        opacity: 1;
        transform: scale(1);
      }
      100% {
        opacity: 0;
        transform: scale(0.8);
      }
}

