*{box-sizing: border-box;}

:root{
    --base-color:#ff7900;
    --base-variant:#ff7900;
    --text-color: #191919;
    --primary-color: #191919;
}

.darkmode{
    --base-color: #493545;
    --base-variant: #493545;
    --text-color: #F5F5F5;
    --primary-color:#F5F5F5;
}

body,
html{padding: 0;margin: 0;}

body{
    max-width: 750px;
    margin:auto;
    font-size: 1.2rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    background-color:var(--base-color);
    transition: background-color 2s ease;
    font-family: monospace;
    color:var(--text-color);
}

h1{font-size: 3rem;
    font-weight: 700;}

h1 {
    display: block;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

h2{font-size: 32px;}
h3{font-size: 1.50rem;}
h4{font-size: 1.25rem;
font-weight: 100;}

p{font-size: 1.10rem; 
  font-weight: 20;}

a{font-size: 1.10rem;
    cursor: pointer; 
    color:var(--text-color);
    text-decoration: none;
}

a:hover{color: white;}

div {display: block; unicode-bidi: isolate;
}

button {
    font-size: 3rem;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: 0cm;
    margin-left: -15px;
    transition: transform 0.5s ease;
}


a.article{
  text-decoration: none;
}
h2.title_article{
  margin-bottom: 0;
}
p.text_article{
  font-size: 1rem;
  margin-top: 0;
}


#theme-switch{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--base-variant);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
}

#theme-switch svg{
    fill: var(--primary-color);
}
#theme-switch svg:last-child{
    display: none;
}

.darkmode #theme-switch svg:first-child{
    display: none;
}
.darkmode #theme-switch svg:last-child{
    display: block;
}

.button_rotation:hover{
    transform: rotate(360deg);
}

.spacer{height: 3.5rem;
    width: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, currentcolor 8px, currentcolor 10px);
    margin-top: 25px;
}
    
.spacerbottom{height: 3.5rem;
    width: 100%;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, currentcolor 8px, currentcolor 10px);
    margin-top: 50px;
}

.foot{text-align: center; margin-top: 50px; font-size: 1rem;}
.links{margin-top: 50px;}

@media only screen and (max-width: 768px) {
    .foot{text-align: center;margin-top:auto ;}
    .spacer{margin-top: 0cm;}
    .spacerbottom{margin-top: 0cm;}
    .links{margin-top: auto;}
    #theme-switch{
        position:absolute;
        top: 15px;
        bottom: 20px;
        right: 5px;
    }
}

/*Footer Contact Box*/
ul {
    list-style: none;
  }
  footer{ margin-top: 50px;}
  
  
  .contact_box {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bolder; /* Made bolder */
    background-color: var(--primary-color); /* Black background */
    border-radius: 30px; /* Added border-radius to make the container rounded */
    padding: 20px; /* Added padding for better appearance */
    height: 70px;
    width: 400px;
  }
  
  .contact_box .icon-content {
    margin: 0 10px;
    position: relative;
    font-weight: bolder; /* Made bolder */
  }
  
  .contact_box .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color); /* White background */
    color: var(--base-variant); /* Black text */
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: bolder; /* Made bolder */
  }
  
  .contact_box .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
  }
  
  .contact_box .icon-content .link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary-color); /* White icons */
    background-color: var(--base-color); /* Black background */
    transition: all 0.3s ease-in-out;
    font-weight: bolder; /* Made bolder */
  }
  
  .contact_box .icon-content .link:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
  }
  
  .contact_box .icon-content .link svg {
    width: 30px;
    height: 30px;
    fill: #fff; /* White icons */
  }
  
  .contact_box .icon-content .link[data-social="linkedin"]:hover {
    color: #0088cc;
  }
  
  .contact_box .icon-content .link[data-social="github"]:hover {
    color: orange;
  }
  
  .contact_box .icon-content .link[data-social="email"]:hover {
    color:#8B0000;
  }
  
  .contact_box .icon-content .link[data-social="surprise"]:hover {
    color: #FF00FF;
  }
  
  .contact_box .icon-content .link[data-social="home"]:hover {
    color:#568203;
  }

.container {
    min-height: 30vh;    
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}


img.profile_photo{
  height: auto ;
  width: 100px;
}

@media only screen and (max-width: 768px){
  img.card_photo{
    max-width: 100%;
    height: auto;
  };
  img.Slope_logo{
    max-width: 100%;
    height: auto;
  }
  .contact_box{
    max-width: 100%;
  }
  .contact_box .icon-content {
    margin: 0 5px;
  }
}