 
:root{
     
    transition: background-color .3s ease;

    --primary: rgb(245, 245, 245);
    --secondary:#fff;
    --card-background: #fff;
    
    --h1-color:rgb(60, 60, 60);
    --h2-color:rgb(80, 80, 80);
    --h3-color:rgb(100, 100, 100);
    --h4-color:rgb(120, 120, 120);

    --social-icon:rgb(209, 209, 209);
    --community-icon:#525252;

    --card-shadow:#00000022;
    --card-boder: rgba(0, 0, 0, 0.171);
    
    --line-border: #80808036;
    --link-hover: rgb(120, 120, 120);

    --profile-image-border: #e9e9e9;
    
}
 
#dark-theme{

    display: none;
}

#dark-theme:checked ~ *{
   
    transition: background-color .3s ease;
 
    --primary:rgb(0, 0, 0);
    --secondary:rgb(0, 0, 0);
    --card-background: rgb(0, 0, 0);

    --h1-color:rgb(0, 220, 0);
    --h2-color:rgb(0, 200, 0);
    --h3-color:rgb(0, 180, 0);
    --h4-color:rgb(0, 160, 0);

    --card-shadow:rgba(0, 160, 0, 0.214);
    --card-boder: rgb(0, 44, 0);
    --line-border: rgba(0, 220, 0, 0.212);
    --link-hover: rgb(0, 244, 0);
    
    --social-icon:rgb(0, 80, 0);

    --profile-image-border: rgb(0, 44, 0);
}

html, body, main{

    height: 100%;
    width: 100%;
    margin:0px;
 }

main{

    background-color: var(--primary);
  
}

main, body, 
#profile #social{

    display: flex;
    align-items: center;
    justify-content: center;
}
 
#profile svg{

    width: 28px !important;
    height: 28px !important;
}

h1{
    color: var(--h1-color);
}

h2{
    color: var(--h2-color);
}

h3{
    color: var(--h3-color);
}

#profile{

 
    margin-top: 50%-(319.5px);
    padding: 14px 14px;
    width: 380px;
    border: 1px solid var(--card-boder);
    border-radius: 8px;
    box-shadow: 0px 0px 20px 2px var(--card-shadow);
    text-align: center;
    background-color: var(--card-background);

    position: relative;
}

#profile #social{

    width: 40px;

    position: absolute;
    right: 8px;
    flex-direction: column;
}
 
#social svg{
    fill: var(--social-icon);
}

#social a:not(:first-child){

    margin-top: 8px;
}
 
#social a:hover svg{

    fill: var(--link-hover);
}
 
#profile a{

    transition: color .6s ease;


    text-decoration: none;
    font-size: 22px;
    color: var(--h4-color);
}

#profile a:hover{
    
    transition: color .6s ease;

    text-decoration: underline;
    color: var(--link-hover);
}

#profile #profile-img{

   display:block;
   margin:auto;

   object-fit: cover;

   height: 200px;
   width: 200px;

   border-radius: 4px;
   border-color: var(--profile-image-border);
   border-style: solid;
   border-width: 4px;

   border-radius: 125px;
}

.vl{
    margin-top: 8px;
    border-top: 1px solid var(--line-border);
}

#profile #profile-footer{

    padding-top: 14px;
    display: flex;

    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-border);
    justify-content: space-evenly;
}
 

#profile #profile-footer div{

    display: flex;
    width: 50%;
    align-content: center;
}
 

#profile #profile-footer div:first-child{
 
    flex-direction: column;
}

#profile-footer h3, #profile-footer h1{
 
 margin: 0;
 padding: 0;

}

.other-profiles{
  
    width: 30%;
    justify-content: space-evenly;
    align-items: center;
}

#profile-footer p{

    margin: 0;
    padding: 0;

    color: var(--h3-color);
}

#profile-footer p:first-child{

    font-size: 18px;
}

#profile-footer p:last-child{

    margin-top: 8px;
    font-size: 22px;
    font-weight: bold;
}

#profile-footer svg{

    fill:var(--h3-color);
}

#dark-light-p{

    margin:0px;
    padding: 14px 14px; 
    border-bottom: 1px solid var(--line-border);
    color: var(--h1-color);
    font-weight: bold;
    cursor: pointer;
}

#dark-light-p:hover{

     text-decoration: underline;
    color: var(--link-hover);
 }

#copywrite{

    margin:0px;
    padding: 18px 0px 5px 0px; 
    color: var(--h4-color);
}

@media screen and (max-width: 430px) {

    main{

        background-color: var(--card-background);
    }

    #profile{
        padding: 14px 14px;
        width: 380px;
        border:none;
        border-radius: 0;
        box-shadow: none;
        margin-top: 50%-(275px);
    }
 
  }

@media screen and (max-width: 380px) {
 
 
    #profile-img{

        height: 150px !important;
        width: 150px !important;
     }
 
  }
 
@media screen and (max-height: 620px) {
 
    html, body, main{

        height: fit-content;
    }
 
}
 