/*

Sehan Ivanka Kahandawala - 070 200 07 07

https://facebook.com/100008259034613

COPYRIGHT (C) I M A H A N S A

𝗦𝗧𝗥𝗢𝗡𝗚𝗟𝗬 𝗔𝗗𝗩𝗜𝗦𝗘𝗗 𝗧𝗢 𝗔𝗩𝗢𝗜𝗗 𝗔𝗡𝗬 𝗠𝗢𝗗𝗜𝗙𝗜𝗖𝗔𝗧𝗜𝗢𝗡.

*/


@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Sinhala:wght@400;700&family=Varela+Round&display=swap");


#content-wrapper {
    visibility: hidden; 
}

#content-wrapper.visible {
    visibility: visible; 
}

body {
    padding: 20px;
    color: white;
    font-family: "Varela Round", "Noto Serif Sinhala", sans-serif;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

:where(body) {
    font-family: "Noto Serif Sinhala";
    letter-spacing: 0.5px;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    background-size: 400% 400%;
    animation: fadeBackground 10s ease infinite;
    z-index: -1;
    will-change: background;
}



#image_BG, #video_BG {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 50%;
    z-index: -1; 
    object-fit: cover;
        }

video, img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}






@keyframes fadeBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


#Imahansa_WS {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: rgba(0, 0, 0, 1);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 9999;
}
.fade-out {
animation: fadeOut 1s forwards;
    
}

@keyframes fadeOut {
   0% {
   opacity: 1;
}
   100% {
   opacity: 0;
}
}

img {
   max-width: 80%;
   max-height: 80%;
}

.container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 20px 20px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
}


.shake {
    animation: shake 0.3s ease-in-out;
}


#results {
    padding: 20px 30px 10px 30px;
    color: black;
}

#results p {
    display: flex;
    justify-content: space-between;
}



#taxresult {
    padding: 20px 30px 10px 30px;
    color: black;
}

#taxresult p {
    display: flex;
    justify-content: space-between;
}



#monthSheetResults {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    max-height: 100vh;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 50px;
    text-align: center;
    right: 100px;
    margin-top: -1px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: center;
    margin-top: 20px;
    margin-right: 30px;
}

#calculatorForm .form-group label {
    font-size: 15px;
    margin-right: 50px;
}

.form-group label {
    width: 200px;
    text-align: right;
    margin-right: 25px;
}

.form-control {
    width: 250px;
    text-align: center;
    font-weight: bold;
    flex-grow: 1;
    max-width: 400px;
}



.btn-primary,
.btn-secondary {
    width: 150px;
    display: block;
    margin: 10px auto;
    margin-top: 30px;
    text-align: center;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.btn-primary {
    background-color: #008000;
    color: white;
    animation: shake 0.5s ease-in-out infinite;
}

.btn-primary:hover {
    background-color: #4cbb17;
}

.btn-secondary {
    background-color: #d22b2b;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #ff4433;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

.button-align {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 10px 10px 10px;
}

.custom-btn {
    background-color: #008000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.custom-btn:hover {
    background-color: ;
}

.button-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.button-align .btn {
    margin: 0 5px;
}


.month-sheet-active {
    background-color: #d22b2b;
    color: white;
}


#taxButton:hover {
    background-color: #4cbb17;
}



#downloadButton:hover {
    background-color: #4cbb17;
}



@keyframes typing {
    0% { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}

.typing-line {
    font-family: monospace;
    overflow: hidden;
    white-space: nowrap;
    margin: 5px 0;
    animation: typing 3s steps(40, end) forwards;
    border-right: 2px solid white;
    color: #fff;
    padding: 2px 0;
    text-align: center;
    display: block;
    width: 0;
    opacity: 0;
}




h2 {
    background: linear-gradient(45deg, #c5a15c, #f9d423, #ffd700);
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in {
    opacity: 1;
}




#imahansa-bg-5000 {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: -1;
}

#img_5000 {
    width: 300px;
    height: auto;
    margin-left: 200px;
    animation: bounceWave 3s infinite ease-in-out;
}

@keyframes bounceWave {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    50% {
        transform: translateY(0) rotate(-2deg);
    }

    75% {
        transform: translateY(10px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
    font-size: 12px;
    z-index: 1000;
    letter-spacing: 2px;
}

#phoneLink,
a {
    text-decoration: none;
    color: inherit;
}

@media (min-width: 360px) and (max-width: 767px) {
    body {
        padding: 50px 10px 5px 10px;
    }

    #Imahansa_WS img {
      max-width: 70%;
      max-height: 70%;
    }

    .container {
        background-color: rgba(255, 255, 255, 0.2);
        padding: 1px;
        max-width: 100%;
        max-height: 100%;
        margin-top: -80px;
    }

    h2 {
        background: linear-gradient(45deg, #c5a15c, #f9d423, #ffd700);
    -webkit-background-clip: text;
        font-size: 20px;
        margin-top: 20px;
    }

    #monthSheetResults {
        width: 100%;
        left: 0;
        padding: 30px;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.7);
        padding-left: 20px;
        padding-right: 20px;
        z-index: 1000;
    }

    .typing-line {
        margin: -7px;
        font-size: 12px;
    }

    .form-group {
        flex-direction: row;
        align-items: center;
        margin-right: 0;
        justify-content: flex-end;
    }

    #calculatorForm .form-group label {
        color: white;
        margin-right: 20px;
        font-size: 12px;
    }

    .form-group label {
        width: auto;
        text-align: left;
        margin-bottom: 0;
        margin-right: 20px;
        padding: 1px;
    }

    .form-control {
        max-width: 50%;
        flex-grow: 0;
        text-align: center;
        margin-right: 30px;
        padding: 1px;
    }

    .btn-primary,
    .btn-secondary {
        width: 90%;
    }

    #results {
        font-size: 12px;
        padding: 10px 20px 20px 20px;
        margin-top: -20px;
    }

    #results p {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        margin: 10px;
        color: #fff;
    }
    
    
    #taxresult {
    font-size: 12px;
    padding: 10px 20px 20px 20px;
    margin-top: -20px;
    }

    #taxresult p {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    margin: 10px;
    color: #fff;
    }
    
    

    #img_5000 {
        width: 280px;
        margin-left: 30%;
        transform: translateX(-50%);
        opacity: 0.5;

    }

    .btn-primary,
    .btn-secondary {
        width: 150px;
        margin-top: 20px;
        margin-bottom: 20px;
        text-align: center;
        line-height: 15px;
    }

    #results p span:first-child {
        padding-right: 5px;
    }

    .custom-btn {
        font-size: 10px;
        padding: 10px;
        margin-top: -20px;
        line-height: 10px;
    }

    .button-align {
        display: flex;
        justify-content: center;
        gap: 30px;
        padding: 20px 10px 0 10px;
    }

    #footer {
        font-size: 10px;
        margin-bottom: -5px;
    }
}
